private
bool
ResetCellsColor(RadGridView radGridView)
{
Boolean ret =
true
;
try
{
GridViewColumn gvc =
null
;
if
(radGridView.Columns.Count > 2)
{
gvc = radGridView.Columns[2]
as
GridViewColumn;
}
if
(gvc ==
null
)
{
ret =
false
;
}
else
{
for
(
int
i = 0; i < radGridView.Rows.Count; i++)
{
if
(radGridView.Rows[i].IsVisible)
{
GridViewRowInfo gvri = radGridView.GridElement.GridViewInfo.Rows[i]
as
GridViewRowInfo;
if
(gvri ==
null
)
{
ret =
false
;
continue
;
}
GridCellElement gce = radGridView.TableElement.GetCellElement(gvri, gvc)
as
GridCellElement;
if
(gce !=
null
)
{
gce.ResetValue(VisualElement.ForeColorProperty);
gce.ResetValue(VisualElement.FontProperty);
gce.DrawFill =
false
;
}
else
{
ret =
false
;
}
}
}
}
}
catch
{ ret =
false
; }
return
ret;
}
Is there any way to detect/is there an event raised when a user cancels an insert?
When the user clicks to enter data on the new row, pressing escape twice or clicking off the row twice cancels the insert and reinstates the "click here to enter a new row" banner.
Is there anyway to detect when this happens?
I am trapping when a user starts an insert, and also trapping the AddedNew event to detect when the user completes an insert but also need to know when they choose to cancel one.
Many thanks,
Mark
I saw the code for Java and it almost made sense but almost didn't quite get me there:
Can anyone post a snippet of how to sort an unbound grid by one or more columns?
Thank you.
-C
class
Node
{
public
string
Title;
//DisplayMember
public
string
Value;
//ValueMember
public
bool
IsActive;
//CheckedMember
public
List<Node> Children =
new
List<Node>();
//Children of this node here
public
Node()
{
}
public
Node(
string
title,
string
value,
bool
isActive, List<Node> children)
{
Title = title;
Value = value;
IsActive = isActive;
Children = children;
}
}
The description in visual studio appears to be a stub in v2017.2.613.40
The online documentation is seeming just a stub as well.
http://docs.telerik.com/devtools/winforms/api/html/p_telerik_wincontrols_ui_radtreeview_hideselection.htm
Can you tell me what the property actually does? (and perhaps report this issue to the powers that be?)
Can't seem to find an answer that works on the forums anywhere for this one.
When I press enter when in edit mode on a text cell, I want to insert a new line rather than ending the cell edit, but no combination of catching key presses or any other grid or cell events seems to be able to achieve this.
Any help with this would be greatly appreciated.
Shane
I wish I knew a better way to report a Bug other than filling out a Support-Ticket: I don't need support for this - I'm reporting it to help you folks make a better product. If I'm in the wrong location or if you folks would like to insist on me creating Support Tickets in the future, please just say the word and i'll make sure it happens. Now, onto my bug:
If you have a RibbonBar with the first tab set Enabled = False, it looks like its using a different font than the rest of the tabs and its chopped off. I tried this with no Theme, Windows8 and a few others...all the same so I'm pretty sure it's not Theming causing this.
Please look at my attached screen snips to see what I'm talking about.
Peace, all :)
-C
Bug #2
This one is super irritating - when a RadRibbonForm.WindowState = Maximized, the application is NOT maximized. It's very, very close! But
Hi..Telerik Team
I am facing problem when add photo album viewer element inside my project. If i am running example from telerik there is no error but when i export into my project there is pop up few error.
I had attach some ss from my project. Appreciate your help to solve my problem.
I'm a WinForms developer - have been for a very long time now. Anyway, as much as I love Visual Studio the one thing that I truly dislike is their color-selector that drops down in the Properties window whenever you click on the ... button. Ok for selecting System or Web colors its fine but lets face it - that custom color thing they haven't upgraded in YEARS is the worst.
So, ages ago I built my own Color Selector that I use to replace that thing in the IDE but then I discovered Telerik controls a few years back and it hits me! There's a VERY NICE color selector in these controls which does everything my ancient one did PLUS it includes Web and System colors.
Here's my question (if you look at the screenshots I've included this will probably make more sense!)
When I'm in VS's IDE and I'm editing a form or whatever in the Designer and I want to edit one of the colors AND that color is a "Known" color (either System or Web) I'd like to be able to tell the RadColorSelector which tab it should start on (I have ShowBasicColor = False btw)
I'm also happy to give this code to anyone who is a subscriber to Telerik UI for WinForms if anyone would like this for their own use I just don't know if Telerik allows that and if they do, where to deposit the source code (it's really pretty easy once you know how its done.) The only restriction is I happen to like the Windows8 Theme for my dialog boxes regardless of the Theme I'm using for the rest of the application - so that means you'll have to add the Windows8 Theme DLL to your project for this to just plug-in and work. It would be stupid-easy to just pass in whatever theme you like but for some reason RadColorSelector doesn't play well with some themes....anyway I digress
If it's possible to programmatically select the Tab in RadColorSelector I'd very much appreciate anyone showing me how!
Thanks all :)
-C