Hello,
I have a couple questions related to RadGridView Self-Reference Hierarchy:
1. Is there a way to use the properties of System.Guid type as parent/child IDs? or only Int type?
2. How to configure a grid to be able to specify the columns manually and set AutoGenerateColumns property to false. I was not able to achieve it.
Thanks in advance!
Hi, I'm using a CheckedDropDownList fine, when the user press the Down Arrow key I show the dropdown ShowDropDown().
But I don't wanna it to be shown when the autocomplete is open, like when the user is switching between the suggestions pressing up and down arrows key...
public
static
bool
IsAutoCompleteOpen(
this
RadDropDownList ddl)
{
return
ddl.DropDownListElement.AutoCompleteSuggest !=
null
&& ddl.DropDownListElement.AutoCompleteSuggest.DropDownList !=
null
&& ddl.DropDownListElement.AutoCompleteSuggest.DropDownList.IsPopupOpen;
}
// the key down event
{
if
(e.KeyCode == Keys.Down && ddlItems.IsPopupVisible ==
false
&& ddlItems.IsAutoCompleteOpen() ==
false
)
{
ddlItems.ShowDropDown();
e.Handled =
true
;
}
}
ddl.DropDownListElement.AutoCompleteSuggest is always null, so I can't find which is the correct property of AutoCompleteSuggest on CheckedDropDownList to check, any help?
Just noticed that when the grid as a sorting applied the following line ALWAYS return -1
var rowIndex = grdData.Rows.Add("whatever");
Without sorting it return the actual row. What i actually do is :
1 - Call the Grid.BeginUpdate();
2 - Clear the rows
3 - Loop in my collection and add 1 row per object
4 - Call the Grid.EndUpdate()
This is my code to select multiple rows and it works. But when i use the search bar the selected rows un-select themselves
//Enabling multiple row selection
dataGridViewCompanies.MultiSelect = true;
dataGridViewCompanies.SelectionMode = GridViewSelectionMode.FullRowSelect;
Any tips on how to keep the selected rows after i search so i can select as many as i want!
Thanks
Hi,
spreadexportrenderer not available in telerik.wincontrols.export name space. Anyone can give me a idea on how sort this.
what I am trying is
Dim renderer As Telerik.WinControls.Export.SpreadExportRenderer = New Telerik.WinControls.Export.SpreadExportRenderer()
spreadExporter.RunExport(dialog.FileName, renderer)
Madura
Hi,
How do I remove/hide buttons specifically
from the backstage view of the Rich Text Editor Ribbon Bar.
With a regular backstage view I could do something along the lines of
this.radRibbonBarBackstageView1.Controls.Remove(this.radButton1);
but here I can't access the backstage view.
Thank you in advance
Mohammed
Hello.
I've been researching and made a code that could solve my problem of automatic visibility of the scroll bar in Telerik listView, Telerik ListControl and Windows listView
using
System;
namespace
TelerikWinFormsApp2
{
public
partial
class
RadForm1 : Telerik.WinControls.UI.RadForm
{
public
RadForm1()
{
InitializeComponent();
for
(
int
i = 0; i < 50; i++)
{
radListView1.Items.Add(
"aa"
);
radListControl1.Items.Add(
"aa"
);
listView1.Items.Add(
"aa"
);
}
//Windows listView Mouse Events
listView1.MouseEnter +=
new
EventHandler(listView1_MouseEnter);
listView1.MouseLeave +=
new
EventHandler(listView1_MouseLeave);
//Telerik listView Mouse Events
radListView1.MouseEnter +=
new
EventHandler(radListView1_MouseEnter);
radListView1.MouseLeave +=
new
EventHandler(radListView1_MouseLeave);
//Telerik listControl Mouse Events
radListControl1.MouseEnter +=
new
EventHandler(radListControl1_MouseEnter);
radListControl1.MouseLeave +=
new
EventHandler(radListControl1_MouseLeave);
}
private
void
RadForm1_Load(
object
sender, EventArgs e)
{
//Windows ListView
listView1.Scrollable =
false
;
//Telerik ListView
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
//Telerik ListControl
this
.radListControl1.ListElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
private
void
radListView1_MouseEnter(
object
sender, EventArgs e)
{
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
}
private
void
radListView1_MouseLeave(
object
sender, EventArgs e)
{
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
private
void
radListControl1_MouseEnter(
object
sender, EventArgs e)
{
this
.radListControl1.ListElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListControl1.ListElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListControl1.ListElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListControl1.ListElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListControl1.ListElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Visible;
this
.radListControl1.ListElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
}
private
void
radListControl1_MouseLeave(
object
sender, EventArgs e)
{
this
.radListControl1.ListElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this
.radListControl1.ListElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
private
void
listView1_MouseEnter(
object
sender, EventArgs e)
{
listView1.Scrollable =
true
;
}
private
void
listView1_MouseLeave(
object
sender, EventArgs e)
{
listView1.Scrollable =
false
;
}
}
}
I hope it helps.
Regards
Felipe.
​
I'm creating a custom theme for the scheduler using the style builder. In the style builder I can switch the view to month and timeline, but agenda view is missing. How can I get it to show agenda view?
Thanks in advance
i have noticed that if you click on the + icon of the pdfnavigator it doesn't work. outside the + icon it works.
is this only the case with me ?
andre