I have skinned my Treeview such that it has flat white icons and white text on a blue background. I'd like them to invert colors for selection (blue on a white background).
Using Visual Style Builder, is it possible to get the icons to "invert" somehow when selected? Or what is the best way to achieve this?
If not, will I need to track selection myself and load "inverted" images at the appropriate time?
Thanks,
Dave
I might be a newbie to Telerik Winform controls.
I have a rad grid view displaying from a data source. for each row there are two buttons i.e approve and reject. I need to selectively approve or reject each row. On Click of a save button i have to save them back to database.
I have Boolean field in table to which value is based on approve or reject button. The default value is false. I want only to save the database rows that i have modified that too on save button click.Can I have any flag to selectively get only the rows modified at radgrid so that i can retrieve them and save them on save button click.
I worked on it did not work out, in My version because every save would save each and every rows if was modified on rad data grid or not.
I'd be thankful if someone helps me in this issue.
hello
When the dropdownlist is set to right to left = yes, the mouse pointer in it is like a dot. Guide me? I use telerik Q2 2014
thank you
Is it possible to add a subitem to a menu of a splitbutton?
I need a hierarchy like this:
load
---category a
------file 1
------file 2
------.....
---category b
------file 1
------file 2
------.....
save
insert
...
Thanks in advance!
Elke
Hi,
can i draw a rectangle in radDiagram with mouse, like Ms Paint?
Thanks
Hello Support,
I am having trouble with custom sorting accessing values that were set using cellformatting(). I have a Gridview that is databound to a custom class, AutoGenerateColumns = false, adding columns using grid.MasterTemplate.Columns.Add(), using CellFormatting() to populate the data on some of the columns that are not in the custom class.
Values that are assigned from the databound class show up ok, but the Values that were assigned using CellFormatting() are always null.
How can I access the values set using CellFormatting() { e.CellElement.Text = "X"} ?
Thanks
void
grid_CustomSorting(
object
sender, GridViewCustomSortingEventArgs e)
{
foreach
(var descriptor
in
e.Template.SortDescriptors)
{
if
(uicomponents !=
null
&& !String.IsNullOrEmpty(descriptor.PropertyName) )
{
var customcolumn = uicomponents.FirstOrDefault( ui => ui.FriendlyName.Equals(descriptor.PropertyName));
if
(customcolumn !=
null
)
{
int
result = 0;
System.Diagnostics.Debug.WriteLine(descriptor.PropertyName);
try
{
//var cellValue1 = (string)e.Row1.Cells[descriptor.PropertyName].Value;
//var cellValue2 = (string)e.Row2.Cells[descriptor.PropertyName].Value;
var cellValue1 = (
string
)e.Row1.Cells[descriptor.PropertyIndex].Value;
var cellValue2 = (
string
)e.Row2.Cells[descriptor.PropertyIndex].Value;
if
(cellValue1 == cellValue2)
{
result = 0;
}
else
if
(cellValue1 !=
null
)
{
result = 1;
}
else
if
(cellValue2 !=
null
)
{
result = -1;
}
}
catch
{
}
e.SortResult = result;
e.Handled =
true
;
return
;
}
else
{
//Check here if the value for cells that are databound are populated.
var cellValue1 = (
string
)e.Row1.Cells[descriptor.PropertyIndex].Value;
var cellValue2 = (
string
)e.Row2.Cells[descriptor.PropertyIndex].Value;
//This actually works.
System.Diagnostics.Debug.WriteLine(cellValue1 +
" "
+ cellValue2);
}
}
}
e.Handled =
false
;
}