Telerik Forums
UI for WPF Forum
3 answers
357 views
I'm not sure how to describe this.  I have a RadSlider that controls a dynamic range adjustment of an image.  I've bound the slider selection values to a property named "DraSelection".  As the user moves the max slider button and I get calls to DraSelection::set, I continually update the DRA of the image.  This can be expensive computationally, but I need it to updates to happen immediately to the image so I have to set DeferredDraggingEnabled to "false".  

As a result, sometimes the DRA processing just can't keep up with the user moving the slider.  I would be OK with that (it will catch up when the user stops moving) but I've found that when this happens -- when we get into these laggy situations -- RadSlider starts sending me bizarre calls to DraSelection::set as if it's trying to "predict" where the slider is going to be rather than telling me where it actually is.

To illustrate, it happens like this:

1. Picture a range of, say, 0 to 100 for the slider
2. Min slider is at 0, Max is at 100
3. User grabs the max slider button and start moving the max down.  99, 98, etc
4. With each move, i get  a DraSelection::set from Telerik.
5. I call some expensive function (call it "SetDra").  It is expensive enough to let the user move the slider many ticks before it returns
6. Eventually, the user has moved the max button quite a bit,  say, down to... 75. without the SetDra() function having returned.
7. Now RadSlider suddenly gives me a DraSelection::set call and the max value is something ridiculously low, like... 40.

Note that at no point did the user ever actually move the slider to 40 or anywhere near it.  But RadSlider gave me an update as if he did.  So the slider jumped all the way to the left (40) while the mouse cursor was still sitting to the right at 75.  It is as if RadSlider "predicted" it was going to be at 40 by the next time it could get something done so it just "faked" it.  

Note also that the user still has the mouse button down.  He hasn't even lifted it up at this point.  He's just paused.  So technically he is still dragging that slider.  And if he then (after a delay) moves it just a tiny bit -- like from 75 to 76, then the max slider jumps all the way back from 40 to 76 and I get another DraSelection::set with a max of 76 again.

I can't have this behavior in a finished product but I need immediate processing.  Is there any way to turn off this behavior without setting DeferredDraggingEnabled to "true"

I should note that I am using version 2012.3.1129.40 of Telerik.  I am not permitted to update to a more recent version now but will as soon as I can.  Sso if this is some sort of bug that has been fixed, is there any other workaround besides deferred dragging?.

Or perhaps I'm doing something wrong.  Here's my XAML  (minus some irrelevant properties)

            <tk:RadSlider x:Name="DraSlider" 
                          VerticalAlignment="Top"
                          HorizontalAlignment="Stretch"
                          Ticks="0"
                          Minimum="{Binding Path=DraRangeMin}"
                          Maximum="{Binding Path=DraRangeMax}"
                          Visibility="{Binding Path=Ready, Converter={StaticResource CvtBoolToVis}}"
                          IsEnabled="{Binding Path=CanUpdateDraSliders}"
                          Selection="{Binding Path=DraSelection, Mode=TwoWay}"
                          SelectionChanged="DraSlider_OnSelectionChanged"
                          StepAction="MoveRange"
                          IsSelectionRangeEnabled="True">
Kiril Vandov
Telerik team
 answered on 29 Aug 2014
1 answer
722 views
is it possible to add a radgridview control to a tabcontrol/tabitem programmatically? i need to dynamically create tabs and then populate them with a grid that has a radgridview, radchart, etc.

i can't figure out how to do this, so i'm starting to think it isn't possible. if that's the case, is there a way to somehow template the tabs in xaml so i can simply instantiate them in code behind and the structure is already built?
Dimitrina
Telerik team
 answered on 28 Aug 2014
5 answers
251 views
I want to put a GridViewDateTimeColumn into my WPF RadGridView but GridViewDateTimeColumn doesn't seem to exist in Telerik.Windows.Controls (all the other GridView column controls seem to be there, just not this one). Am I missing something?
Dave
Dimitrina
Telerik team
 answered on 28 Aug 2014
2 answers
155 views
How can I determine if the current caret position in a RadRichTextBox is within a range that is editable?

Thanks.
Chris
Top achievements
Rank 1
 answered on 28 Aug 2014
4 answers
180 views
Hi,
I have a RadMaskedTextInput with both AllowInvalidValues and AcceptsReturn set to false. When user pastes a multi-line text into the control, the control accepts the multi-line text, and changes its height. Is there a way to reject the input and keep the height?

Thanks.
Gong
Vadimir
Top achievements
Rank 1
 answered on 28 Aug 2014
3 answers
96 views
Hi,

My rad gridview becomes unresponsible for a couple of seconds while grouping certain amount of data. All I want to do is to show some kind of loading indicator for this period of time. I tried to leverage OnGrouping, OnGrouped events to set IsBusy but it does not work:

OnGrouping(){  gridView.IsBusy = true;}
OnGrouped(){  gridView.IsBusy = false;}


It looks like GridView performs all grouping in UI thread without any chance for 'IsBusy = true' being proceed before grouping finishes. 

Is this any recommended way to achieve this? I can't believe nobody meets this issue but forum search was unsuccessful :(  

Thanks in advance



Dimitrina
Telerik team
 answered on 28 Aug 2014
1 answer
358 views
Hello,
is there a possibilility to programmatically scroll the ListBox to display a specific item, something like ScrollIntoView of the WPF list box ?
Patrick
Kalin
Telerik team
 answered on 28 Aug 2014
2 answers
80 views
Hi,

I try to display a chart with SeriesProvider using implicit style.

I work on the SDK sample project for series provider, I change the dll references to used the no-xaml ones and I add the implicit style on my themes folders.

When I try to provide some series, the text "no data to plot" is displayed, so the series are discovered but not the data...

I upload my project here : https://www.sendspace.com/file/qdkvzk


Thanks,
Fabien
Michaël
Top achievements
Rank 1
 answered on 28 Aug 2014
1 answer
76 views
Hi,

When I place a RadGridView in the LargeContent part of a RadFluidContentControl the Column Headers are shown but no data is shown in the grid.

If I place the exact same RadGradView into the Content part of the same RadFluidContentControl all of the data is shown in the grid.

Any help would be appreciated.

Thanks
Anthony

​
<telerik:RadFluidContentControl NormalToSmallThreshold="200 200" NormalToLargeThreshold="500 300">
    <telerik:RadFluidContentControl.SmallContent>
        <TextBlock Text="Small Content" />
    </telerik:RadFluidContentControl.SmallContent>
    <telerik:RadFluidContentControl.Content>
        <TextBlock Text="Normal Content" />
    </telerik:RadFluidContentControl.Content>
    <telerik:RadFluidContentControl.LargeContent>
        <Grid>
            <telerik:RadGridView x:Name="RadGridView"
                     HorizontalAlignment="Left"
                     VerticalAlignment="Top"
                     CanUserFreezeColumns="False"
                     RowIndicatorVisibility="Collapsed"
                     ItemsSource="{Binding Today}"
                     AutoGenerateColumns="False"
                     BorderThickness="0"
                     CanUserSelect="False"
                     ShowGroupPanel="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Task"
            DataMemberBinding="{Binding Path=Task}"
            IsReadOnly="True"
                                    TextWrapping="Wrap"
                                    IsFilterable="False"/>
                <telerik:GridViewDataColumn Header="Tool"
                        DataMemberBinding="{Binding Path=Tool}"
                                    IsReadOnly="True"
                                    TextWrapping="Wrap"
                                    IsFilterable="False"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        </Grid>
    </telerik:RadFluidContentControl.LargeContent>
</telerik:RadFluidContentControl>
Anthony
Top achievements
Rank 1
Iron
Veteran
 answered on 28 Aug 2014
4 answers
118 views
I've transitioned all my geometry to MapShapeData objects, with the exception of MapPinPoint. I am still using those because they allow positioning over the center instead of the upper left corner. How can I create an EllipseData (for example) so that its center is at 30,-90 instead of its upper left corner at that coordinate?
Ludmila
Top achievements
Rank 1
 answered on 27 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?