Hi,
We'd like to put a control in the group header area - for example a textbox to specify an offset to apply to all values for every group.
We're wondering how feasible this is within the existing infrastructure of the UltraGrid control, and if you have any recommendations on how to achieve this.
Thank you.
Update: we're using this method - let us know if you know of a better way:
GroupByRowDescriptionUIElement groupByRowDescriptionUiElement = parent.Parent as GroupByRowDescriptionUIElement;
UltraGridGroupByRow ultraGridGroupByRow = groupByRowDescriptionUiElement.GroupByRow;
Debug.WriteLine(">> ultraGridGroupByRow.ChildBands.FirstRow: " + ultraGridGroupByRow.ChildBands.FirstRow);
if (ultraGridGroupByRow.ChildBands.FirstRow.GetType() != typeof(UltraGridGroupByRow))
{ code for setting up text editor }
Thanks Georgi, that's helpful - a few more things:
Hello Gsharm3,
gsharm3 said:When we scroll in this demo using the mouse wheel, we get some screen corruption, as textboxes appear all over the grid in the wrong places. Is there a way to prevent this? Curiously, the problem doesn't appear if we use the scrollbar instead of the mouse wheel.
Hm. You are right. I forgot for this scenario. I didn`t remove the TextEditors. Just modify my Creation fIlter to remove the TextEditors before start draw it again and eveything should works properly
gsharm3 said:Text editors appear also for higher-level groups. For example, next to AAPL we have a text box which does not directly contain datarow items. Is it possible to hide this, and only show it for the lowest leaf-level groups that have datarow children?
Yes, It is possible. You could extend the IF condition in the Creation Filter and exclude this row (you could check this using property IsGroupByRow and Decription).
Please let me know if you have any questions.
Regards
Thank you Georgi, this is very close to what we want. However, a few issues we've noticed:
Thanks for provided details, but this is very custom scenario and we have not such kind functionality. Nevertheless I made small sample for you with desired behavior. This sample is just an idea how to achieve your requirements. Please take a look at the attached sample and video file for more details and let me know if you have any questions.