Telerik Forums
UI for WPF Forum
1 answer
75 views
Hi

 I am using TreeListView. 
 I am adding columns dynamically at runtime

GridViewDataColumn column;

for (int icnt = 1; icnt < ts.Days; icnt++) 

{

column = new GridViewDataColumn();
column.UniqueName = "key" + icnt.ToString();
column.IsReadOnly = false;
RadTreeListView1.Columns.Add(column);

}

I am populating the cell data in RadTreeListView1_RowLoaded event.

var row = e.Row as TreeListViewRow;

foreach (GridViewCell cell in row.Cells)

{

 if (cell.IsLoaded)
{

DateTime dates;

if (DateTime.TryParse(cell.Column.Header.ToString(), out dates))
{

 string filter = "dates = '#" + dates.ToShortDateString().ToString() + "#'";

 DataRow[] dr = lobjdt.Select(filter);

 if (dr != null && dr.Length > 0)

{

cell.Content = dr[0]["hours"].ToString();
 

}

}

}

}


But I am facing one more diffrent problem.
I want to edit cells of cloumns which I have added dynamically.
I am able to click and edit the data ... but data gets disappeares when user leave the cell and click somewhere else in the window.

Editing is working correctly in static clumns.
Am I missing anything while adding columns ?

Maya
Telerik team
 answered on 27 Dec 2010
4 answers
245 views
Hi Telerik Team,

I am working on TreeViewList. When page is loaded, the default focus goes to first parent node. Can I set focus on a particular row (child node) on PageLoad? So that user will not need to drill down to that row.
Sharada
Top achievements
Rank 1
 answered on 27 Dec 2010
1 answer
84 views
Hi, is there a way to select multiple items when restored so that data in large view is composed of the selected items?
i.e. to be able to choose Car1 and Car2 from "restored view" so that in "Large View" we have data from both?

Petar Mladenov
Telerik team
 answered on 27 Dec 2010
4 answers
187 views
Hello, i want my RadPanelBar to be binded to a list of items, each item has two properties:
header and body
the body is a simple object.
hod do i put it inside the single panel when it is opened?
do i must use HierarchicalDataTemplate ???

i also wanted to get events for each panel when it is expanded. for this i used ItemContainerStyle, but this was applied to the items inside the panel as well. why?

Thanks!
kfir ANKORI
Top achievements
Rank 1
 answered on 27 Dec 2010
1 answer
79 views
I was wondering in WPF how i can use the FluidResizePresenter in order to have my application resize the window from a height of 747 to a height 92 while maintaining itself width.  I would like it to resize very fluid like almost like an animation.

Thanks

~Norman
Kaloyan
Telerik team
 answered on 27 Dec 2010
30 answers
893 views
There is a 'tutorial' in the RadGridView documentation that I was attempting to follow: http://www.telerik.com/help/silverlight/how-to-create-a-custom-theme.html

It mentions: "Every theme of RadGridView contains a file called Resources.xaml. This file contains the Brushes and Colors used by RadGridView. The brushes share the colors  defined in this file. "

I looked around for these Resources.xaml theme files but was unable to find them. If someone could elaborate on how to go about modifying a theme that would really help me out.

Thanks,
Ryan
Vanya Pavlova
Telerik team
 answered on 27 Dec 2010
3 answers
98 views
Hi. We try to get screenshot of chart control in STA thread. The workaround of removing transparency in style is used. But some charts are not displayed yet. Especially Horizontal Bar and Stacked Bar cannot be exported (there are scales only) while bar chart can be exported perfectly. If you want I can send a demo project I've created.
Is there any workaround? Thanks in advance.
Alex
Top achievements
Rank 1
 answered on 27 Dec 2010
2 answers
102 views
Hi,
I'm trying to delete an item in the tree hierarchy.

       private void ButtonRemove_Click(object senderRoutedEventArgs e)
        {
            if (DialogRadTreeListView.SelectedItem != null)
            {
                DialogRadTreeListView.Items.Remove(DialogRadTreeListView.SelectedItem);

            }

        }
I believe the above code only deletes if the SelectedItem is in the first level of DialogRadTreeListView.Items.
If SelectedItem is several levels deep, "Remove" won't find it.
Any ideas how I can delete an item in this case?

Thanks.

-Chris
Chris
Top achievements
Rank 1
 answered on 27 Dec 2010
2 answers
141 views
I noticed that rows of hierarchy child aren't virtualized. So If I have a child table with 500 rows, 500 UI controls will be generated for each of the rows. You can use Snoop to see that. (Rows of root table, at the top of the hierarchy are virtualized, as expected).

Is there a way to extend virtualization to support child tables? If not, is there a plan to support it in the future?
Yaakov Davis
Top achievements
Rank 1
 answered on 27 Dec 2010
3 answers
102 views
having any rad text box in WPF?

if possible mean give me some suggession?
if i use visual studio 2010 text box mean rad properties may assign in the textbox also?
or give me suitable solution.
Vanya Pavlova
Telerik team
 answered on 27 Dec 2010
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?