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.
Unfortunately, activation email could not send to your email. Please try again.

GGC and FieldChooser - column Read Only

Thread ID:

Created:

Updated:

Platform:

Replies:

130703 May 26,2017 02:06 PM May 9,2018 09:17 AM Windows Forms 5
loading
Tags: GridGroupingControl
Gregory Pe
Asked On May 26, 2017 02:06 PM

Hi
Is it possible to use modifications  a plug-in utility called Field Chooser, which will help customize the view of a GridGroupingControl based on column Read Only

Piruthiviraj Malaimelraj [Syncfusion]
Replied On May 29, 2017 05:32 AM

Hi Gregory, 

Thanks for your interest in Syncfusion products. 

We have analyzed your scenario and created the simple sample with FieldChooser from what we had understood from your scenario. In that sample, the field chooser dialog has been prevented from opening for read only columns in FieldChooserShowing event. Can you please provide us with some more details of your scenario and let us know your requirement(with field chooser and read only columns) clearly? Please refer to the attached sample. 
 
Code example: 
this.gridGroupingControl1.TableDescriptor.Columns["Description"].ReadOnly = true; 
FieldChooser fieldChooser = new FieldChooser(this.gridGroupingControl1); 
 
this.gridGroupingControl1.FieldChooserShowing += gridGroupingControl1_FieldChooserShowing; 
 
void gridGroupingControl1_FieldChooserShowing(object sender, Syncfusion.Windows.Forms.Grid.FieldChooserShowingEventArgs e) 
{ 
    int row, col; 
    this.gridGroupingControl1.TableControl.PointToRowCol(point, out row, out col); 
    GridControl control = e.FieldList as GridControl; 
 
    if (this.gridGroupingControl1.TableDescriptor.Columns[col - 1].ReadOnly) 
    { 
        e.Cancel = true; 
    } 
} 

UG Document: 

Sample link: 

Regards, 
Piruthiviraj 


Gregory Pe
Replied On May 29, 2017 05:55 AM

Hi Gregory, 

Thanks for your interest in Syncfusion products. 

We have analyzed your scenario and created the simple sample with FieldChooser from what we had understood from your scenario. In that sample, the field chooser dialog has been prevented from opening for read only columns in FieldChooserShowing event. Can you please provide us with some more details of your scenario and let us know your requirement(with field chooser and read only columns) clearly? Please refer to the attached sample. 
 
Code example: 
this.gridGroupingControl1.TableDescriptor.Columns["Description"].ReadOnly = true; 
FieldChooser fieldChooser = new FieldChooser(this.gridGroupingControl1); 
 
this.gridGroupingControl1.FieldChooserShowing += gridGroupingControl1_FieldChooserShowing; 
 
void gridGroupingControl1_FieldChooserShowing(object sender, Syncfusion.Windows.Forms.Grid.FieldChooserShowingEventArgs e) 
{ 
    int row, col; 
    this.gridGroupingControl1.TableControl.PointToRowCol(point, out row, out col); 
    GridControl control = e.FieldList as GridControl; 
 
    if (this.gridGroupingControl1.TableDescriptor.Columns[col - 1].ReadOnly) 
    { 
        e.Cancel = true; 
    } 
} 

UG Document: 

Sample link: 

Regards, 
Piruthiviraj 


Hi Piruthiviraj

 using FieldChooser to change column status
  Read Only.
Read Only = true
Check boxes
Read Only = false

Regards,
Gregory


Piruthiviraj Malaimelraj [Syncfusion]
Replied On May 30, 2017 11:11 AM

Hi Gregory, 

Thanks for your update. 

We have analyzed your scenario. The FieldChooser is used to add/remove the columns in view of grid control , so  the FieldChooser does not have support for customizing as per your requirement. You can use own context menu to customize the column status. Please refer to the below KB for further references, 

KB link: 

Regards, 
Piruthiviraj 


Davy
Replied On May 6, 2018 08:20 AM

I have another question aboud the field chooser:

How can i activate the fieldchooser for child and grandchild tables?


Arulpriya Ramalingam [Syncfusion]
Replied On May 9, 2018 09:17 AM

Hi Davy,

 
Thanks for the update. 
 
We have analyzed the reported scenario at our end. As per our current support, the GridGroupingcontrol does not has the FieldChooser support for nested tables. So, we have added it to our feature request list and created a feature report. This will be included in any of our upcoming releases. 
 
Please let us know, if you have any concerns. 
 
Regards,
Arulpriya
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;