Hello
I've a radgridview with a datasource.
For a certain column I need to call a function which return a string, here's what I do (simplified)
<telerik:GridTemplateColumn>
<ItemTemplate>
<%# Functions.GetTheString(Eval("ID")) %>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox id="editString" Text='Functions.GetTheString(Eval("ID")) ' ></telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
It works fine for the edit but I m not able to do an insert anymore... Chrome console says It can't convert the dbnull into integer... How can I get an empty text box for an insert and calling my function for an edit?
Thanx in advance
I've a radgridview with a datasource.
For a certain column I need to call a function which return a string, here's what I do (simplified)
<telerik:GridTemplateColumn>
<ItemTemplate>
<%# Functions.GetTheString(Eval("ID")) %>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox id="editString" Text='Functions.GetTheString(Eval("ID")) ' ></telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
It works fine for the edit but I m not able to do an insert anymore... Chrome console says It can't convert the dbnull into integer... How can I get an empty text box for an insert and calling my function for an edit?
Thanx in advance