I have WebDataGrid
<aspigtbl:WebDataGrid id="SS_EntitiesGrid" ShowFooter="false" runat="server" Width="98%" ImageDirectory="/ig_common/Images/" AutoGenerateColumns="false" ItemCssClass="igg_cb_Item" HeaderCaptionCssClass="igg_cb_HeaderCaption" on > <ClientEvents DoubleClick="OnDblClick" Initialize="OnGridInitializeGrid"/> <Columns> <aspigtbl:BoundDataField Width="25%" Key="Type" DataFieldName="Type" Hidden="False"></aspigtbl:BoundDataField> </Columns> <Behaviors> <aspigtbl:Activation Enabled="false" ActiveCellCssClass="igg_cb_ActiveCell"> </aspigtbl:Activation> <aspigtbl:EditingCore Enabled="true" BatchUpdating="true" AutoCRUD="false"> <EditingClientEvents RowUpdated="OnGridRowInsertHandler" /> <Behaviors> <aspigtbl:RowAdding Enabled="false"> </aspigtbl:RowAdding> <aspigtbl:RowDeleting Enabled="false" /> <aspigtbl:CellEditing Enabled="false" > </aspigtbl:CellEditing> </Behaviors> </aspigtbl:EditingCore> <aspigtbl:Selection CellClickAction="Row" RowSelectType="Multiple" CellSelectType="None" SelectedCellCssClass="igg_cb_SelectedCell" SelectionClientEvents-RowSelectionChanged="OnGridAfterSelectChange"> </aspigtbl:Selection> <aspigtbl:Sorting Enabled="false"></aspigtbl:Sorting> <aspigtbl:RowSelectors RowNumbering="true" Enabled="true"></aspigtbl:RowSelectors> </Behaviors>
</aspigtbl:WebDataGrid>
When I set value to the row and then set text, text value is override row value
row.get_cellByColumnKey(colKey).set_value(1);row.get_cellByColumnKey(colKey).set_text("text");
When I get_value(), I get value="text". Why?
Hello Anton,
Thank you for posting in our forum.
You could directly use the set value function to set both the text and the value. The first parameter you pass to the set_value method will be the value set and the second will be the text. So for example if you set:.set_value(1,"txt");
And then get the value(get_value()), it will be 1. And the text(get_text()) will be “txt”.
Let me know if you have any questions or concerns.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support