private
void
orderItems_grid_CustomSorting(
object
sender, GridViewCustomSortingEventArgs e)
{
if
(
this
.orderItems_grid.SortDescriptors.Count == 0)
{
return
;
}
int
result = 0;
SD_OrderItems item1 = e.Row1.DataBoundItem
as
SD_OrderItems;
SD_OrderItems item2 = e.Row2.DataBoundItem
as
SD_OrderItems;
for
(
int
i = 0; i <
this
.orderItems_grid.SortDescriptors.Count; i++)
{
string
cellValue1 = e.Row1.Cells[
this
.orderItems_grid.SortDescriptors[i].PropertyName].Value.ToString();
string
cellValue2 = e.Row2.Cells[
this
.orderItems_grid.SortDescriptors[i].PropertyName].Value.ToString();
if
(item1.ParentOrderItem.HasValue && item2.ParentOrderItem.HasValue)
{
if
(item1.ParentOrderItem.Value == item2.ParentOrderItem.Value)
result = cellValue1.CompareTo(cellValue2);
else
result = item1.ParentOrderItem.Value.CompareTo(item2.ParentOrderItem.Value);
}
else
{
result = cellValue1.CompareTo(cellValue2);
}
if
(result != 0)
{
if
(
this
.orderItems_grid.SortDescriptors[i].Direction == ListSortDirection.Descending)
{
result *= -1;
}
break
;
}
}
e.SortResult = result;
}
Hello,
I have created a custom theme for an application and I would like to know how I can theme the ExplorerBar view mode.
While exporting the premade theme “ControlDefault” as example, I only find these files in my directory:
I am trying to create by myself the missing one (“_RadPageViewExplorerBarElement.xml”), but I fails in this task.
Can you please provide me this xml as example?
I am currently working in version 2010_2_10_914 (Q2SP2).
Thank you.
Me.RadButton1.ButtonElement.Shortcuts.Add(New RadShortcut(Keys.Control, Keys.B))
The problem is when I write Me.RadButton1.ButtonElement. the word Shortcuts isn´t in the list. Also, appears the following error:if (DockWindow is SettingsForm) |
{ |
// Change to appropriate RadRibbonTab |
} |
else |
{ |
// do something else |
} |
Hi There,
I have a project that I have currently started to rebuild with the latest version of the telerik controls that seems to behave differently than the initial project did with version 2009 Q2. Basically I have a grid that has 3 child tabs for each row using this example:
Main Grid
User Information
--HR Data --Security Group Membership --Users who report to this person
the problem is HR Data always has information in the sub tab, however Security and / or Users who report might not.
the problem that I am getting now is that in the previous version of the gird I would see the child row with the headers and no information below so for instance:
HR - DATA
Full Name Phone Home Address
first last 555-111-222 example lane
Security Group
GroupName GroupOwner GroupType
the problem is now if there is no data for Security group the tab is now displayed as such:
HR - DATA
Full Name Phone Home Address
first last 555-111-222 example lane
Security Group
Full Name Phone Home Address
first last 555-111-222 example lane
If there is no data in the child tab grid, can I hide that tab or is it possible to set where I still see the column headers without any data in the grid.
thanks!
Jonathan