Telerik Forums
UI for WPF Forum
6 answers
420 views
I'm trying to use the RadSlider control with a tooltip to indicate the value as the thumb is dragged. This behavior can be seen with a base WPF Slider control when specifying the AutoToolTipPlacement property.

My RadSlider uses the 'IsDeferredDraggingEnabled="True"' but I still want the tooltip to display the value where the thumb is currently if the user has the mouse pressed, and have the binding source update when the user is done dragging. Also, I need control over formatting the tooltip based on the value. An example of what I am doing currently is shown below.

<telerik:RadSlider Padding="2" Width="154"
                        Minimum="{Binding MinSpeedValue}" Value="{Binding SpeedValue}" Maximum="{Binding MaxSpeedValue}"
                        LargeChange="1" SmallChange="1" IsMoveToPointEnabled="True" TickFrequency="1" IsSnapToTickEnabled="True"
                        ToolTip="{StaticResource SpeedTooltip}"
                        IsDeferredDraggingEnabled="True"/>

Any help would be appreciated.
Douwe
Top achievements
Rank 1
 answered on 25 May 2016
1 answer
301 views

Hello telerik,

i am using within a RadGridView in Win8Touch Theme a GridViewCheckBoxColumn with Binding to a Boolean.

Technically everything works fine.

But there seems to be a design bug.

If a checkbox has the focus, the design of the checkbox is displayed properly. If it doesn't have the focus, the checkbox seems to be cut off.

Here a simplified code snippet

<telerik:RadGridView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemsSource="{Binding Path=UserRights.UserRights}" telerik:StyleManager.Theme="Windows8Touch" ShowGroupPanel="False" AutoGenerateColumns="False" >
   <telerik:RadGridView.Columns>
      <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsRightGranted}" IsReadOnly="False" Width="60" UniqueName="Right.IsGranted" IsFilterable="False" AutoSelectOnEdit="True" EditTriggers="CellClick" />
   </telerik:RadGridView.Columns>
</telerik:RadGridView>

I have also attached a screenshot displaying this style problem.

Thank you for your help.

Mike

Dilyan Traykov
Telerik team
 answered on 25 May 2016
6 answers
141 views

Hi,

I am using RadRibbonWindow, in which i am setting MinWidth and MinHeight. 

But, the window can still be made smaller using the crosshairs which appear at the edge of the window. 

Is this a bug or am i missing something? Please help!

 

Thanks! :)

Martin
Telerik team
 answered on 25 May 2016
1 answer
243 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
297 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
96 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
162 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
320 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
167 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
809 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
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?