Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
RowEditingTemplate set cell text
posted

I have grid with RowEditingTemplate, on this grid rows have value as a number(701) and text as a string(Search). How I can set text value on RowEditingTemplate?

Now grid cell has text "Search", but TextBox1 has value "701".

<aspigtbl:RowEditingClientBinding ColumnKey="TransID" ControlID="TextBox1"
GetValueJavaScript="$get({ClientID}).value" SetValueJavaScript="$get({ClientID}).value={value} == null ? '' : {value}" />

Parents
  • 24671
    posted

    hey Anton,

    I am not sure I understand the scenario very well. Would you like to have something like this in the row edit template:

    <Label> : <value, such as 701>

    Do you mean that all your grid cells display "Search", when they are bound to TransID (which is a number)?

    The binding you have above basically takes the values of TransID. Could you show me your ASPX for the WebDataGrid, I will be able to give you more feedback after that

    thank you

    Angel

Reply Children