Hi,
I have the following piece of code:
<radG:GridDropDownColumn
DataSourceID="odsTitles"
ListTextField="Description"
ListValueField="TitleID"
DataField="Title.Description"
UniqueName="TitleDescription"
HeaderText="Title">
</radG:GridDropDownColumn>
Here is my object datasource:
<asp:ObjectDataSource
ID="odsTitles"
TypeName="MyBank.Lookup.TitleManager"
SelectMethod="GetTitles"
runat="server">
</asp:ObjectDataSource>
My first question is:
If the grid displays all the rows, my title is not set to the title which is in my table, it seems to select the first item in the title dropdown list.
Second question, when I click on add new record, then I get the following error.
DataBinding: 'Telerik.WebControls.GridInsertionObject' does not contain a property with the name 'Title'.
The current grid loads a whole lot of Communication objects. In the Communication class I have a reference to the Title class.
Please can someone help me?
Thanks
Brendan
I have the following piece of code:
<radG:GridDropDownColumn
DataSourceID="odsTitles"
ListTextField="Description"
ListValueField="TitleID"
DataField="Title.Description"
UniqueName="TitleDescription"
HeaderText="Title">
</radG:GridDropDownColumn>
Here is my object datasource:
<asp:ObjectDataSource
ID="odsTitles"
TypeName="MyBank.Lookup.TitleManager"
SelectMethod="GetTitles"
runat="server">
</asp:ObjectDataSource>
My first question is:
If the grid displays all the rows, my title is not set to the title which is in my table, it seems to select the first item in the title dropdown list.
Second question, when I click on add new record, then I get the following error.
DataBinding: 'Telerik.WebControls.GridInsertionObject' does not contain a property with the name 'Title'.
The current grid loads a whole lot of Communication objects. In the Communication class I have a reference to the Title class.
Please can someone help me?
Thanks
Brendan