Telerik Forums
UI for WinForms Forum
1 answer
120 views
Hello,

Suppose we have a gridview where I grouped data by a column "Date".
Suppose I add an aggregation expression like "Sum" for one or more column.

When the gridview is totally expanded I see first the Group Header Row that show the value of the group.
Under this row I have the result of the sum for each column of the grid.

The problem is when I collapse the Group Header Row, the row that contains the sum result for each column is hide (with the data).

Is there a way to mantain visible the aggregates results row when I collapse the Group Header Row?

I send you as attachments tow picture:
the first image show in the red circle the row I'd like to be visible after the collapse (second image).

thanks for any answer,
Alcide
Jack
Telerik team
 answered on 18 May 2011
4 answers
151 views
I have AllowColumnReorder off on my grid. However, it still allows the user to drag columns. They can't be dropped anywhere, but the client is finding this distracting. They don't want the user to be able to drag a column accidentally and see the circle with the line through it.

Is there a way to disable dragging of the columns?
Stefan
Telerik team
 answered on 18 May 2011
4 answers
126 views
In our system, you are able to associate multiple staff members to a single Appointment object. 

How would we accomplish showing this on the scheduler? From the looks of it, the scheduler requires a 1 to 1 relation between the staff and the appointment.

Here is a rough example of our structure... Link
Stefan
Telerik team
 answered on 18 May 2011
2 answers
130 views
Hi,

i feel like an idiot because i'm not able to find a solution for my quite easy problem:

I got a radDataGrid with 5 Columns, added through dataGrid.DataSource.

Then i added a ComboBoxColumn with name "Status", and NullValue = "False", so all in all i got 6 Columns (1 of them Comboboxcolumn)

If i change the value of the comboboxcolumn from "False" to "True", the whole row should become green.

I really have no idea how to fix this easy problem. And i really searched quite a while.

So what i wanna know: How can i read the current value in the combobox of the comboboxcolumn?
this.radGridView1.Rows[0].Cells["Status"].Value.ToString();
Above code doesn't work. I have really no idea!

Greetings
Christian
Stefan
Telerik team
 answered on 17 May 2011
1 answer
108 views

Hi,

I have a RadPanel and I've added an ImagePrimitive to it. I trying set the image in the center of the panel, but image is not centered after resize. After debugging I found out the image get the correct location values (the ones that should be after resize), but the screen displays the values of the previous resize. I've tried refreshing the form but it still doesn’t work.

I'm using Q1 2010 SP2

 

Thanks for your help.

Sharon.
Stefan
Telerik team
 answered on 17 May 2011
2 answers
201 views
Hello,

I have a problem with CellFormatting handle of GridView.
I have a column that contains 8-char strings that rappresents a date in the format yyyyMMdd.
In order to make more confortable the visualization of the date to the user, I change the format in dd/MM/yyyy using CellFormatting.

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
   base.OnCellFormatting(sender, e);
   GridCellElement ce = e.CellElement;
   ce.Value = ChangeDateFormat(ce.Value);
}

The problem I got in runtime is it seems the GridView apply this cell formatting only for the cells that are currently displayed to the user.
The other cells that are not visible but could be reach using the vertical scrollbar  mantains the old format yyyyMMdd.

As a terrible consequence of this behavior is when I group by the date column, I have some rows with the original format yyyyMMdd, and other rows with the new format dd/MM/yyyy. Although they rappresents the same date (such as 20111012 and 12/10/2011) the grouping engine recognize them as different values and it groups the rows in two different groups.

So I need a suggestion to avoid this problem, what should be the correct method to handle to makes this cell formatting in order to be sure it is done to all the rows.

Another conseguence of the problem is when I export to excel or cvs, the behaviour is pretty like the same: I got some rows with the new format dd/MM/yyyy (exacly the rows that are currently displayed) and the other are saved with the old format (yyyyMMdd).

I suppose this is a sort of mechanism where the cell formatting is applied in runtime only to the displayed cells, probably for speed optimization purpose. In this case for me the cell formatting method is totally unuseless, so I need to know the right way to do the job.

Thanks for any aid
Alcide
Alcide Burato
Top achievements
Rank 1
 answered on 17 May 2011
1 answer
66 views
Hi,

RadschedulerNavigator is having Day View, Week View, Month View and Timeline View.

Is possible showing the schedule in quarterly view and yearly view?

Thanks in advance

Stefan
Telerik team
 answered on 17 May 2011
4 answers
219 views
Hi all,

I might be a little newbie to Telerik Winform controls, so please pardon me in advance.

I want to keep track of the edited rows, which means I want to insert new rows or update existing ones on a user button click. My data grid is not bound to a data set or something. the table in database in completely dynamic and will be created based on some meta data.
I did not find any flag in GridViewRowInfo class which can be used. (there is a IsModified flag which is always false)

So I created a List of edited rows and worked with that.
first I tried to save row indices. but I found out that the newly inserted row will have RowIndex = -1, but in save time will not be reachable.
so I decided to save the row reference in that List.
it did not work out, too. because the newly added row will change after it is really inserted into the grid. (a copy of the row will be added to grid not the row itself.) and I will insert a copy of an invalid row with no useful data.

I'd be thankful if someone helps me in this issue.


thanks.
Maziar



 
Richard Slade
Top achievements
Rank 2
 answered on 17 May 2011
1 answer
98 views
I am using a GridView which has filtering enabled. The GridView control itself is bounded to data via the following command:

radGridView1.DataSource = db.AppUsage(1, new DateTime(2011, 2, 10), new DateTime(2011, 5, 11));


This correctly populates the GridView with rows. If I click on the funnel icon in the column headers, I get presented with a checkbox treeview structure, listing all the distinct values. From here, I am able to check/uncheck values to set the filter accordingly. This is good.

However, if I drill down on these rows such that a child template is loaded via "load on demand" / "lazy loading", when clicking on the funnel icon in the child GridView, the checkbox treeview structure only contains the "All" item, and no other values. I would like to see a list of checkboxes with all the distinct values, in the same way as the parent template.

Please see screenshots.

Note that the child template is populated via the RowSourceNeeded eventhandler, and creates rows by iterating over a result set (i.e. the DataSource property is not set for the child template):

void radGridView1_RowSourceNeeded(object sender, GridViewRowSourceNeededEventArgs e)
{
    GridViewRowInfo rowInfo = e.ParentRow;
    String packageId = rowInfo.Cells["PackageId"].Value.ToString();
    String parentPackageId = rowInfo.Cells["ParentPackageId"].Value.ToString();
 
    WorkspaceMiQEntities db = new WorkspaceMiQEntities();
 
    foreach (var u in db.Usage(1, new DateTime(2011, 2, 10), new DateTime(2011, 5, 11), null, Int32.Parse(packageId), null, Int32.Parse(parentPackageId)))
    {
        GridViewRowInfo row = e.Template.Rows.NewRow();
 
        row.Cells["StartDateTime"].Value = u.StartDateTime;
        row.Cells["EndDateTime"].Value = u.EndDateTime;
        row.Cells["UserName"].Value = u.UserName;
        row.Cells["DomainName"].Value = u.DomainName;
        row.Cells["DeviceName"].Value = u.DeviceName;
 
        e.SourceCollection.Add(row);
    }
    db.Dispose();
     
}
I'd appreciate your help on this.

Thanks in advance.

Martin Vasilev
Telerik team
 answered on 17 May 2011
2 answers
121 views
I was trying to theme the RadTrackBar control using Visual Style Builder (VSB). The Theme previews well in the VSB preview window but when i load the theme in my app the TrackBar appears themeless???
I tried to change the properties of the elements (like BackColor, SliderAreaGradientColor...etc) directly in VSB ...but still the trackbar shows up with no theme although other controls (RadScrollbar, Radbutton...etc) take on the theme normally.
I also tried the Desert.tssp theme...same problem...the trackbar theme is not complete. The SldierAreaGradientColors and TickColor appears like the windows defaults, which is light blue.
Any help is very appreciated, because otherwise i'll have to complete the missing theme properties within the properties windows of the control in visual studio....
Ivan Petrov
Telerik team
 answered on 17 May 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?