Hello,
I am working on ultrawingrid. I have data in a cell 1234-456-789
Based on some conditions i need to edit the first four digits(1234) and keep other part same and
based on some conditions i need to edit second part (456) and keep th eother two parts same.
and for some condtions i will be able to edit first and second(1234-456) and keep the other part same. and
The cell should take only numeric values , for the firat part the max value is 0 to 9999 and for the second part max value is 0-999 .
Please help me on this.
Thanks.
Please can anyone help me out with this scenarios
Hello Ishnant,
Please try the following settings and see if they help:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerPositive; e.Layout.Bands[0].Columns[0].MaskInput = "####-###-###"; e.Layout.Bands[0].Columns[0].Format = "####-###-###"; }
Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
Thanks for teh reply.
I am able to display the cell data in that format .
But the thing is i should be able to restrict the user from editing first (1234) based on some conditions and remaining two parts should be editable (3456-123)
Please any thpughts on this.
Thanks
when i try to edit the cell by using the backspace or delete the numbers are getting deleted from the last positions. Is this something excepted behavior
Boris,
Need some thoughts , based on some conditions how to restrict the user from not editing the 1234 part and allowing the user to edit 5678-123 part and for some conditions middle part will be not editable , first and last parts will be editable.
After some research, the "Ability to disable part of the mask to be editable in EditorWithMask" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12060009.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
I got this working through custom code.
Yes, take your time. I will be waiting for it, it is interesting to me, so I am going to follow this thread. Have a nice weekend!
I will post the code in detail obver teh weekend.
Sure , I will post the code.
thanks.
I got some own ideas about this but never went down the road implementing them as I am sure it will be far from perfect. I am very curious of your resolution. Could you please provide the code you are using if possible, I believe that the other community members could benefit from it as well as me.
Thank you in advance.