Hello.
I want to place slider in each row of the grid. I want ot have ablility to change position of the scroller and to remember this position in the grid cell.
How can I do it?
Hi Aleksander,
I think you are looking for the VertScrollBar property on the column.
Actually vertial scrollbar is made for multiline cells.
Besides, I need the scrollbar with edit control like one control (system). It should be like UltraNumericConrol, but with horisontal scrollbar
like this <-------------------------->, which will change the value in edit control
This is not a trivial task, since you would need to write the entire embeddable editor, including UI elements, and use that as the editor for the column. If you have the license, you can look at the source for 8.1, but keep in mind that it will require a pretty decent amount of time to get acquainted with the editor infrastructure as well as implementing a new editor.
-Matt
Actually, As I maybe told, this will be not editor.
Anyway the control should be present in row in non-edit mode also,
so if the grid has 5 rows, then 5 such controls should be in this grid (1 in each row).
So, As I understand, I should write embeddable editor, but
also embeddable grid control. Could you point me to the article, how can I do it?
Should this contorl be visible in style property of the column?
You still will have to write the entire editor infrastructure (embeddable editor) regardless of whether you would like to have it as a standalone control or not. In fact, writing the standalone control portion of the TrackBar is pretty straightforward compared to writing the editor because the editor is the part that encompasses all the logic.
There really is not a KB article geared towards writing a standalone editor, though I think that there is a C# example of a RichTextBox editor that ships with the product. Like I had mentioned, writing your own editor will likely be a very involved process (several weeks), so if you are still determined to do so the best suggestion I have is to look at the source code for the other editors (CheckEditor, OptionSetEditor) in the Infragistics.Win assembly for some guidance. As for getting a TrackBar Style to appear for the grid column, you would have to edit the grid source code and implement this yourself.
Ok, Now we are trying to use TrackBar from ver 8.1 as column style.
1) But it gives me error "TrackBar style is not supported for the column's DataType."
But this is what you wrote to me.
How can I handle this?
2) One more question.
We need to use Trackbar with decimal values, but trackbar supports only Integer.
How Can I fix it? If I inherit from TrackBar will the grid accept new column style?
3) And one more, I need to show near Trackbar the current value. How can this be done?
Question 1 and 2 here seem like the same thing.The TrackBar needs to deal with an integer. What you could do it hide the "real" grid column and then add an Unbound column with a DataType of Integer and use the TrackBar style on the unbound column. You would use BeforeRowUpdate to translate the value of the unbound column into a real value, and use InitializeRow to reverse it.
As for displaying the value, I don't think the trackbar currently has this capability. You could add a second column next to the first and display the value there.