Telerik Forums
UI for WPF Forum
1 answer
158 views
I'm trying to rebind same grid to different datatables. The problem occurs when after sort by column gridview is rebound. During rebind it crashes bypassing catch..

Has anyone come across this (run this method , sort the gridview on any columns and run method again)

 try
            {
                 dt = new DataTable();
                 

                 dt.Columns.Add(new DataColumn(string.Format("{0}{1}", "x", (new Random()).Next(1, 20))));
                    dt.Columns.Add(new DataColumn(string.Format("{0}{1}", "y", (new Random()).Next(43, 320))));
                     

                for (int i = 0; i < 15; i++)
                {
                    DataRow dr = dt.NewRow();
                    dr[0] = (new Random()).Next(1, 90);
                    Thread.Sleep(100);
                    dr[1] = System.Convert.ToDouble("1." + (new Random()).Next(1, 203222));

                    dt.Rows.Add(dr);

                }
                dt.AcceptChanges();


                this.dataGrid1.DataContext = dt;
                this.dataGrid1.Rebind();
            }
            catch (Exception e)
            {
                string x = e.Message;
                return;

            }

Vlad
Telerik team
 answered on 12 Jun 2009
4 answers
328 views
Is it possible to show the times in the RadTimePicker in Military Time format?

Thanks,

Billy Jacobs
Boyan
Telerik team
 answered on 11 Jun 2009
1 answer
149 views

Hi.

I am using the TreeView control.
however, there are some restrictions I need enforced.
Basically I want the user to be able to re-arrange the sub items in a tree node but not be able to drop a node outside of its parent.
How can I do this?

Lower part saw the same contents question.
Will be a plan which will upgrade. Now is the use possible?

Reply will wait.
Thanks...

Miroslav
Telerik team
 answered on 11 Jun 2009
1 answer
127 views
Hello,

I have a long tree view, where the tree items go below the viewable area of the page.  I tried wrapping this with a ScrollViewer, but that didnt' do anything.  How can I enable scrolling for this long tree?

Right now, the list of items is truncated.

Thanks.
Bobi
Telerik team
 answered on 11 Jun 2009
3 answers
121 views
Not sure if this is a bug or if I'm not using the right property. I can't seem to get the content/text of the timepicker to be verticalcontentalignment = center ...always appears to stay stuck on "top". This is using the release that went live yesterday..
Dimitrina
Telerik team
 answered on 11 Jun 2009
1 answer
185 views
hello

How to bind a simple string array to a RadGridView.How can I achive this problem.
Vlad
Telerik team
 answered on 11 Jun 2009
3 answers
88 views
Hello,

Does the gridview have a footer row ?

Thanks

Erez
Vlad
Telerik team
 answered on 11 Jun 2009
1 answer
83 views
I'm interested in encapsulating and extending the RadGridView, for example adding New Row and Delete Row buttons above the grid, as a UserControl, but still support XAML manipulation of the GridView by the window upon which my UserControl exists.

Is there a way to add the buttons, etc. with Templates? (instead of encapsulating in a UserControl)

Thanks!
Nedyalko Nikolov
Telerik team
 answered on 10 Jun 2009
3 answers
131 views
Hi !

I downladed & installed the TrailVersion of RAD Controls for WPF.But i couldnt able to work with those controls.When ever i open a project & start adding the RAD control its throwing exception & my whole system is feezing.When i check the task manager the visual studio is consuming very large memory.its taking some time for my system to regain its original state .Before installing the RAD controls my visual studio use to work fine.I dindt get why its happens after installing the RAD controls .

Is the any ideas ?

With Regards,
Madhu k
Boyan
Telerik team
 answered on 10 Jun 2009
1 answer
214 views
Hello,
I'm using dotnet 3.5, WPF.
XP pro SP3.
IE6.0.2900
RadControls_for_WPF_2009_1_0526_TRIAL
C#

I have created a simple RadGridView  with a GridViewComboBoxColumn column.
I have added a combobox "DataTemplate" so that the column cells will look like a combo, and not just
when pressing on one of the cells.

In the constructor of the window1, I call FillStatusComboColumn() to fill the combo with possible values.

*** The problem is that using the "DataTemplate" in the XAML causes the values in the
combobox to disappear. ***

Any ideas ?

Thanks

E. S

<telerik:RadGridView  Name="RadGridView1"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
AutoGenerateColumns="False"
ShowGroupPanel="False"
IsFilteringAllowed="False">
<telerik:RadGridView.Columns>
 <telerik:GridViewComboBoxColumn UniqueName="Status"
                                 HeaderText="STATUS">
 <telerik:GridViewColumn.CellTemplate>
   <DataTemplate>
      <ComboBox />
   </DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
 

private void FillStatusComboColumn()
{
var comboColumn = (Telerik.Windows.Controls.
GridViewComboBoxColumn)RadGridView1.Columns["Status"];
comboColumn.DataMemberBinding = new Binding("ActivityType");
comboColumn.ItemsSource = GetActivityTypes();
comboColumn.DisplayMemberPath =
"Name";
comboColumn.SelectedValueMemberPath =
"ID";
}

public class ActivityType
{
public string Name
{
get;
set;
}

public int ID
{
get;
set;
}

}

private System.Collections.IEnumerable GetActivityTypes()
{
List<ActivityType> ActivityTypes = new List<ActivityType>();

ActivityTypes.Add(new ActivityType() { ID = 0, Name = "" });
ActivityTypes.Add(new ActivityType() { ID = 1, Name = "Val1" });
ActivityTypes.Add(new ActivityType() { ID = 2, Name = "Val2" });
ActivityTypes.Add(new ActivityType() { ID = 3, Name = "Val3" });

return ActivityTypes;

}

Vlad
Telerik team
 answered on 10 Jun 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?