HI,
I have a radPopupEditor control and a radPopupContainer control .Inside radPopupContainer , i placed a radGridView. In radGridView there are a lot of data and have a scroll in it , the problem is when i tried to scroll inside the radGridView the popub is closing and the radGridView scroll doesnt works . how can i solve the problem.
Hi,
Spent some time today with the RadTreeView and can't figure out why a node is removed fine from the DS when using
radTreeView1.DisplayMember = "Name";
radTreeView1.ValueMember = "Id";
But not when using:
radTreeView1.DisplayMember = "Name\\ChildName";
radTreeView1.ChildMember = "list\\ChildObjects";
Regards,
Thomas
See code below:
namespace
RadTreeViewTest
{
public
partial
class
RadForm1 : Telerik.WinControls.UI.RadForm
{
BindingList<MyObject> list =
new
BindingList<MyObject>();
int
counter = 0;
public
RadForm1()
{
InitializeComponent();
list.ListChanged += List_ListChanged;
radTreeView1.DataSource = list;
radTreeView1.DisplayMember =
"Name\\ChildName"
;
radTreeView1.ChildMember =
"list\\ChildObjects"
;
//radTreeView1.DisplayMember = "Name";
//radTreeView1.ValueMember = "Id";
}
private
void
List_ListChanged(
object
sender, ListChangedEventArgs e)
{
radLabel1.Text =
""
+list.Count;
}
private
void
radButton1_Click(
object
sender, EventArgs e)
{
list.Add(
new
MyObject(counter++,
"Test "
+ counter, 5));
}
}
public
class
MyObject : INotifyPropertyChanged
{
private
int
id;
public
int
Id
{
get
{
return
id; }
set
{ SetField(
ref
id, value,
"Id"
); }
}
private
string
name;
public
string
Name
{
get
{
return
name; }
set
{ SetField(
ref
name, value,
"Name"
); }
}
private
int
counter;
public
int
Counter
{
get
{
return
counter; }
set
{ SetField(
ref
counter, value,
"Counter"
); }
}
public
BindingList<ChildObject> ChildObjects {
get
;
set
; }
public
MyObject()
{
}
public
MyObject(
int
i,
string
n,
int
c)
{
ChildObjects =
new
BindingList<ChildObject>();
this
.Id = i;
this
.Name = n;
this
.Counter = c;
ChildObjects.Add(
new
ChildObject(i,
"ghejwgk 1"
));
ChildObjects.Add(
new
ChildObject(i,
"ghejwgk 2"
));
}
public
event
PropertyChangedEventHandler PropertyChanged;
protected
virtual
void
OnPropertyChanged(
string
propertyName)
{
PropertyChanged?.Invoke(
this
,
new
PropertyChangedEventArgs(propertyName));
}
protected
bool
SetField<T>(
ref
T field, T value,
string
propertyName)
{
if
(EqualityComparer<T>.Default.Equals(field, value))
return
false
;
field = value;
OnPropertyChanged(propertyName);
return
true
;
}
}
public
class
ChildObject
{
public
int
ParentId {
get
;
set
; }
public
string
ChildName {
get
;
set
; }
public
ChildObject(
int
i,
string
n)
{
this
.ParentId = i;
this
.ChildName = n;
}
}
}
Hi Experts, Is there any way to select multiple row in RadScheduler winform 2016 Q2? When i select multiple row from different column then automatically previous full column selected. Where as i like to select rows (consecutive) from different column like Excel sheet. It would be vary appreciable if someone help me with this regards. Ignore my bad English.
Thnx in advance.
Mizan
How can I add new controls (buttons, raddropdownlist etc) to RadbindingNavigator? When using Microsoft control it is pretty easy and can be done at design time. Any clues?
Thanks
Wojciech
Hello,
I encountered the following issue (and found a solution) with GridView when using the Office2010Black theme:
When the font of the parent form (RadForm) was set to let's say Segoe UI; 9,75pt; style=Bold and this form contained a RadGridView, then the font of the GridView root element even got this font settings and thus all texts of the grid view were displayed in the font of the parent window with the following visual result:
.http://www.incosol.de/images/TestProgWhIssue.gif
Reason:
In the RootRadElement of the RadGridView the Font property wasn't set to a specific text repository.
http://www.incosol.de/images/StyleBuilderOriginalThemeSettings.gif
Solution:
The font property of the RootRadElement of the RadGridView has to be set to a specific text repository.
http://www.incosol.de/images/StyleBuilderCorrectedThemeSettings.gif
Result:
http://www.incosol.de/images/TestProgWhOutIssue.gif
Regards,
Jürgen
I am looking for an event to tell me when the scroll bars visibility changes, if it exists.
TIA
Hi guys, how are You.
I have one quesition and I hope You guys can help me.
Ok, datasource in my radgridview is DataTable( filled with DataAdapter / query). < - I have to use this because quety is using PIVOT construct.
You can see the results of my query in attachment. Now You see that cells with the values? its 3 , 20, 8 , 10 etc. Now i want to change the color or what cell based on that value. Ex. if the cell value is 20 then 20 % of that cell should be Color.Red and so on, cell with Null value or 0 value should stay the same color ( default one ).
I hope You guys will understand my question.
Hello,
I'm able to set the background color of the layout control by setting its BackColor property to a Color value but I can't find a way to reset the background color to the Theme's default. The Method ResetValue() is not available for RadLayoutControl.
Any help would be appreciated!
Thanks
Jürgen
Hi;
I am trying to selectAll all value from RadGridView. On ViewModel, I have a ListCollectionView, which represents all value from RadGridView. And i was able to take every value and set IsSelected to true.
foreach (var value in ListCollectionView)
{
value.IsSelected = true;
}
On RadGridView; those value that i can see, are highlighted but if i scroll down those i couldn't see are not highlighted.
Is anyone why.
Thank you for help.
Hi,
I am creating some custom RadDiagramShapes, using Shape -> Create new custom shape. I have also added custom connectors and configured the LightVisualElement child to display some text. (as in attachement)
Is there any way for these connectors to stay always visible in RadDiagram, even if shape is not selected?
I have tried to override the UpdateVisualStates method from RadDiagramShape, using VisualStateManager.GoToState(), with no success.
I am using .NET Framework 4.5.2 and Telerik 2017.3.912.40
Thanks!