[CLOSED] Run Event Handler after Setting Selected Treenode in code behind

  1. #1

    [CLOSED] Run Event Handler after Setting Selected Treenode in code behind

    Dear All,

    my scenario is to select treenode dynamically when I select item in combobox (already i did it)

     tpnlInternationalSchools.GetSelectionModel().Select(node.NodeID);

    , after this action I need to run event handler also dynamically to add a new tab :

     "addTab(#{TabPanel1},"+node.Qtitle+", "+node.Text+");";
    but till now I can't !!!

    note : all the above code it will be in combobox select handler.

    can you help me.
    Last edited by Daniil; Feb 27, 2014 at 2:45 AM. Reason: [CLOSED]
  2. #2
    Hello
    Maybe someone else here will understand your question better, but so far I'm little confused
    First line seems to be running on the server, second line is probably client script - am I right here? (judging just based on naming conventions)
    Could you add some small sample to reproduce problem

    Regards
    Zdenek
  3. #3
    your note is correct , the second line is javascript function to add tab. I need to call it in the server side.
  4. #4
    Still not sure I understand - if you want to "execute" some javascript "from serverside" it could be done just in way that when the server request finish, the script will be send to client for execution. in concrete smth like

    X.AddScript("alert('I will be executed once request is done');");
    But I doubt that is what you are looking for, so that's why I asked for small sample so I understand the problem better

    Thanks
    Z
  5. #5
    Dear Zdenek
    many thanks for you , it's great , it's work fine now.


    for support team, you can make it closed.

Similar Threads

  1. [CLOSED] Set selected treenode in code behind
    By dnguyen in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Feb 26, 2014, 10:40 AM
  2. Set Handler Event on code-behind for Window
    By maurox in forum 1.x Help
    Replies: 0
    Last Post: Apr 18, 2012, 1:55 PM
  3. Replies: 8
    Last Post: Dec 28, 2011, 4:07 AM
  4. Replies: 1
    Last Post: Feb 15, 2011, 5:38 AM
  5. [CLOSED] setting value without firing event handler
    By maras54 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 21, 2009, 6:34 PM

Tags for this Thread

Posting Permissions