Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1570
Pass value from one panel to another panel
posted

Hi,

In my page i am using two <updatepanel> controls. One of the <updatepanel> is having WHDG. On server side row selectionchagned event of it i want to update the value of label control which is inside Infragistics tab control in another <updatepanel>. 

I got a sollution for this but in that i have to keep WHDG's EnableAjax property to false.  I want to perform this with WHDG EnableAJAX = true.

Can someone suggest any idea?

Thanks,

Mits

Parents
No Data
Reply
  • 29417
    Suggested Answer
    Offline posted

    Hello Mits,

     

    Another possible solution would be to change the text of the label from the client side. For example like this:

     

    function WebHierarchicalDataGrid1_Selection_RowSelectionChanging(sender, eventArgs) {

     

                ///<summary>

                ///

                ///</summary>

                ///<param name="sender" type="Infragistics.Web.UI.WebHierarchicalDataGrid"></param>

                ///<param name="eventArgs" type="Infragistics.Web.UI.RowSelectionChangingEventArgs"></param>

              

                var tab = $('#WebTab1');

                var label = tab[0].control._tab.findChild("Label1");

                label.textContent = "Change";

     

     

            }

     

    I hope this solution would work for you although I would still recommend either setting EnableAjax to false or not using an update panel since this combination may give unexpected results.

     

    If you have any further questions don’t hesitate to ask. I’m attaching the sample I tested on for your reference.

     

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

    UpdatePanel_WHDG.zip
Children