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

How to add diffrent filteroptions for different columns

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 08 Nov 2011, 01:19 PM
Hi
I have radgrid in my application.
I have once requirement.
I have 7 cloumns of string type and one datetime column.
I'm adding only 3 filter menu items for 6 string type columns.
I want to add some date specific options for Datetime field.
I'm adding filter options as below.
protected void callogGrd_Init(object sender, EventArgs e)
   {
       int i = 0;
        
       GridFilterMenu menu = callogGrd.FilterMenu;
       while (i < menu.Items.Count)
       {
           if ((menu.Items[i].Text == "Contains") || (menu.Items[i].Text == "StartsWith") || (menu.Items[i].Text == "NoFilter"))
           {
               i++;
           }
           else
           {
               menu.Items.RemoveAt(i);
           }
       }
   }
Its not showing for datetime fileds.
What are datetime specific filters and How cloud I add to only datetime filed.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Nov 2011, 01:52 PM
Hello Ram,

You can take a look into the following documentation.
Filtering for DateTime Bound Column with DataFormatString Different from mm/dd/yyyy

Thanks,
Princy.
Tags
Grid
Asked by
Ram
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or