Hi,
I want to change the field Visibility in the XAMDatagrid, so can you please post a sample or some idea how can I do that.
The requirement is to make visibility of the Fee Column based on a condition (If user is admin than only display the column).
Please help me because I am in urgent need.
Hello Nitin,
Thank you for your post. I have been researching your issue and have created a small sample for you. In the sample I bind the visibility property of the fields I do not want to be visible if a user is admin to the IsAdmin property. Please find the attached sample and feel free to contact us if you have any further questions.
Thanks for your reply, the same information I got from John Smith blog but I want to know what is the need of creating the resource "mainUser" in this case.
Why cant we able to access the DataSource of the XamDataGrid. Without creating a seprate Resource how can we complete this.
Thanks again.
Waiting for the answer
Thank you for your patience. I have further researched your issue. We create the “mainUser” resource to play the role of admin. You can create, for example a LogIn form where you check if a user is admin or a regular user and depending on the state of the user to show/hide the columns you would like to be hidden. Please do not hesitate to contact us if you have any further questions.
I am just checking your progress on the issue. If you require any further assistance please do not hesitate to ask.
Hi
I have very similar requirement. But there will be multiple role to set display property.
can you halp me on this.
Hello Mahesh,
Thank you for your post. I have been looking into it and have modified the previous sample for you. In the modified sample I have added a new property – IsBasic. Depending on this property the column “LastName” and “IsBasic”. Please find the attached sample and feel free to let me know if you have any further questions.