hello
I 'm trying to handle resized column event when the user
resize it to save its new width on setting file
how can i do that I didn't find any event in XamDataGrid that respond to resize event
I think you can achieve this by grabbing the PropertyChanged event of Field Setting. The property name we care would be LabelWidthResolved and CellWidthResolved.
Is there any update to this? Does the lastest version have a field resized event to capture?
Regardless of the above (as we do not yet use it) the mention ofPropertyChanged does not work - the event does not fire.
Alex - you have mentioned using an editor style - this would mean having to handle this for all editor types if the dataset is not fixed in it's content, yes? Seems quite a convoluted solution, just to capture a column resize. Is there no simple way to do this?
Many thanks
Paul Eden
As an edit to the above (my "More" seems to not work), Field.PropertyChanged needs to be handled, not Field.Settings.PropertyChanged
Paul
HI,
You can wire up the Field's PropertyChanged Event.
then inside the event check out the e.propertyname field.
xamDataGrid1.FieldLayouts[0].Fields[0].PropertyChanged +=
new PropertyChangedEventHandler(MainWindow_PropertyChanged);
void MainWindow_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
//throw new NotImplementedException();
MessageBox.Show(e.PropertyName);
You will see LabelWithResolved and CellWidthRsolved names.
Down side is this might fire often.
Sincerely.
MattDeveloper Support Engineer
Is this still not a thing 11 years after the issue has been brought up? I don't think any other Grid on the market is missing this basic functionality.
Also, your voting platform is a mockery, you didn't implement any of the suggestions since its creation. How can you expect users to bother voting?
what do you think money grows on the trees? you can suggest ideas by your self I don't care. we have software to deliver and earn our salaries. no time for suggestions and voting.
I never understood why our technical leaders choose Infragistics anyway....
thanks but no thanks.
Hello Igror,
Thanks for reply.
After working on the functionality that you are trying to achieve and doing some research. It has been determined to be a new product idea. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
Steps to create your idea:
Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).
Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
Add your product idea and be sure to be specific and provide as much detail as possible.
Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. 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. Be convincing!
Include a link to this thread in your idea so product management will be able to look back at this case.
The benefits of submitting the product idea yourself include:
Direct communication with our product management team regarding your product idea.
Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
Allow you to shape the future of our products by requesting new controls and products altogether.
You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas 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.
Thanks for the standard answer. This was already posted in the forum before. For the paid libraries I expect support stuff actually reads the question .
Hello,
Thank you for your post.
I have been looking into your question and I can suggest using the PropertyChanged event of the Field or the LabelPresenter’s SizeChanged event for detecting the field width change. When you resize a Field, the PropertyChanged event of that Field is fired and the property is LabelWidthResolved. You can use that event to monitor the changes if the Width of a Field. Also you can create a style for the LabelPresenter and add an EventSetter for its SizeChanged event. By doing so, when you resize a field, the event will fire.
Please let me know if you need any further assistance on this matter.