or
void
rsTest_CellFormatting(
object
sender, SchedulerCellEventArgs e)
{
if
(e.CellElement
is
SchedulerHeaderCellElement)
{
e.CellElement.Enabled =
false
;
e.CellElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
}
I have a tree and each of it's node.text has two words. The first and second words should have different colors. I'm already changing the color of the text property but I can't figure out how to split the node.text in two different colors.
private
void
grdPirteyMenahel_RowValidating(
object
sender, RowValidatingEventArgs e)
{
try
{
Cursor.Current = Cursors.WaitCursor;
if
(e.Row !=
null
)
{
//Generate a service to connect to DB
var factory =
new
MezumanimChannelFactory<IKerenService>(ServiceConsts.SERVICE_KEREN);
var service = factory.CreateChannel();
string
sError =
string
.Empty;
//here I call a SP in the database that check if the dates are correct (column of dates are call it "MiTaarich" and "AdTaarich".
//The SP return a String with the error, if there is no error it will return and empty string
sError = GetErrorPirteySacharMenahel(Convert.ToDateTime(e.Row.Cells[
"MiTaarich"
].Value), Convert.ToDateTime(e.Row.Cells[
"AdTaarich"
].Value), Convert.ToInt32(e.Row.Cells[
"Kod"
].Value));
if
(sError !=
string
.Empty)
{
e.Cancel =
true
;
RadMessageBoxHelper.Alert(sError);
}
}
}
catch
(Exception ex)
{
Elad.Mezumanim.Client.Utils.Log.LogUtil.write(ex);
e.Cancel =
true
;
RadMessageBoxHelper.Alert(Messages.DataDisplayError,
this
);
}
finally
{
Cursor.Current = Cursors.Default;
}
}
DataTable dt = (grdPirteyMenahel.DataSource
as
DataTable);
dt.RejectChanges();