I have to store a value that I don't want to show to user.
I have template column like:
<asp:HiddenField ID="hddesc" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.description") %>' />
8 Answers, 1 is accepted
I solved my problem by using boundcolumn and setting it's display property to false.
There are two options to extract the value from the column on the client.
First, you can reference the control via its clientId, and get the value.
Alternatively, you can use this method to get a reference to the cell, and then access the childnodes collection, which would also offer access to the value in the column.
I hope this information helps.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have a RadTreeView nested in a RadComboBox which is in a RadGrid(GridTemplateColumn). How can I get the selected node value thru client side script? I cant manage to set the text for the combobox after selecting the node value from the treeview. I'd appreciate your help. Thanks in advance!
The implementation from this demo can help you achieve what you need (see the Employee name column editor).
the Telerik team
Thank you for your quick reply! The example has resolved my issue.
I have another question regarding the radcombo box selected value on editmode=popup dialog. How do I change this to display a different value? I am using a linqdatasource that is only referencing 1 table (Order table). Order table has foreign key of Product ID but I need to display in the popup the Product name form the Product table. Please note I am using the automatic update from radgrid.
I tried placing Text='<%# Eval("Stakeholder.StakeholderName") %>'> but no good. Appreciate your help again!
telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Product" Visible="false"
<telerik:RadComboBox ID="rcbParentStakeholder1" runat="server" Skin="Telerik"
Text='<%# Eval("Stakeholder.StakeholderName") %>'>
One more thing - the data source of the combo should be configured to trigger update of the ProductID field in the Orders table. This should be done with your own code as trigger.