Click here to Skip to main content
15,911,132 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)

I have 3 dropdownlist as city,place,date.
so,based on this 3 ddl list i have to display it in the gridview .
so,help me out of this solution.
Posted
Comments
OriginalGriff 5-Sep-14 11:59am    
And?
What have you tried?
Where are you stuck?

Use the "Improve question" widget to edit your question and provide better information.

1 solution

Hi,

I hope you have plan to do Search/Filter by the input from City, place, Date controls.

City - ddl,
Place - ddl,
Date - date picker control

NeedDatasource event should have above three input

C#
protected void gridView_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    //City - ddl,
    //Place - ddl,
    //Date - date picker control
}


then ddlCity, ddlPlace, and Date Picker contrls have some events like SelectedIndexChanged (or) SelectedDateChanged. You just call the gridView.rebind(); in these three events.

C#
protected void drpEvents_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    gridView.rebind();
}


C#
protected void dateControl_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{
    gridView.rebind();
}


I hope its helpful for you, good luck,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900