Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im using control but this grid control is not find

What I have tried:

var rgEditRate = masterTable.get_dataItems()[i].$find("rgEditRate.ClientID");
Posted
Comments
F-ES Sitecore 19-Nov-19 7:03am    
It's unlikely your component has an ID of "rgEditRate.ClientID". You might need this code

var rgEditRate = masterTable.get_dataItems()[i].$find("<%=rgEditRate.ClientID%>");

however we can't tell from what you've posted if that code will work, we don't know where rgEditRate is, if your code in on an aspx page or a js file etc so it might not work for you. Note that if it doesn't then responding "doesn't work" does not add any more context to let us give you a working solution.
DerekT-P 19-Nov-19 7:29am    
In Chrome, right-click the rendered element and choose "Inspect". You'll then see what the element ID actually is. ASP.Net may prefix the rendered ID with parent controls; this can happen if the grid is in a custom control, or in any other server container control, a master page, a repeater etc.. etc..
ZurdoDev 19-Nov-19 8:20am    
What both of them said. ^

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900