This is a migrated thread and some comments may be shown as answers.

combobox set to default like pageload after save and page refresh

2 Answers 19 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Swapnil
Top achievements
Rank 1
Swapnil asked on 24 Sep 2013, 06:53 AM
Hi,
using combobox and want to stay at default text like select user type after page refresh and data save completed
 <telerik:RadComboBox ID="cmbusertype" runat="server" Width="280px" ExpandAnimation-Type="OutBounce"
                            Skin="WebBlue">
                            <DefaultItem Text="Please Select User Type" Value="-1" />
                        </telerik:RadComboBox>

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 24 Sep 2013, 09:25 AM
Hi Swapnil,

You can try the following C# code to set the DefaultItem as the selected item of the RadComboBox after saving the data using server side code.

C#:
protected void SaveAndRefreshButton_Click(object sender, EventArgs e)
{
    //your code to save data.
    cmbusertype.DefaultItem.Selected = true; //setting the default item as the selected one.
}

Thanks,
Shinu.
0
Swapnil
Top achievements
Rank 1
answered on 24 Sep 2013, 10:51 AM
Hi shinu thanks a lot just see my this question i am not able to resolve it
Thanks

http://www.telerik.com/community/forums/aspnet-ajax/grid/validation-to-radgrid-in-editmode-with-radwindow.aspx
Tags
ComboBox
Asked by
Swapnil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Swapnil
Top achievements
Rank 1
Share this question
or