Hello telerik,
I am about to finish a custom implementation of a feature which consists of an element from a treeview being dragged to a Docking pane.
The attached screen shot shows how it happens.
The only thing missing so far is I need to find a way to dock it maximized or expanded, as of now the usercontrol comes taking only part of the space available as default.
is there an easy way to achieve the desired behavior problematically?
Here is my code:
private void RadDocking_Drop(object sender, DragEventArgs e){ var data = e.Data.GetData("TreeViewDragDropOptions"); var item = ((TreeViewDragDropOptions)data).DraggedItems.First(); var splitter = ((RadDocking)sender).Items[0]; RadPaneGroup group = (RadPaneGroup)((RadSplitContainer)splitter).Items[0]; var newPane = new RadPane(); switch (((RadTreeViewItem)item).Name) { case "RadPdfViewer": newPane.Content = new UserControl1(); newPane.Header = "uc1"; break; case "RadChartview": newPane.Content = new UserControl2(); newPane.Header = "uc2"; break; case "RadDataFilter": newPane.Content = new UserControl3(); newPane.Header = "uc3"; break; } if (newPane.Content != null) group.AddItem(newPane, Telerik.Windows.Controls.Docking.DockPosition.Center);}
Thank you
Hello All,
Well, color me stupid or something, because I can figure this one out. I'm using Visual Studio 2013 and I am trying to create a wizard for my WPF application. I have created a RadWizard with a RadWiardPages collection in it, with multiple WizardPage (six to be exact) objects in the collection. However, I can ONLY see ONE of the pages in the Designer. I CANNOT switch between the pages like I can on another window where I have a standard TabControl. I would like to know how I can design subsequent pages in a wizard when I can only see one page. On the other window with a TabControl, when I select a different TabItem the designer shows that TabItem's contents. Is there a way of doing this with the RadWizard control????? It makes it very difficult to design any Wizard with multiple pages when you can't see the different pages in the designer!!!
Thanks in advance,
Kevin Orcutt
Senior Software Engineer
Wurth Electronics ICS, Inc.
7496 Webster St., Dayton, OH 45414
Tel: 937.415.7700
Toll Free: 877.690.2207
Fax: 937.415.7710
Email: Kevin.Orcutt@we-ics.com
http://www.we-ics.com
I want to be able to switch the design view from wizardpage to wizardpage. Currently It will only display the first wizardpage entered in the xaml view.
Is this currently possible? If not I guess the alternative would be to make a new page.xaml for every telerik:wizardpage then override the default navigation somehow. I could use some help finding a solution.
<telerik:RadWizard x:Name="radWizard"> <telerik:RadWizard.WizardPages> <telerik:WizardPage Name="DeployTargetPage"> <telerik:WizardPage.Content> <Grid> <TextBlock Width="80" Height="20" Margin="35,51,387.4,207.4" >Deploy target</TextBlock> <ComboBox Width="100" Height="20" Margin="35,76,367.4,182.4" > <ComboBoxItem Selected="LocalDeploySelected">Local host</ComboBoxItem> <ComboBoxItem Selected="AzureDeploySelected">Azure</ComboBoxItem> </ComboBox> </Grid> </telerik:WizardPage.Content> </telerik:WizardPage> <telerik:WizardPage Name="SetParametersPage"> <telerik:WizardPage.Content> <Grid> <TextBlock Width="100" Height="20" >Site name</TextBlock> <ListBox Grid.Column="0" Height="20" /> <TextBlock Width="100" Height="20" >Publish link</TextBlock> <ListBox Height="20" /> <TextBlock Width="100" Height="20" >User name</TextBlock> <ListBox Height="20" /> <TextBlock Width="100" Height="20" >Password</TextBlock> <ListBox Height="20" /> </Grid> </telerik:WizardPage.Content> </telerik:WizardPage>
Hi, like the OpenDiagramdemo.zip, i have a diagram, when startup, it add 500 shapes to this diagram. Then i click the "click me" in the left treeview to open a radpane, and the radpane show the diagram. The problem is that it takes too much time to opening the radpane. When opened, i move the view area in the thumbnail, its response is slow too. How to make fast?
Hope answers, thanks!
OpenDiagramdemo.zip download url: http://www.filefactory.com/file/5cu3dseh6x8h/OpenDiagramdemo.zip
Hi,
I have this code and I need to set the value of one column based on the SelectedItem (SelectedItemMyRecord) binded in the grid. The value will be set after clicking a button. Can someone help me on this?
<telerik:RadGridView Grid.Row="1"
Height="300"
ItemsSource="{Binding MyRecords, Mode=TwoWay}"
SelectionMode="Single"
Name="radGridViewMyList"
telerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True"
FontSize="{Binding GridFontSize}"
IsReadOnly="False"
SelectedItem="{Binding SelectedItemMyRecord, Mode=TwoWay}"
RowIndicatorVisibility ="Visible"
RowDetailsVisibilityMode="VisibleWhenSelected"
hi,
I'm using telerik rad map in my project with png and tiff Images,
this wired thing happens to me, every few times I run my code I get system invalidoperationexception in mscorlib dll,
it is definitely related to maps Images because when I remove the png and tiff (using the map without image) it is not happening.
please note that most of the time code runs correctly with the images.
do you have any Idea why some time I get this exception?

I am creating a collection of columns in the viewmodel and successfully adding the columns to the TreeListView from the code behind in an event in the viewmodel.
CodeBehind
private void Vm_OnCompletedEvent(object sender, EventArgs e) { try { tvData.Columns.Clear(); foreach (GridViewDataColumn oCol in vm.ColumnList) { this.tvData.Columns.Add(oCol); } tvData.Rebind(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }The XAML in the View
<telerik:RadTreeListView x:Name="tvData" Margin="1" ItemsSource="{Binding TreeNodeDEList}" SelectedItem="{Binding SelectedTreeNodeDE,Mode=TwoWay}" AutoGenerateColumns="False" AutoExpandItems="True" IsFilteringAllowed="False" IsReadOnly="True" HierarchyIndent="8" FrozenColumnCount="1" RowStyleSelector="{StaticResource deRowSelector}" RowIndicatorVisibility="Collapsed"> <telerik:RadTreeListView.ChildTableDefinitions> <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildNodes}" /> </telerik:RadTreeListView.ChildTableDefinitions> </telerik:RadTreeListView>The ViewModel code to create the columns
private void CreateColumns(){ try { string sUniqueName, sValuefield; GridViewDataColumn oCol; ColumnList = new List<GridViewDataColumn>(); oCol = new GridViewDataColumn(); oCol.HeaderCellStyle = HeaderStyle(); oCol.Width = 250; oCol.Header = "Category/Line Item"; oCol.UniqueName = "Rootcol"; oCol.DataMemberBinding = new System.Windows.Data.Binding("NodeLabel"); oCol.HeaderTextAlignment = TextAlignment.Left; oCol.TextAlignment = TextAlignment.Left; ColumnList.Add(oCol); int i = 1; foreach (WeekNoDB oWk in lWeekNo) { sUniqueName = string.Format("CellLabel{0}", i.ToString().PadLeft(2, '0')); sValuefield = string.Format("CellLabel{0}", i.ToString().PadLeft(2, '0')); oCol = new GridViewDataColumn(); oCol.HeaderCellStyle = HeaderStyle(); oCol.Width = 40; oCol.Header = string.Format("{0}/{1}", oWk.ToDate.DateTimeFromNull().Day, oWk.ToDate.DateTimeFromNull().Month); oCol.UniqueName = sUniqueName; oCol.DataMemberBinding = new System.Windows.Data.Binding(sValuefield); oCol.HeaderTextAlignment = TextAlignment.Center; oCol.TextAlignment = TextAlignment.Right; ColumnList.Add(oCol); i++; } if (this.OnCompletedEvent != null) { this.OnCompletedEvent(this, new EventArgs()); } } catch (Exception exc) { gUI.PopError(string.Format("{0}.{1}", this.GetType().Name, System.Reflection.MethodBase.GetCurrentMethod().Name), exc); }}
This works perfectly - ONCE
The second time i get the error
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in Telerik.Windows.Controls.GridView.dll
Additional information: DataGrid_DisplayIndexOutOfRange
Astonishingly there is little response from Google, or my foo is not working. Any ideas how to fix this problem.
Hi,
If I want to convert a location point to an address I have to call the ReverseGeocodeAsync() method of the BingGeocodeProvider and pass a ReverseGeocodeRequest to it. However in R2 2017 this classes are deleted. And I didn’t find this classes in BingRestMapRouting.
Could you please tell me how to implement that ReverseGeocode logic in new version of telerik(R2 2017).
This is blocking us and need immediate help.
Thanx
