Hi,
I have an ultragrid which display data from the dataset. 1 of the columns should have a dropdown for editing the text into the cell. I have implemented ValueList concept and got the desired output. But I wanted some help regarding few display properties when Value List is bind to column of grid. (In the project attached, 1st column of grid is bound to value list)
1. When ValueList is bound to the column of the grid, i wanted the the 1st value in the list to be displayed by default.
2. When i move the mouse over the column, the dropdown arrow appers and disappears. I want the dropdown be displayed only when user clicks the cell.
3. The text in column1 are center aligned. when i click the cell the text is disturbed. it should at a constant position.
Please suggest if any propeties are to be set.
Find the attached sample project.
Thanks.
Regards!
Hello alok7007,
I will begin from 1 to 3:
1) Please take a look at the following link: http://blogs.infragistics.com/forums/t/58829.aspx.
2) You could use the following line of code:
...Bands[0].Columns[0].CellDisplayStyle = Infragistics.Win.UltraWinGrid.CellDisplayStyle.FullEditorDisplay;
3) This is a fully expected behavior, if you have the text center aligned and you enter editmode, the button displays so it takes a little room in the cell for itself and there remains less space for the text editor. So the text really is center aligned and does not actually shift in the real text editor.
I hope that I explained myself clearly enough. Please let me know if you need any further assistance on this.
Hi Boris,
Thanks for the reply
1. I tried with the suggestion that was mentioned in http://blogs.infragistics.com/forums/t/58829.aspx . I have populated the grid with the dataset. Yet it does not display the first value in the cell. Please refer the sample attached.
2. That was.. WOW.!! exactly what i was looking for.
CellDisplayStyle
.FullEditorDisplay - displays the arrow of dropdown when mouse is moved over the cell.
CellDisplayStyle.FormattedText - displays the arrow of dropdown when mouse is clicked on the cell. This is what I wanted.Thanks again.
3. Well, is there any other workaround or some property so that the text inside the cell does not get disturbed.
Hello again,
As follows:
1) I believe that what Mike meant is something like the following:
dt.Rows.Add("a", "def", DateTime.Now); dt.Rows.Add("", "xyz", DateTime.Now); dt.Rows.Add("b", "asdf", DateTime.Now); dt.Rows.Add("", "djgd", DateTime.Now); dt.Rows.Add("d", "hsdgys", DateTime.Now);
2) I am glad to hear that this helped.
3) I took some time researching this and came to the conclusion that if there is something like a workaround for this it would be very complex and could lead to some unexpected behaviors in the control. So you could choose between not having buttons in all cells as visible at any time and have them visible. Last thing - I could log this as a new product idea for you in our system, if you wish.
Please do not hesitate to contact me again, I will be happy to assist you.
All the 3 design issues have been resolved. Thanks a lot. Yeah the 3rd point could be used to log as a new product in Infragistics. May be as a property for the cells which are bound with Valuelist.
Thanks again
Hello,
After some research, the "Ability for the text to not 'move' in a 'DropDown' cell with button" has been determined to be a new product idea. I have sent your idea directly to our product management team. I also explained your exact requirements for this.
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 PI12060141.
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
Thank you for your request.