We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridGroupingWeb Filtering when using Select Button

hi all,
iam using gridgroupingweb for filtering i have 7 columns.one column has select button. iam doing filtering in some of the columns.in the filtering all works except at Empty option in Dropdownlist of filtering.when i select all or particular thing it works. when i select empty in column also it works but after that it dos'nt. i mean if i pick empty and then all it does nt work. what ever i do after empty it does nt work. it is happening only when there is select button on one of the columns. if the select button is removed it works fine for everything.
i have taken select button in item template



forecolor="black" OnClick="Select_Click">


.

i think it is unable to instantiate again the select button after empty.

can any body solve it.

thanks
krishna

20 Replies

GB Gokul B Syncfusion Team November 8, 2006 09:00 PM UTC

Hi Krishna,

We are currently looking into this and will get back to you as soon as possible


regards,
B.Gokulkumar


GB Gokul B Syncfusion Team November 9, 2006 08:33 PM UTC

Hi Krishna,

In our control While working with Filtering, adding button to the template column in bound Field will result some unexcept behavior.so you need to add the button as template column in the unbound field.Let me explain in detail.

1)create a unbound field and add it to the visible column collections.
2)Add the button to unboundfield as template column in the QueryCellStyleInfo event.

This makes the Grid to instantiate the button once again, even if you select Empty option in the Filterbar


Take a look at the below sample.

Forum_FilteringGridGroup.zip

Let us know if you need any other assist.

Thanks for using Syncfusion product.

regards,
B.Gokulkumar



KR krishna November 10, 2006 02:06 AM UTC

hi Gokul,
i tried this code as it is . but it is giving a runtime error as 'list.templateclass' does not implement interface member 'system.web.UI.ITemplate.Instantiatein (System.Web.UI.Control)'


thanks
krishna




>Hi Krishna,

In our control While working with Filtering, adding button to the template column in bound Field will result some unexcept behavior.so you need to add the button as template column in the unbound field.Let me explain in detail.

1)create a unbound field and add it to the visible column collections.
2)Add the button to unboundfield as template column in the QueryCellStyleInfo event.

This makes the Grid to instantiate the button once again, even if you select Empty option in the Filterbar


Take a look at the below sample.

Forum_FilteringGridGroup.zip

Let us know if you need any other assist.

Thanks for using Syncfusion product.

regards,
B.Gokulkumar



AD Administrator Syncfusion Team November 10, 2006 04:07 AM UTC

Hi Krishna,

We have used 'Templates' in code to acheive this behavior and we added button programmatically using templates. Please look in the following KB, to know more details on using templates in code

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=373

Also ensure that you have given the code of TemplateClass code correctly.

//The template class should implement the ITemplate interface.

public class TemplateClass : ITemplate
{
//see the attached sample's code for more details.
}

Regards,
A.Sivakumar


AD Administrator Syncfusion Team November 29, 2006 05:41 PM UTC

hi ,
thank u for the reply . iam getting when i select empty and later also. but now the select button is taking last column. but i need the select column should be in the first column.remaining all columns r set in item template and the select column on codebehind.can i know how can we get the select button in the first column and also iam getting header of gridGroupingweb as List1 and under that one LIst1:6 items. how can i remove the List1 and is their any possibility to give some other name.


thanks
krishna

>Hi Krishna,

We have used 'Templates' in code to acheive this behavior and we added button programmatically using templates. Please look in the following KB, to know more details on using templates in code

http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=373

Also ensure that you have given the code of TemplateClass code correctly.

//The template class should implement the ITemplate interface.

public class TemplateClass : ITemplate
{
//see the attached sample's code for more details.
}

Regards,
A.Sivakumar


GB Gokul B Syncfusion Team November 29, 2006 08:25 PM UTC

Hi Krishna,

GridGrouping Control supports to rearrange the column display order. Please look in the following KB, to know more details on rearranging the column display order.Rearrange column Display order

However, we have attached the sample for your clear clarification.

Forum_FilteringGridGroup.zip

To change the text displayed in the GroupDrop area, please have a look in the following KB Renaming DragDropArea .

Let us know if you need any other assist.

Thanks for using Syncfusion products.

regards,
B.Gokulkumar







AD Administrator Syncfusion Team November 30, 2006 02:07 PM UTC

hi,
thanks for giveing Reply. it works fine. but by using groudropareatext property which ever we add it is adding to the list1( coming Next to LIst1 Word) . but iam unable to remove the list1 at the top.

thanks
Krishna



>Hi Krishna,

GridGrouping Control supports to rearrange the column display order. Please look in the following KB, to know more details on rearranging the column display order.Rearrange column Display order

However, we have attached the sample for your clear clarification.

Forum_FilteringGridGroup.zip

To change the text displayed in the GroupDrop area, please have a look in the following KB Renaming DragDropArea .

Let us know if you need any other assist.

Thanks for using Syncfusion products.

regards,
B.Gokulkumar







GB Gokul B Syncfusion Team November 30, 2006 03:53 PM UTC

Hi Krishna,

For your notification, to change the GropDropArea's DataMember text, please have a look at the below code snippet.

//Renames the DataMember name
GridGroupingControl1.TableDescriptor.Name = "";

Either if you need to remove the GropDropArea, please look at the below code snippet.

GridGroupingControl1.ShowGroupDropArea = false;

Let us know if you need any other assist.

Thanks for using Syncfusion products.

regards,
B.Gokulkumar


AD Administrator Syncfusion Team November 30, 2006 04:35 PM UTC

hi gokul,
thanks. now works good.

Krishna

>Hi Krishna,

For your notification, to change the GropDropArea's DataMember text, please have a look at the below code snippet.

//Renames the DataMember name
GridGroupingControl1.TableDescriptor.Name = "";

Either if you need to remove the GropDropArea, please look at the below code snippet.

GridGroupingControl1.ShowGroupDropArea = false;

Let us know if you need any other assist.

Thanks for using Syncfusion products.

regards,
B.Gokulkumar


AD Administrator Syncfusion Team February 9, 2007 09:45 PM UTC

iam using gridgroupingweb for filtering i have 7 columns.one column has select button. iam doing filtering in some of the columns.how can i select the select button. in which event i need to write. i need selected index of that row. in the select button click event i need to call a method by passing row index. how can i do that one.

thanks
krishna

>hi all,
iam using gridgroupingweb for filtering i have 7 columns.one column has select button. iam doing filtering in some of the columns.in the filtering all works except at Empty option in Dropdownlist of filtering.when i select all or particular thing it works. when i select empty in column also it works but after that it dos'nt. i mean if i pick empty and then all it does nt work. what ever i do after empty it does nt work. it is happening only when there is select button on one of the columns. if the select button is removed it works fine for everything.
i have taken select button in item template



forecolor="black" OnClick="Select_Click">


.

i think it is unable to instantiate again the select button after empty.

can any body solve it.

thanks
krishna


AD Administrator Syncfusion Team February 9, 2007 09:49 PM UTC

iam using gridgroupingweb for filtering i have 7 columns.one column has select button. iam doing filtering in some of the columns.i need select button click event. in the selct button click i need to call a mthod with row index as parameter.
which event i need to call for selct button click. and how can i find the index of row.

thanks
Krishna


AD Administrator Syncfusion Team February 10, 2007 06:23 PM UTC

iam using gridgroupingweb for filtering i have 7 columns.one column has select button. iam doing filtering in some of the columns.i need select button click event. in the selct button click i need to call a mthod with row index as parameter.
which event i need to call for selct button click. and how can i find the index of row.
Iadded select button programmatically using templates( in the previous u suugested me to use template class programmatically).when i tried to use TemplateCommand event, SelectedRecordschanged event and Current Record contex changed event. but it anything couldnt work. can u give me the event details .

thanks
krishna


GB Gokul B Syncfusion Team February 12, 2007 06:43 PM UTC

Hi Krishna,

We regret for the delay in getting back to you.

Attached is the sample as per your requirement.

GridForum_51561.zip

* You can get the RowIndex from the QueryCoveredRange event. It get the index postion of the currently rendered row.

Kindly take a look at our sample and do let us know if it helps.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B


AD Administrator Syncfusion Team February 12, 2007 09:27 PM UTC

hi Gokul,
thanks for giving suggesion.i tried that one. but the b_click event is never firing,and also i need to pass the row index on the click event. on the click event i will call a method by passing row index as parameter and it will take to the new page.
can u give me reply soon.

thanks
krishna


GB Gokul B Syncfusion Team February 12, 2007 11:52 PM UTC

Hi Krishna,

Kindly Let us know have you tried our sample.

* In our sample, we bind the GridGroup with AccessDatasourceControl.
* We created one unbound field named "Selection" and added the button as a Itemtemplate from Grid's QueryCellStyleInfo event. Before that you have to add the below code snippet in the Page_Init event.

Control c = new Control();
//Used to add templated controls in the Unbound field
TemplateClass mytemp = new TemplateClass(c);
//Adds the control container to the GridGrouping control Itemtemplate.
// since It is important to add the control to ItemTemplate when we add our own controls(i.e Button in your scenario) to GridGrouping Itemtemplate collection, Unless we can't handle the event inside the Itemtemplate.
GridGroupingControl1.TableDescriptor.Columns.FindByMappingName("Selection").ItemTemplate = mytemp;

* Then we handled the button click in the QueryCellStyleInfo event. While clicking on the button will gets the currently selected record(i.e CustomerID in my sample).

Let us know if you need more help.

Regards,
Gokulkumar.B




AD Administrator Syncfusion Team February 13, 2007 02:07 AM UTC

hi,
thank u for ur quick response.
i didnt add the code snippet in page init. thats i couldnt get at that time. now iam getting that one.thank u very much

krishna


AD Administrator Syncfusion Team February 13, 2007 02:21 PM UTC

hi ,
Filtering is not working Properly when i added the code snippet in Page init( the following code). when i select empty in the filter and then if i select any thing suppose "ALL" it is not instantiating anything..if i remove this code snippet in the page init filtering works properly but Button selct event is not firing.

code snippet

Control c = new Control();
//Used to add templated controls in the Unbound field
TemplateClass mytemp = new TemplateClass(c);
//Adds the control container to the GridGrouping control Itemtemplate.
// since It is important to add the control to ItemTemplate when we add our own controls(i.e Button in your scenario) to GridGrouping Itemtemplate collection, Unless we can't handle the event inside the Itemtemplate.
GridGroupingControl1.TableDescriptor.Columns.FindByMappingName("Selection").ItemTemplate = mytemp

can u respond quickly
thanks
Krishna


GB Gokul B Syncfusion Team February 13, 2007 08:54 PM UTC

Hi Krishna,

As we already mentioned in this thread, Empty option in Filterbar causes unexpected behavior. So we already logged a bug regarding this issue. We have requested our developer to provide more information regarding the timeframe to fix this issue. Hope we can provide you with more information within a 3 days.

Kindly let us know if you have any other queries.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B


AD Administrator Syncfusion Team February 19, 2007 06:56 AM UTC

Hi Krishna,

This issue has been forwarded to our developers and the fix would be available by March12th 2007. You can keep track of the issue logged from the below link

http://www.syncfusion.com/support/issues/grid/Default.aspx?ToDo=view&questId=3002

Thanks and Regards,
Sharmila


AD Administrator Syncfusion Team March 21, 2007 08:42 AM UTC

Hi Krishna,

Sorry for the delay in getting back to you.

This issue has been fixed. Could you please open an incident in the direct trac with the forum id as the subject line, so that we could update you with the patch for the fix

http://www.syncfusion.com/Support/DirectTrac/logon.aspx

Thanks & Regards,
Sharmila

Loader.
Live Chat Icon For mobile
Up arrow icon