Home Forums WPF controls Xceed DataGrid for WPF CellEditorDisplayConditions="Always" doesn’t work for me.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #23909 |

    Hi

    I’d like my grid to always show the celleditors, of all the cells in a grid, when the webpage is displayed. But they don’t show untill the user has edited a cell. Anybody have a clue why?

    XAML for my datagrid:
    <xcdg:DataGridControl x:Name=”grid”
    CellEditorDisplayConditions=”Always”
    ItemScrollingBehavior=”Immediate”>
    <xcdg:DataGridControl.Columns>
    <xcdg:Column FieldName=”Included”
    Width=”80″/>
    <xcdg:Column FieldName=”SongName”
    IsMainColumn=”True”
    Width=”200″
    Title=”Song”/>
    <xcdg:Column FieldName=”Artist”
    Width=”150″/>
    <!– This column will use the DatePicker editor by default. You don’t have
    to specify anything. Xceed DataGridControl will always select an
    appropriate CellEditor according to the DataType. –>
    <xcdg:Column FieldName=”LastPlayed”
    Title=”Last Played”/>
    <!– Of course, you can also specify a particular editor, custom or not. –>
    <xcdg:Column FieldName=”Category”
    Width=”100″
    CellEditor=”{StaticResource categoryEditor}”
    CellContentTemplate=”{StaticResource categoryCellDataTemplate}”/>
    <xcdg:Column FieldName=”Country”/>
    <xcdg:Column FieldName=”Rating”/>
    <!– Invisible columns –>
    <xcdg:Column FieldName=”SongID”
    Visible=”False”/>
    </xcdg:DataGridControl.Columns>
    </xcdg:DataGridControl>

    XAML.cs:
    public void windowLoaded(object sender, RoutedEventArgs e)
    {
    try
    {
    Xceed.Wpf.DataGrid.Licenser.LicenseKey = “XXXXXXXXXXXXXXXXXXXXXX”;
    DataSource = new TestKlasseCollection();

    DataSource.Add(new TestKlasse(1, “2”));
    DataSource.Add(new TestKlasse(3, “4”));

    grid.ItemsSource = DataSource;

    }
    catch (Exception ex)
    {
    System.Diagnostics.Debug.WriteLine(ex.Message);
    }
    }

    Thanks in advance.

    /Martin

    Imported from legacy forums. Posted by krogh (had 1155 views)

    User (Old forums)
    Member
    Post count: 23064

    Seems like a bug report may be needed for this.

    I played around with this also and for my grid I find that “CellEditorDisplayConditions.Always” only starts to works after I set the CurrentItem once or twice (I have a navigator control built into my footer).

    After the editors start to appear, if I scroll down within my TableView ScrollView, they show up “most” of the time. I see cases where some of the rows have editors and others do not.

    There seems to be some kinks in this feature or a lack of understanding on my part of how it should work.

    I did note that there is an Intellisense warning for CellEditorDisplayConditions.Always that is will have a big impact on performance…. I can confirm it certainly does! So it seems like something to avoid anyway.

    While investigating even I tried to combine all the flags from both enumerations EditTriggers and CellEditorDisplayConditions without success.

    http://doc.xceedsoft.com/products/XceedWpfDataGrid/Row%20Class.html

    EditTriggers = EditTriggers.ActivationGesture | EditTriggers.BeginEditCommand | EditTriggers.CellIsCurrent | EditTriggers.ClickOnCurrentCell | EditTriggers.RowIsCurrent | EditTriggers.SingleClick;

    this.CellEditorDisplayConditions = CellEditorDisplayConditions.RowIsCurrent | CellEditorDisplayConditions.Always | CellEditorDisplayConditions.MouseOverCell | CellEditorDisplayConditions.MouseOverRow;

    Imported from legacy forums. Posted by Richard (had 535 views)

    Xceed Support
    Member
    Post count: 5658

    OK, back from vacation… 😉

    We’ll take a look into this and update this thread with our findings… Thank you for reporting and thank you for the effort put into trying to “narrow” the case…

    Imported from legacy forums. Posted by Marcus [Xceed] (had 404 views)

    Xceed Support
    Member
    Post count: 5658

    Hi, just to drop-in on you guys…

    The nature of the problem has been identified. Unfortunately, the fix did not make it in time for version 1.2 (due real soon). You can expect to see resolution for this problem in the next service release (post 1.2).

    Imported from legacy forums. Posted by Marcus [Xceed] (had 246 views)

    User (Old forums)
    Member
    Post count: 23064

    Marcus,

    Can you tell me which version of the GridControl will have this fix?

    Imported from legacy forums. Posted by Kelly (had 412 views)

    Xceed Support
    Member
    Post count: 5658

    version 1.2 was JUST release and DOES NOT contain the fix… Next service release will.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 4687 views)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.