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
1470
RecordBinding - Bind IsFixed to MVVM
posted

Hi there

We need to bind the IsFixed property of a DataRecord to a property of it's underlying DataItem. We cannot use the event "InitializeRecord".

The (Data)Record is not a visual item, but either a Cell nor a Field is. And for such cases there are the classes "CellBinding" and "FieldBinding". Can we get something like a class "RecordBinding"? Or do you have any other solution, which is not depending on the event "InitializeRecord" or "InitializeRecordDirect"?

I have attached a sample to demonstrate what we are looking for.

Thanks and kind regards


XamDataGrid_IsFixed_Test01.zip

  • 29085
    Offline posted

    Hello and thank you for contacting Infragistics. Binding fixed records is considered to be a new product idea since we do not have a built-in collection for managing fixed records. However what you can do is create a derived XamDataGrid that contains a new fixed records collection that can link between your data with eg. a IsFixed property to tell which records should or should not be fixed. I attached a basic sample of how to do this with Selection and also added a fixed records collection but only fixed the first row to show this example easily. 

    MultiSelectListBindingProblem.zip

    You can suggest new product ideas for future versions (or vote for existing ones) at <www.infragistics.com/.../ideas>.
    Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
    Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.

    Let me know if you have any questions.