The code I use to populate the grid is:
protected void users_grid_needData(object source, GridNeedDataSourceEventArgs e)
{
DataTable dt = MasterPage.executeSQLQuery("SELECT ps_userid, first_name, last_name, ps_usertype FROM ps_users");
users_grid.DataSource = dt;
}
This works fine when all the elements are of type "GridBoundColumn" but when I try to make the usertype into a GridDropDown column, it does not render anything.
I read http://www.telerik.com/help/aspnet-ajax/grdcustomizeconfiguregriddropdowncolumn.html
but I am still unclear about what dataField, listValueField, listTextField, and listDataMember should be set to.
Right now I have it as:
<radG:GridDropDownColumn ListTextField="ps_usertype" DataField="ps_usertype"
ListValueField="ps_usertype" HeaderText="Group" UniqueName="Group">
</radG:GridDropDownColumn>
Thanks
Edit: I took out the code formatting because it displayed badly.
protected void users_grid_needData(object source, GridNeedDataSourceEventArgs e)
{
DataTable dt = MasterPage.executeSQLQuery("SELECT ps_userid, first_name, last_name, ps_usertype FROM ps_users");
users_grid.DataSource = dt;
}
This works fine when all the elements are of type "GridBoundColumn" but when I try to make the usertype into a GridDropDown column, it does not render anything.
I read http://www.telerik.com/help/aspnet-ajax/grdcustomizeconfiguregriddropdowncolumn.html
but I am still unclear about what dataField, listValueField, listTextField, and listDataMember should be set to.
Right now I have it as:
<radG:GridDropDownColumn ListTextField="ps_usertype" DataField="ps_usertype"
ListValueField="ps_usertype" HeaderText="Group" UniqueName="Group">
</radG:GridDropDownColumn>
Thanks
Edit: I took out the code formatting because it displayed badly.