Telerik Forums
UI for WPF Forum
1 answer
102 views
When setting e.Cancel = true on the event args of RadGridVoew.Sorting event, the grid nevertheless modifies the SortingState of columns.
Say the column was in Descending. In the event handler I set it to Ascending, and set e.Cancel = true.

I expect the final state to be Ascending, but the grid changes it to None, according to its internal logic.

Using Reflector, I can see that UpdateColumnSortStatesOnSort() is called in GridViewDataControl.Sort(), even if sortingArgs.Cancel == true. I believe that that call should be avoided.
Yavor Georgiev
Telerik team
 answered on 28 Dec 2010
1 answer
112 views
Hi,
I would like to display the date in the following format : "dd/MM/yyyy hh:mm:ss" instead of the default "dd/MM/yyyy hh:mm", or in other words, I want to add seconds.
I've tried the following :
CultureInfo cultureInfo = new CultureInfo("es-ES");
DateTimeFormatInfo dateInfo = new DateTimeFormatInfo();
dateInfo.ShortDatePattern = "dd/MM/yyyy hh:mm:ss";
cultureInfo.DateTimeFormat = dateInfo;
RadDateTimePicker newTime = new RadDateTimePicker();
newTime.Culture = cultureInfo;

But I encounter a strange problem. I get the following format : "dd/MM/yyyy hh:mm:ss hh:mm".
What am I doing wrong?

Thank you

Kaloyan
Telerik team
 answered on 28 Dec 2010
1 answer
276 views
Hi,

I'm trying to set the tooltip on the RadDatePicker when I get a validation error from my viewmodel.


<Trigger Property="Validation.HasError"Value="True">
<Setter Property="FrameworkElement.ToolTip"
                                 Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors).CurrentItem, Converter={StaticResource edenValidationErrorToolTipConverter}}"
                                    TargetName="PART_DateTimeInput" />
                        </Trigger>


No matter  what I try, I can't seem to update the tooltip.

Thanks,
Andy

Kaloyan
Telerik team
 answered on 28 Dec 2010
1 answer
187 views
Hello,

I wish to bind the GridView to a sql server datasource and I wish that when I update the table in the database, the GridView will automatically update the rows values. I want to achieve this without reloading the datasouce of the gridview.
Now I get the values from the datasource into a datatable and then set the datatable as the source of the GridView so there is no direct connection between the database and the GridView. Is there a way to give the GridView a "SELECT statement" and it will  autocheck for changes?

Thank you
Rossen Hristov
Telerik team
 answered on 28 Dec 2010
2 answers
89 views
It appears that child grid control references are kept in the parent row, even after the row has been collapsed.
Can I make the child grid get disposed?
Yaakov Davis
Top achievements
Rank 1
 answered on 28 Dec 2010
1 answer
141 views
Hi

I am using TreeListView control and loading child rows on demand.

I want to update the parent node again once child nodes will gets displayed.

In RadTreeListView1_RowLoaded event I am binding details of Child nodes.

Is there any other event after RadTreeListView1_RowLoaded where I can access the Parent nodes and update the cells ?

Actually I want to implemets below functionality
Director's Hours will get distributed in SubDirector A and SubDirector B
Further Subdirector's Hours can be distributed in Managers
Here only Manager's Hours can be editable.

If hours of any Manager gets updated I want to update the Hours of their Parent Rows

      Hours
Director 100
  SubDirector A 40
  Manager A1 10
  Manager A2 30
  SubDirector B 60
  Manager B1  25
    Manager B2 35

Is there any better approach I can achive this ?

Thanks
Vlad
Telerik team
 answered on 28 Dec 2010
3 answers
75 views
I have sample application (related to customised message box ) downloaded from following link  http://prajeeshprathap.codeplex.com/SourceControl/PatchList.aspx
This sample application makes my application stuck. due to which I am unable to debug by using breakpoints
Pleasae identify the issue and let mke know where you have made changes.
Asish
Top achievements
Rank 1
 answered on 28 Dec 2010
2 answers
116 views

Hi,
    I would like to data bind folder content to Carousel and show related icons in the  Carousel and open the document / picure when it is double clicked. Folder contents may be picture file,video files, excel documents, word documents and other documents
    Is this possible?

Please let me know

Thank you

Nick

Nick
Top achievements
Rank 1
 answered on 28 Dec 2010
1 answer
74 views
I have a raddatepicker with the SelectedDate bound to a date property on my model and the SelectableDateStart set to a value 30 days prior to the current date (DateTime.Now).  The date that SelectedDate it is bound to can be earlier than the SelectableDateStart and that is perfectly acceptable.  What I want is the control to display the bound date no matter what it is but only allow edits within the range set by SelectableDateStart and SelectableDateEnd.  Is this possible?
Kaloyan
Telerik team
 answered on 27 Dec 2010
1 answer
86 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
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?