Hello All,
i have problem with Radcombobox Itemrequested,
Actually my Radcombo is in Radgrid formtemplate on the radgrid datatbind event it is finding the radcombo but on Radcombo Itemrequested event it is not finding , my code is below.
in the above code on below line
it is returning the NULL value and throwing exception.
so plz tell me how to find radcombo .
i have problem with Radcombobox Itemrequested,
Actually my Radcombo is in Radgrid formtemplate on the radgrid datatbind event it is finding the radcombo but on Radcombo Itemrequested event it is not finding , my code is below.
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"OrderId"
DataMember
=
"Orders"
CommandItemDisplay
=
"Top"
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
asp:TableCell
Width
=
"25%"
HorizontalAlign
=
"Left"
>
<telerik:RadComboBox ID="RadComboBox_ShippingAddress" runat="server"
DataTextField="LocationName" DataValueField="LocationID"
Width="190px" EnableLoadOnDemand="True"
MarkFirstMatch="True" AllowCustomText="false"
ShowMoreResultsBox="True" ItemRequestTimeout="500" AutoPostBack="false"
OnItemsRequested="RadComboBox_ShippingAddress_ItemsRequested"
Height="140px"
protected void RadComboBox_ShippingAddress_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
{
LoadRadCombo_ShippingAddress();
RadComboBox oRadComboBox_ShippingAddress = RadGrid_Orders.MasterTableView.Items[0].FindControl("RadComboBox_ShippingAddress") as RadComboBox;
oRadComboBox_ShippingAddress.Items.Clear();
string text = e.Text;
try
{
DataRow[] rows = mShippingAddressNameListDataTable.Select("LocationName LIKE '" + text + "*'");
in the above code on below line
RadComboBox
oRadComboBox_ShippingAddress =
RadGrid_Orders.MasterTableView.Items[0].FindControl("RadComboBox_ShippingAddress")
as RadComboBox;
it is returning the NULL value and throwing exception.
so plz tell me how to find radcombo .