[CLOSED] is it possible to load panel into Notification or MessageBox

  1. #1

    [CLOSED] is it possible to load panel into Notification or MessageBox

    Hi
    is it possible to load ext.panel into Ext.MessageBox or Ext.Notofication controls.

    I would like to display a <table></table> in a gmap listener
    
    
    
    string html = "<table style='width: 300px; height: 88px'>" +
    
    
    " <tr>" +
    
    
    " <td rowspan='5' style=\"background-image: url('" + imageURL + "'); width: 25%; background-repeat: no-repeat;\" valign='middle'>" +
    
    
    " </td>" +
    
    
    " <td style='width: 75%; font: smallcaption; color: navy;' valign='top'>" +
    
    
    " Name :<input type='text' value='" + name + "' style='border: 0; width: 75%' />" +
    
    
    " </td>" +
    
    
    " </tr>" +
    
    
    " <tr>" +
    
    
    " <td style='font: smallcaption; height:13px; width: 75%; color: navy' valign='top'> Last Updated on:</td>" +
    
    
    " </tr>" +
    
    
    " <tr>" +
    
    
    " <td valign='top'> " + lastUpdate +
    
    
    " </td>" +
    
    
    " </tr>" +
    
    
    " <tr>" +
    
    
    " <td style='width: 75%; font: smallcaption; color: navy; height: 17px;' valign='top'>" +
    
    
    " </td>" +
    
    
    " </tr>" +
    
    
    " </table>";
    
    
    Coolite.Ext.UX.Marker marker = new Coolite.Ext.UX.Marker();
    marker.Lat = Convert.ToDouble(lat);
    marker.Lng = Convert.ToDouble(lng);
    marker.Options.Title = name;
    marker.Listeners.Click.Handler = "Coolite.Ext.Notification.show({title:\"Location\", html:" + html + "});";
    It does not seem to like the html markup - if I replace with a string it works fine. I was thinking if it was possible to insert a Panel, i could use any html markup into the body of the panel. is there anything that can be suggested to have a formatted string popup when I click on the listener.

    Thanks

    idriss
  2. #2

    RE: [CLOSED] is it possible to load panel into Notification or MessageBox

    Hi,

    1. Wrap html by '
    marker.Listeners.Click.Handler = "... html:'" + html + "'});";

    or use JSON.Serialize
    marker.Listeners.Click.Handler = "... html:" + JSON.Serialize(html) + "});";

    2. You can use panel in notification. Please see
    https://examples1.ext.net/#/Notifica...asic/Overview/


    Content Functionality -> Show with content element
  3. #3

    RE: [CLOSED] is it possible to load panel into Notification or MessageBox

    Thank you. I will try that.
    idriss

Similar Threads

  1. Panel load
    By Pfuentes in forum 1.x Help
    Replies: 0
    Last Post: Oct 05, 2011, 7:34 PM
  2. how to load data to grid panel in page load
    By andylaiyongsing in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2010, 10:27 AM
  3. [CLOSED] How to load a page from a Panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 01, 2010, 7:14 PM
  4. [CLOSED] Panel load
    By state in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 15, 2009, 3:45 PM
  5. Load Panel into Tab
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: May 14, 2009, 12:51 PM

Posting Permissions