Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
XamWebGrid and Blend
posted

Hi,

I am just starting to look at this grid and am finding some odd behaviors when using it in Blend.

 

So first off, if I add a column to the Columns collection, it says "Infragistics.Silverlight.Controls.ColumnBase", instead of say TextColumn. When you specify a Key and reload the project it shows the correct one. Sometimes if a Key is missing, the design surface won't show any columns starting with and after the column missing the Key. Also, if you set the HeaderText property and you haven't set Key yet, the value disappears from the dialog right after you hit Enter or tab away. However, it does get written to the XAML, but will not display in the designer dialog for the column until you put in a Key.

The oddest part is that the Width property (which has the same behavior as HeaderText) doesn't get serialized to the XAML.  It ends up looking like this, even though I typed in something like "100":

<igGrid:TextColumn HeaderText="First Column" Width="Infragistics.Silverlight.Controls.ColumnWidth" Key="A"/>

 

What is up with that? So far I've tried the most basic properties and am finding extremely odd issues, and I haven't gotten to even the more complicated ones. I just DL'ed the bits last week, so I am assuming I'm running the right stuff.

Has anyone had similar experiences?

Parents
  • 40030
    Verified Answer
    Offline posted

    Hi,

    Unfortunately, due to time contstraints, we weren't able to get all the Blend Designer features that we wanted to get into the 9.1 release.  For example, the issue you're running into with ColumnWidth.  B/c the Width is of type Struct, Blend doesn't know how to handle it, which means we have to create a custom editor for it. So, unfortunately, right now, you'll have to use the xaml editor to modify that property.

    As for the Column key issue.  That has to do with the XamWebGrid requiring keys being defined on all Columns. If you were to run the app without specifying  a key, the grid would throw an exception.  I beleive blend shows the exception in its ouput window, when you add a column without a key.

    I hope this clears some things up.

    Thanks for the feedback,

    -SteveZ

Reply Children