Telerik Forums
UI for WPF Forum
1 answer
232 views

Hi,

I want to remove Ctrl+A, which will select all record in GridView.

I have requirement that User will be able to select multiple record/row by clicking on that. But user should not be able to Select All either from Header selction column check box or Ctrl+A.

 

Please suggest how to do that ASAP.

 

--

Manoj S

Dilyan Traykov
Telerik team
 answered on 25 May 2016
7 answers
278 views

Hello,

 

I want to change the color of vertical and horizontal gridLines of my chart (target on my screen '12'), but I don't find which property can do this changement..

The MajorXLine and MajorYLine don't have a semblable property.

 

Can you help me ?

 

 

Thank you very much.

 

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 25 May 2016
4 answers
82 views

[Using 2015 version]

When row is validated and error set, followed by cancel of the edit, the error persists in the tooltip of the row.

I have implemented the fix suggested by Telerik:-

 private void RowEditEndedCommandHandler(GridViewRowEditEndedEventArgs e)
        {
            if(e.EditAction == GridViewEditAction.Cancel)
                e.UserDefinedErrors.Clear();
        }

Although this clears the list structure in code, the tooltips remain in the grid - this solution does NOT work.

I've created a simple project which displays this problem.

https://onedrive.live.com/redir?resid=F5592FAA18AF2058!246934&authkey=!ACoJXqIxerfCnkg&ithint=file%2czip

I really need to find a solution to how to clear the error from the tooltips following edit cancellation.

Thanks!

Dilyan Traykov
Telerik team
 answered on 25 May 2016
4 answers
140 views
Hi,

I'm wondering whether I can intercept a "SelectionChanging" event. While there is a "SelectionChanged" event exposed, I would like to implement my own custom logic to manipulate SelectionStart and SelectionEnd when the user changes the selection before the changes are committed. The logic I would like to implement is for the SelectionStart and SelectionEnd to snap to the nearest hour if the selection period is less than a day, or snap to the nearest day if the selection period is over a day (This logic is more complex than what the IsSnapToIntervalEnabled property provides). While I can change the SelectionStart and SelectionEnd in the SelectedChanged event, this causes the SelectedChanged event to trigger again when I change one of these values.

Kind regards,
Dave.
Douwe
Top achievements
Rank 1
 answered on 25 May 2016
2 answers
236 views

Hello,

I want to use custom provider in my project,

the map can be shown right,but the minimap is nothing in the map.

what should I do?

here is the code in my project:

XAML:

<telerik:RadMap x:Name="map"  Center="73.8737, -31.9043" ZoomLevel="7"  MinZoomLevel="3" MiniMapExpanderVisibility="Collapsed">
            <telerik:RadMap.Providers>
                <provider:MapProvider></provider:MapProvider>
            </telerik:RadMap.Providers>
</telerik:RadMap>

MapProvider :

public class MapProvider : TiledProvider
    {
        public MapProvider() : base()
        {
            MapSource mapSource = new MapSource();
            this.MapSources.Add(mapSource.UniqueId, mapSource);
        }
        public override ISpatialReference SpatialReference
        {
            get
            {
                return new MercatorProjection();
            }
        }
    }

 

MapSource:

public class MapSource : TiledMapSource
    {
        public override void Initialize()
        {
            RaiseIntializeCompleted();
        }

        public MapSource() : base(3, 18, 256, 256)
        {
        }

        protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
        {
            int zoomLevel = this.ConvertTileToZoomLevel(tileLevel);

            if (tilePositionY > Math.Pow(2, zoomLevel - 1) - 1)
            {
                return null;
            }

            string url = "http://www.arcgisonline.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer";
            
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat("{0}/tile/{1}/{2}/{3}", new object[] { url, zoomLevel - 1, tilePositionY, tilePositionX });

            return new Uri(builder.ToString());
        }
    }

 

and here is the result:

 

 

Wang
Top achievements
Rank 1
 answered on 25 May 2016
1 answer
141 views

Hello,

I am using RadRichTextBox in my project as a reporting tool. I have created a basic structure of application and it seems to be working fine. I am setting MailMergeDataSource to a collection to generate report of more than one selected records. For example If a user selects 10 records, 10 pages will be created in final report. (assuming 1 page per report). User can now edit the generated report (like formatting, refining and so on). Till this point it seems to be achievable. I further want to get all these 10 updated pages of reports separately (with the changes done on the view), I am not sure how to do it.

Following is the line I am using for MailMerge

 

radRichTextBox.Document = radRichTextBox.MailMerge(); //Start each record on new page.

 

I am not sure how to get the boundaries of each report. because if I use the API to regenerate each report the changes done on the print preview will be lost.

This is what I am talking about

IDocumentFormatProvider formatProvider = DocumentFormatProvidersManager.GetProviderByExtension(".docx");

for (int i=0;i<number_of_records; i++)

this.radRichTextBox.Document.MailMergeDataSource.MoveToFirst();

var doc = this.radRichTextBox.MailMergeCurrentRecord(); // returns a RadDocument that is the result of substituting the merge fields with the data from the current record.

byte[] binnaryReportData = formatProvider.Export(doc); //but changes will be lost

this.radRichTextBox.Document.MailMergeDataSource.MoveToNext();

}

 

How can I achieve this?

Muhammad Ummar
Top achievements
Rank 1
 answered on 25 May 2016
3 answers
749 views

Dear Admin,

I want to edit the content of radgridview cell programmatically.

I am usign below code .Would you please help me with the same. While debugging , the currentcell.Value is updated but it does not show up in Radgridview

       var dataControl = (GridViewDataControl)sender;
       currentCell = dataControl.CurrentCell as GridViewCell;
 
if (currentCell != null)
            {
                currentCell.Value = s;// s is the string
             }
 
//Radgrid view xaml
 
 <telerik:RadGridView.Columns>
 
                                <telerik:GridViewDataColumn Header="Expectation Set" DataMemberBinding="{Binding ExpectationSet.Name, Mode=TwoWay}" />
 
 
            </telerik:RadGridView.Columns>

Martin
Telerik team
 answered on 25 May 2016
5 answers
233 views

Dears , 

 

i don't know how to add zoom to Rad Polar chart , could you help me with example ?

 

regards

 

Evgenia
Telerik team
 answered on 25 May 2016
5 answers
247 views

Hi, I am using Bar chart to display some data. But most often, the bars are too small to be visible in the view. Please see attachment.

Is there something I can set so that even though the Y value is small, bar is still visible in the view?

Thanks,

Mingxue

Petar Marchev
Telerik team
 answered on 25 May 2016
3 answers
435 views

I am using the RadGridView control in an MVVM (Light) application. I added the following EventToCommandBehaviors to initiate row validation when leaving the selected row:

<telerik:EventBinding EventName="RowValidating" Command="{Binding ValidateCommand}" PassEventArgsToCommand="True"/>

<telerik:EventBinding EventName="RowEditEnded" Command="{Binding SaveCommand}" PassEventArgsToCommand="True"/>

 

Here's the method and helper method that gets called and works like it should to add the error:

        private void ExecuteValidate(GridViewRowValidatingEventArgs eventArgs)
        {
            var employee = eventArgs.Row.DataContext as Employee;
            if (employee?.RecId == (int)RecEnum.CertainState && employee.OtherRecId == null)
            {
                var validationResult = new GridViewCellValidationResult
                {
                    PropertyName = "ColumnUniqueName",
                    ErrorMessage = "Must enter a OtherRecId when RecId is set to CertainState"
                };
                eventArgs.ValidationResults.Add(validationResult);
            }

            if (eventArgs.ValidationResults.Count > 0)
            {
                eventArgs.IsValid = false;
            }
        }

And finally, following the instructions of removing the UserDefinedErrors, I add the following line in the RowEditEnded event:

            eventArgs.UserDefinedErrors.Clear();

 

If I fix the error, the row is saved, but the mouseover error message remains even though there are no errors. I followed your directions by adding the eventArgs.UserDefinedErrors.Clear(), but this didn't help.

Does anyone have any workarounds or must this bug be fixed?

Thanks for your help.

Dilyan Traykov
Telerik team
 answered on 25 May 2016
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?