This is the scenario:
I have a RadGrid, in which each row will have a
"GenName(String), Status(RadComboBox), Type(RadComboBox)"
The ClientDataKeyNames are "ID, GenName"
I am doing a CLIENT SIDE BINDING USING A WCF SERVICE for the RadGrid.
Once the data is bound to the radgrid, I will have to click on the "Type" RadComboBox. It has to use Load on Demand. But the data that will be shown in the RadComboBox depends on the ID (ClientDataKeyName) of that particular row. How do I access it??
presently I am using "onclientitemsrequesting" event and below is the even handler,
It throws me an Error : Object doesn't support property or method 'getDataKeyValue'
Please let me know how to deal with it.
Thanks.
Yash
"
I have a RadGrid, in which each row will have a
"GenName(String), Status(RadComboBox), Type(RadComboBox)"
The ClientDataKeyNames are "ID, GenName"
I am doing a CLIENT SIDE BINDING USING A WCF SERVICE for the RadGrid.
Once the data is bound to the radgrid, I will have to click on the "Type" RadComboBox. It has to use Load on Demand. But the data that will be shown in the RadComboBox depends on the ID (ClientDataKeyName) of that particular row. How do I access it??
presently I am using "onclientitemsrequesting" event and below is the even handler,
function GetGenerationVersions(sender, eventArgs) { var filterString = eventArgs.get_text(); var rcbElement = sender.get_element(); // var parentRowID = $(rcbElement).parents("tr").first().prev("tr.rgRow, tr.rgAltRow")[0].id; var genID = sender.get_element().parentNode.parentNode.getDataKeyValue("ID");
//.get_parent().get_parent().get_masterTableView().get_dataItems()[0].getDataKeyValue("GenerationID"); alert(genID.toString()); var context = eventArgs.get_context(); context["FilterString"] = filterString; context["SiteID"] = document.getElementById("<%=lblSiteID.ClientID %>").innerText; context["ProductID"] = $find('<%=rcbProducts.ClientID %>').get_selectedItem().get_value(); context["GenerationName"] = genID; }It throws me an Error : Object doesn't support property or method 'getDataKeyValue'
Please let me know how to deal with it.
Thanks.
Yash