Hi,
I have 3 RadComboboxes and 1 RadGird on my page.
If i select item from RadCombobox1, RadCombobox2 will be populates then if i select item from RadCombobox2 then RadCombobox3 will be populates.
After i select item from RadCombobox3 then RadGrid will filled up.
I am using RadAjaxManger to avoid the whole page refresh when i select items from RadComboBoxes.
But the interesting thing is if i select Item from RadCombobox3, I don't know way.
Here is my code
Here my code behind:
Please help me..
I have 3 RadComboboxes and 1 RadGird on my page.
If i select item from RadCombobox1, RadCombobox2 will be populates then if i select item from RadCombobox2 then RadCombobox3 will be populates.
After i select item from RadCombobox3 then RadGrid will filled up.
I am using RadAjaxManger to avoid the whole page refresh when i select items from RadComboBoxes.
But the interesting thing is if i select Item from RadCombobox3, I don't know way.
Here is my code
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadComboBox1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadComboBox2"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadComboBox2"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadComboBox3"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadComboBox3"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgdNoticeHistory"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
Width
=
"200px"
onselectedindexchanged
=
"RadComboBox1_SelectedIndexChanged"
AutoPostBack
=
"true"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"ALL"
Value
=
"ALL"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"A"
Value
=
"A"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"B"
Value
=
"B"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"C"
Value
=
"C"
/>
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadComboBox
ID
=
"RadComboBox2"
runat
=
"server"
Width
=
"200px"
onselectedindexchanged
=
"RadComboBox2_SelectedIndexChanged"
AutoPostBack
=
"true"
></
telerik:RadComboBox
>
<
telerik:RadComboBox
ID
=
"RadComboBox3"
runat
=
"server"
Width
=
"200px"
onselectedindexchanged
=
"RadComboBox3_SelectedIndexChanged"
AutoPostBack
=
"true"
></
telerik:RadComboBox
>
Here my code behind:
protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
RadComboBox2.Items.Clear();
RadComboBox3.Items.Clear();
LoadRadComboBox2Items();
}
protected void RadComboBox2_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
RadComboBox3.Items.Clear();
LoadRadComboBox3Items();
}
protected void RadComboBox3_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
RadGrid1.DataSource = GetAllData(Convert.ToInt32(RadComboBox1.SelectedValue.ToString()), Convert.ToInt32(RadComboBox3.SelectedValue.ToString()));
RadGrid1.Rebind();
}
Please help me..