iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi, i have 2 issues with this GridPresenter
I have a GridPresenter and i have edit mode is false. the check boxes that are here are still able to be checked and unchecked. Even if i put the check boxes as editable false and read only false you can still edit the check boxes. nothing i do will make this read only.
If i change edit mode on and i put the DataPresenterTextColumn as read only it's still able to be edited, but the check boxes never update the datasourse.
why does this happen?
<Intersoft:GridPresenter x:Name="grddetails" Grid.Row="2" DataSourceID="{Binding}" ItemsSource="{Binding Users, Mode=TwoWay}" EnablePaging="Yes" AutoGenerateColumn="No" EnableContextMenu="True" Error="grddetails_Error" MouseRightButtonUp="grddetails_MouseRightButtonUp"> <Intersoft:GridPresenter.Columns> <Intersoft:DataPresenterTextColumn Caption="User Name" DataMemberField="UserName" IsPrimaryKey="True" Width="150" Editable="False" IsReadOnly="True"/> <Intersoft:DataPresenterTextColumn Caption="Email Address" DataMemberField="Email" Width="200"/> <Intersoft:DataPresenterTextColumn Caption="Name" DataMemberField="Name" Width="200"/> <Intersoft:DataPresenterTextColumn Caption="Role" DataMemberField="RoleName" DataType="System.String" Width="65" Editable="False" IsReadOnly="True"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Enable" DataMemberField="enable" DataType="System.Boolean" Width="50" Editable="True"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Cat Add" DataType="System.Boolean" DataMemberField="Add" Width="60"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Cat Delete" DataType="System.Boolean" DataMemberField="Delete" Width="60"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Cat Edit" DataType="System.Boolean" DataMemberField="Edit" Width="60"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Record Add" DataType="System.Boolean" DataMemberField="rAdd" Width="80"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Record Delete" DataType="System.Boolean" DataMemberField="rDelete" Width="80"/> <Intersoft:DataPresenterCheckBoxColumn Caption="Record Edit" DataType="System.Boolean" DataMemberField="rEdit" Width="80"/> </Intersoft:GridPresenter.Columns> </Intersoft:GridPresenter>
Unfortunately, disabling edit visually in the GridPresenter has not been supported. In order to achieve such scenario, you will need to override the celltemplate. Here is some snippet for string cell and boolean cell:
<Intersoft:DataPresenterTextColumn Caption="User Name" DataMemberField="UserName" IsPrimaryKey="True" Width="150" Editable="False" IsReadOnly="True"> <Intersoft:DataPresenterTextColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding UserName}" Padding="4" /> </DataTemplate> </Intersoft:DataPresenterTextColumn.CellTemplate></Intersoft:DataPresenterTextColumn>
<Intersoft:DataPresenterCheckBoxColumn Caption="Cat Add" DataType="System.Boolean" DataMemberField="Add" Width="60" Editable="False"> <Intersoft:DataPresenterCheckBoxColumn.CellTemplate> <DataTemplate> <CheckBox IsChecked="{Binding Add}" IsEnabled="False" Margin="4" /> </DataTemplate> </Intersoft:DataPresenterCheckBoxColumn.CellTemplate></Intersoft:DataPresenterCheckBoxColumn>
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname