Telerik Forums
UI for WPF Forum
4 answers
86 views
hi

i have create two radgridview an i load csv file to frist radgridview and After filtering rows i want set filtering rows to The second radgridview but i cant please help me
http://speedy.sh/sfPHR/WpfApplication1.zip


 


Masoud
Top achievements
Rank 1
 answered on 15 Jun 2015
1 answer
87 views

Hi , i build a gridview + some lookup boxes with GridViewComboBoxColumn

all working well but i missing some functionality i could not find how todo.

If the GridViewComboBoxColumn is open and i have a long Listing of Countries i want to jump to the first Item starting with "F*" if i press e.g. "F" on the Keyboard.

Is there a XAML only solution , because i use MVVM ?

 

thanks for tips

regards

 

Stefan
Telerik team
 answered on 15 Jun 2015
4 answers
173 views

i am developing a docking application using Prism mvvm, which consist of 2 modules ModuleA and ModuleB, both modules are using Telerik RadDocking control. For using docking control with prism, I followed some code from code library. which infact register DockingRegionAdapter as Mapping for RadDocking. DockingRegionAdapter overrides CreateRegion, where new region is created with Behaviour DockActivationRegionBehavior, as follows

1.protected override IRegion CreateRegion()
2.{
3.    var region = new Region();
4.    if (!region.Behaviors.ContainsKey("DockActivationRegionBehavior"))
5.        region.Behaviors.Add("DockActivationRegionBehavior", serviceLocator.GetInstance<DockActivationRegionBehavior>());
6. 
7.    return region;
8.}
 Important point to notice is Both Modules have Docking control in it you can find my code Here.

Problem: When I switch from Module A to Module B, it raises Exception at line 5 with following error message.

An exception of type 'System.InvalidOperationException' occurred in Microsoft.Practices.Prism.Composition.dll but was not handled in user code
Additional information: The Region property cannot be set after Attach method has been called.

My Code: DockingWithPrism.zip

Vladi
Telerik team
 answered on 15 Jun 2015
1 answer
242 views

Hi, 

I am using RadCartesian Bargraph(Cluster) to visualize data. I have a model class with certain properties which holds the value for CategoricalDataPoint of each bar in cluster.

however, when I bind this CategoricalDataPoint value to the property of model class. I get error A 'Binding' cannot be set on the 'Value' property of type telerik:CategoricalDataPoint.  This is my xaml

 <telerik:BarSeries CombineMode="Cluster">
                            <telerik:BarSeries.DataPoints>
                                <telerik:CategoricalDataPoint Category="today" Value="{Binding Propertyxxx}"/>
                                
                                <telerik:CategoricalDataPoint Category="day-1" Value="{Binding Propertyyyy}"/>
                                
                            </telerik:BarSeries.DataPoints>

Please help me how to solve this issue as soon as possible.

Regards,

Rakesh.N

Martin Ivanov
Telerik team
 answered on 15 Jun 2015
1 answer
160 views

I'm trying to programmatically achieve filtering out of empty strings in a column.

 I.e. I wish to automatically set up the second grid in my attached image.

 I've tried:

 

            suffixFilter.DistinctFilter.RemoveDistinctValue("");
            suffixFilter.DistinctFilter.RemoveDistinctValue(".");
            suffixFilter.DistinctFilter.RemoveDistinctValue(string.Empty);

 

and also:

 

            suffixFilter.FieldFilter.Filter1.Operator = FilterOperator.Contains;
            suffixFilter.FieldFilter.Filter1.Value = ".";

 

but these only achieve the first grid. Please help!

 

Many thanks,

 

R

Dimitrina
Telerik team
 answered on 15 Jun 2015
3 answers
684 views

Hi Team,

 I am using MVVM wpf application. i have created view with multiple grids.

At the time of minimising the screen and i am trying to scroll the grid then my grid is flickering and the screen is outof my control.

Can you please check and let me know the root cause and solution of this issue.

PFA xaml file i am using for grid.

Note:If i am reducing the grid size i didn't get this issue..

 

Thanks,

Siva

Dimitrina
Telerik team
 answered on 15 Jun 2015
3 answers
156 views

Hi,

I used your example to improve my export (http://docs.telerik.com/devtools/wpf/controls/radgridview/export/export-xlsx)

It works perfecty excepted when I try to export some strings with quotation mark (').

How can I fix it?

Thank you

in Telerik.Windows.Documents.Spreadsheet.Model.CellValueFactory.CreateFormulaCellValue(String value, Worksheet worksheet, Int32 rowIndex, Int32 columnIndex)
   in Telerik.Windows.Documents.Spreadsheet.Model.CellValueFactory.ToFormulaCellValue(String value, Worksheet worksheet, Int32 rowIndex, Int32 columnIndex)
   in Telerik.Windows.Controls.GridView.ExportHelper.GetICellValue(Int32 rowIndex, Int32 columnIndex, Object content, Type type)
   in Telerik.Windows.Controls.GridView.ExportHelper.SetWorksheetCellValue(Object cellContent, ExportingTransferData data, GridViewElementExportingToDocumentEventArgs exportingArgs, Int32 rowIndex, Int32 columnIndex)
   in Telerik.Windows.Controls.GridView.ExportHelper.AddCells(Int32 rowIndex, Int32 startColumnIndex, Object dataItem)
   in Telerik.Windows.Controls.GridView.ExportHelper.AddDataRows(IEnumerable items, Int32 startRowIndex, Int32 startColumnIndex)
   in Telerik.Windows.Controls.GridView.ExportHelper.CreateWorkbook(GridViewDocumentExportOptions options)
   in Telerik.Windows.Controls.GridView.ExportHelper.CreateWorkbookForXslxFormat(GridViewDataControl grid, GridViewDocumentExportOptions exportOptions)
   in Telerik.Windows.Controls.GridViewDataControlExportExtensions.ExportToXlsx(GridViewDataControl gridViewDataControl, Stream stream, GridViewDocumentExportOptions options)
   in Test.GridViewExportExcelCommand.Execute(Object parameter) in d:\J_Jobs\Test\Commands\GridViewExportExcelCommand.cs:row 44     

Dimitrina
Telerik team
 answered on 15 Jun 2015
4 answers
578 views
HI !

The following code behind code is working:

radGridView.EditTriggers = Telerik.Windows.Controls.GridView.GridViewEditTriggers.F2 | Telerik.Windows.Controls.GridView.GridViewEditTriggers.CellClick | Telerik.Windows.Controls.GridView.GridViewEditTriggers.TextInput;

This codes means that the radgridview will accept either F2, CellClick, or TextInput to trigger the cell's edit mode.

But how to do these in a resource like:

<Setter Property="EditTriggers" Value="?" />

I don't know how to specify multiple values inside the value attribute.

Thank you.
Anna Katrina
Top achievements
Rank 1
 answered on 12 Jun 2015
1 answer
186 views

Hallo,

I'd like to ask you what is wrong in my scenario. I have tab control with more tabs. In every tab si RadDiagram. When i try copy paste in one diagram everyhing is fine. When i copy item from one diagram to another i have some trouble with style selector. In first case(copy and paste in one diagram) input paramter of the SelectStyle method is type MindMapNode(my custom class represents diagram node. it inherit NodeViewModelBase). But when i copy paste from one diagram to another input parameter of SelectStyle method is Shape  so my logic of selecting style can't handle it. Could you be so kind and give me some advice how to fix this ? 

 

Thank you very much.

Greetings 
Jakub

Petar Mladenov
Telerik team
 answered on 12 Jun 2015
3 answers
166 views

Hi,

 

We are using ExportToXlxs to export data from RadGridView in our application. Wondering, how to write additional data to the stream like below using the ElementExportingToDocument event. Thanks!

  

private void RadGridView1_ElementExported(object sender, GridViewElementExportedEventArgs e)
{
    if (e.Element == ExportElement.Row)
    {
        Employees obj = e.Context as Employees;
        if (obj != null)
        {
            e.Writer.Write(String.Format(@"<tr><td style=""background-color:#CCC;"" colspan=""{0}"">",
                ((IEnumerable<Telerik.Windows.Controls.GridViewColumn>)RadGridView1.Columns).Count()));
            e.Writer.Write(String.Format(@"<b>Birth date:</b> {0} <br />", obj.BirthDate));
            e.Writer.Write(String.Format(@"<b>Hire date:</b> {0} <br />", obj.HireDate));
            e.Writer.Write(String.Format(@"<b>Address:</b> {0} <br />", obj.Address));
            e.Writer.Write(String.Format(@"<b>City:</b> {0} <br />", obj.City));
            e.Writer.Write(String.Format(@"<b>Notes:</b> {0} <br />", obj.Notes));
            e.Writer.Write("</td></tr>");
        }
    }
}

Stefan
Telerik team
 answered on 12 Jun 2015
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
Security
VirtualKeyboard
HighlightTextBlock
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?