Telerik Forums
UI for WPF Forum
12 answers
174 views
Hi,Telerik Team,
I have some problem of RadGridView .
when I am in edit mode of RadGirdView and click my apply button then radGridview row  comes in Selected Mode
and Than after i have to click second time to save the data.
i want that when i click on apply button all data which is in either edit or selected should be saved .

I am sending my two image first image is initial when i am editing something in RadGridView and when i click apply button
then second image show.and to save data i have to click apply button again.
I want that when i click apply than data should be saved.


Thanks and Regards.
Vinod Nagda
Maya
Telerik team
 answered on 07 Dec 2010
6 answers
203 views
Hi,

I have just download build 2009.2 813 which fixed an issue we were having, however it has broken something else.

If a Grid has no records in its item source and the ColumnsWidthMode is set to FIll I get the following exception:

Message="'-3' is not a valid value for property 'ViewportSize'."

The xaml code for the Grid is:

<telerik:RadGridView x:Name="radGridViewNotes"   
                     AutoGenerateColumns="False"   
                     ColumnsWidthMode="Fill"   
                     Grid.Row="2"   
                     IsReadOnly="True" 
                    
DataLoaded="RadGridViewNotes_DataLoaded" 
                     telerik:StyleManager.Theme="Office_Black">  
    <telerik:RadGridView.Columns> 
        <telerik:GridViewDataColumn Header="Subject" DataMemberPath="Subject" /> 
        <telerik:GridViewDataColumn Header="Creation Date" DataMemberPath="DateAdded" /> 
    </telerik:RadGridView.Columns> 
</telerik:RadGridView> 

If I change the ColumnsWidthMode to "None" or "Auto" it works fine.

Regards,
Glen
Vanya Pavlova
Telerik team
 answered on 07 Dec 2010
4 answers
186 views
I found two problems with zooming a line chart:

1) Clipping of data points
Let's say I have 5 points at x = 1..5. If I zoom to x = [1.5, 3.5] the line is only drawn for the points with x = 2,3,4. What i would expect is, that the line is interpolated from x = 1 to x = 2 and drawn starting with x = 1.5...

This is not only true for zooming but for drawing in general (e.g. manual axis).
If no data point is with the specified range, the line is not drawn at all. Instead i would expect the visible sector of the line is drawn.

2) Visibility
I set the visibility of some series using 
_diagram.DefaultView.ChartArea.DataSeries[myIndex].Definition.Visibility = false 
However, after zooming or scrolling, all series are visible again.

3) If at least one series has no data in a zoom range, zooming is not possible at all. (see 1)

Please fix this in an upcoming release.
Kind regards
Hartmut
Vladimir Milev
Telerik team
 answered on 07 Dec 2010
1 answer
77 views
hey! guys:
 I created a datatable by code and set it to gridView's itemsource, everything looks good ,I could grouping cols my drag it to group panel.
then I created a button, in button's behind code, I created some group descriptors and added them into grid's group descriptors, Oops,
the problem is coming , the grid is not grouped as I expected, some rows were missing. 
  After I deleted the group cols by closing the grouping button and drag cols into group panel, the group is ok again.
GroupDescriptor descriptor1 = new GroupDescriptor();
descriptor1.Member = "Country";
descriptor1.SortDirection = ListSortDirection.Ascending;
this.gridView.GroupDescriptors.Add(descriptor1) ;
 
GroupDescriptor descriptor2 = new GroupDescriptor();
descriptor2.Member = "Name";
descriptor2.SortDirection = ListSortDirection.Ascending;
this.gridView.GroupDescriptors.Add(descriptor2) ;
The codes is same as demo. Did I miss something ?
stephen
Top achievements
Rank 1
 answered on 07 Dec 2010
5 answers
136 views

Dear Team ,
                  Is it possible in radtileviewitem to create custom template for minimize and maximize states.

Kind Regards 
Zarko
Telerik team
 answered on 06 Dec 2010
2 answers
74 views
Hi..

Do you have any Demo link for TreeListView Control in using WPF ?
Veselin Vasilev
Telerik team
 answered on 06 Dec 2010
5 answers
215 views
Not quite sure how to detail this problem as it does not happen right away but only after the application has done some work, I'm still trying to isolate the issue but thought I'd post what I know.

Eventually the grid starts displaying a lot of wrong data especially when another window overlays the application and then is removed, the application window does not refresh until the mouse is moved over the screen. The odd part is that if you move the mouse down the screen is correct but when you move the mouse up the screen will display incorrect information.

In the simplest form the highlight line breaks up, but only when the mouse is moved up the screen. Its always correct when you move the mouse down the screen.

The attached image shows this condition where the current link and the highlight line are broken across multiple screen rows; again only when the mouse is moved up the screen, if its brought down over the rows they are then correctly refreshed.

Any clues on where I start looking for the problem.


After returning to the application it now displays the firefox screen in the body of the window as shows in the second attached png file. If you minimize the screen and restore it the display is correct but as soon as you move the window about the display it returns to the incorrect view - with the firefox window showing. Moving the mouse over the window causes it to be updated with the correct information. But the minimize/restore/move sequence again returns to junk.
Stephen
Top achievements
Rank 2
 answered on 06 Dec 2010
1 answer
274 views
I'm a newbie with WPF and I copied some code into my Resource Dictionary so that all standard TextBoxes and Buttons would get the radcontrols styles. I found it in another thread.

<Style TargetType="Button" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=Button}}" />
  <Style TargetType="ListBox" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=ListBox}}" />
<Style TargetType="TextBox" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=TextBox}}" />
<Style TargetType="CheckBox" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=CheckBox}}" />


Now, I found that I can customize the error template using the following code.

<Style TargetType="Control" x:Key="ValidationErrorTemplate">
    <Style.Triggers>
      <Trigger Property="Validation.HasError" Value="True">
        <Setter Property="ToolTip"
                Value="{Binding RelativeSource={x:Static RelativeSource.Self},
                Path=(Validation.Errors)[0].ErrorContent}" />
      </Trigger>
    </Style.Triggers>
  </Style>
  
<Style TargetType="TextBox" BasedOn={StaticResource ValidationErrorTemplate}" />

How do I combine the two TextBox styles so that I can keep the Error Template at a common level (Control), and use it for all controls. Can I change the Error template style to be based on the Telerik ThemeResourceKey for Control? then base all other controls on it instead?
Vanya Pavlova
Telerik team
 answered on 06 Dec 2010
1 answer
208 views
Hello,
I want simple full-text search on grid and with your api it seem to be very easy.

var cd = new CompositeFilterDescriptor(){LogicalOperator = FilterCompositionLogicalOperator.Or};
foreach (var columnMeta in Grid.Columns)
{
    cd.FilterDescriptors.Add(new FilterDescriptor(columnMeta.UniqueName, FilterOperator.Contains, SearchText, false));
}
Grid.FilterDescriptors.Add(cd);

Problem arise when column type is not String. For Int or DateTime it raises exception.

  1. Are you aware of this exception behaviour?
  2. How to create FilterDescriptor not depend on column type, and how to search "formated value visible in grid" (not value in DTO)?

 

Stack:
  at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at Telerik.Windows.Data.Expressions.FilterDescriptorExpressionBuilder.CreateValueExpression(Type targetType, Object value, CultureInfo culture) in c:\Dev3\branches\2010.Q3.Release\Core\Data\Expressions\Filtering\FilterDescriptorExpressionBuilder.cs:line 131
   at Telerik.Windows.Data.Expressions.FilterDescriptorExpressionBuilder.CreateBodyExpression() in c:\Dev3\branches\2010.Q3.Release\Core\Data\Expressions\Filtering\FilterDescriptorExpressionBuilder.cs:line 38
Yavor Georgiev
Telerik team
 answered on 06 Dec 2010
1 answer
132 views
Helllo Reader,
                    I am using the trail version of RadControls toolkit. When i work with Telerik:RadGridView Control with telerik:GridViewSelectColumn in WPF Application and m trying to access the Checked rows of this Telerik:RadGridView, there is no way to access the telerik:GridViewSelectColumn checked property....

Please help me.......
Vanya Pavlova
Telerik team
 answered on 06 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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?