I think this is an easy question, and I'm a little perplexed that I am having a problem with it. Here is the issue:
This code grabs the DataKeyValue from a RadGrid row onRowMouseOver with no problem:
Works like a dream. Now, I want to grab the changed HiddenLabel value server side (any way is fine, even a button click). I can see that the label has changed on the page, but the server cannot see the change. I'm wondering if I can solve the problem via RadAjaxManager. Here is my current config:
Any other ideas? I feel I am missing something obvious (not a JS guy).
Thanks so much!
Jim
This code grabs the DataKeyValue from a RadGrid row onRowMouseOver with no problem:
function onRowMouseOver(sender, eventArgs) { var rowID = eventArgs.getDataKeyValue("PartyExperienceID"); document.getElementById("<%= HiddenLabel.ClientID %>").innerHTML = rowID;} Works like a dream. Now, I want to grab the changed HiddenLabel value server side (any way is fine, even a button click). I can see that the label has changed on the page, but the server cannot see the change. I'm wondering if I can solve the problem via RadAjaxManager. Here is my current config:
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="HiddenLabel" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadTreeView1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadTreeView1" /> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="HiddenLabel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager>Any other ideas? I feel I am missing something obvious (not a JS guy).
Thanks so much!
Jim