Telerik Forums
UI for WPF Forum
1 answer
155 views

hi Team,

I need to add a radpath button to the RadGridView's searchpanel .

RadGridView  doesnt has a particular style  property  for searchpanel, like it has for groups (i.e. GroupPaneItemStyle).

So I extracted the style, and to the control template added the radpath button.

But then this style is used globally in my application.  So this  button comes at  all  the places where the  RadGridView is used.

Now  I want to  add a attachproperty to the   radGridViewSearchPanel ,  which  can  be accessed from my different views and I should be able to control the  visibility  of my radpathbutton.

So I want something like this -

   

 <telerik:RadGridView
    Name="DeviceConnectionsGridView"
    ShowSearchPanel="True" 
    SearchPanelCloseButtonVisibility="Hidden"
My_AttachedProperty_For_SearchPanelsRadPathButtonVisbility =  "Visible"
/>

Here's what I performed -

I added an attached,  to  the GridViewSearchPanel class, but this property is only accessible where the GridViewSearchPanel is used.

In my case  ggridViewsearchpanel is  not  used directly but  coming from the  RadGridView, so this attach  property  is  not coming for R
adGridView.

So  plz  tell  me, how  can we  achieve  this ?


Stenly
Telerik team
 answered on 31 May 2022
1 answer
142 views

How can I add my own button as I marked in the picture?

            <telerik:RadScheduleView.ViewDefinitions>
                <telerik:DayViewDefinition DayStartTime="8:00" DayEndTime="20:00"/>
                <telerik:WeekViewDefinition DayStartTime="8:00" DayEndTime="20:00" x:Name="WeekViewDefinition"/>
                <telerik:MonthViewDefinition />
            </telerik:RadScheduleView.ViewDefinitions>
Stenly
Telerik team
 answered on 30 May 2022
0 answers
250 views

In Gridview collection, once collection is loaded from data source, we evaluate some conditions, that depends on previous records. Such that if previous record and current record has same Owner Id, then hide signature of current record i.e. IsVisible=false; else make it visible. 

e.g.

index 0:     {OwnerId = 123, IsVisible=True}        // Index 0 is always true

index 1:      {OnwerId = 123, IsVisible = false}    // Index 1 Owner Id == Index 0 Owner Id

index 2:     {OwnerId = 456, IsVisible = true}   // index 2 Owner id != index 1 Owner Id

Index 3:     {OwnerId = 567,  IsVisible = true}

Index 4:   {OwnerId = 567, IsVisible =  false}

Before using VirtualQueryableCollectionView, we can easily iterate collection, but as VirtualQueryableCollectionView is loading items on demand, therefore I need to iterate collection on each load.

If I implement such evaluation in ItemsLoading or ItemsLoaded event, It hurts performance. I want suitable place, where itemsLoading is completed, new collection is rendered in gridview and then I can iterate collection.

Is it possible in VirtualQueryableCollectionView. Is it right way to handle such situation. What can be alternative.

 

Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
 asked on 28 May 2022
2 answers
140 views

Hi Telerikers,

I would like to reduce the number of makers (basically I would display the makers only in the first, last, max and min values) . However, I don't want to simplify the data because that make change on the shape of line.

Would you please help me a solution to modify the display of makers? 

Many thanks for your help

minh
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 27 May 2022
1 answer
199 views

I have a RadComboBox with a list of items in ItemsSource
My SelectedValue is an int property and I display the corresponding string property from the list.

If the SelectedValue property is not in the list then it does not display anything.

Is there a way to set the display text in the RadComboBox when the SelectedValue is not in the ItemsSource list?

I've tried setting Text but it didn't work.

(note the RadComboBox is not editable)

Dilyan Traykov
Telerik team
 answered on 25 May 2022
0 answers
157 views

I use RadScheduleView for appointments for users who need to get them on mobile.

I mean I have a desktop app where someone manages the schedule and appointments and he sends them to the server

and saves them in DB.

The server should then send the appointments to the user accordingly.

The question is what should I do if I have an appointment created let's say two years ago and it recurrence which means

it still comes back every week and the server needs to find it to send to the user.

How can this be dealt with?

Because in normal cases the server can do a search for appointments created on dates from X to Y,

but in this situation, it will not see this appointment.

Would appreciate help.

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 25 May 2022
1 answer
134 views

Hello,

I have this GridViewDataColumn "Real Quantity" which has a CellTemplate with a RadMaskedNumericInput,. If we put in a value (e.g. 0.02) and save it, it will fire an AggregateFunction which calculates the Qty remaining to 4.76. I tried to make this happen in real time while typing in a value without having to save and reload the page to show the calculation .

Does anyone have any idea how i could do this?

Regards,

Matthias

Martin Ivanov
Telerik team
 answered on 25 May 2022
2 answers
270 views

Hi Telerik team,

I have a RadCartesianChart which i hided the values labels (see attached picture-1 ). I would to have a behavior like that: when mouse hover on a legend item (Cash, Time deposit, Shares, Bond... ) in the bottom of chart, the chart will display the corresponding line AND THE VALUES LABELS on the line (like you can see picture-2).

Would you please help to realize that?

 

Many thanks 

 

minh
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 May 2022
1 answer
133 views

I have a RadGridView with a frozen first column, so that the user can see that value even when the grid is scrolled horizontally.

I would like to print the grid.  If the grid is wide enough that it extends to multiple pages, I would like that first column repeated on the additional pages.

I am using ExportToWorkbook and then RadSpreadsheet.Print to print.  I have tried using worksheet.ViewState.FreezePanes on the first column.  That doesn't cause the column to repeat when printed.  

Is there a way to cause the first column to be repeated when the printout is wider than a single page?

Tanya
Telerik team
 answered on 23 May 2022
0 answers
176 views

Hi

I have a DataGrid where the XAML is:

                            <telerik:RadGridView Grid.Column="2" 
                                                 NewRowPosition="Bottom"
                                                 GroupRenderMode="Flat"
                                                 ShowGroupPanel="False"
                                                 AutoGenerateColumns="False"
                                                 SelectedItem="{Binding SelectedDevice.SelectedDataConfiguration, Mode=TwoWay}"
                                                 ItemsSource="{Binding SelectedDevice.DataConfiguration}"
                                                 IsSynchronizedWithCurrentItem="True"
                                                 x:Name="DataConfigurationGrid"
                                                 Margin="2">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewComboBoxColumn Header="Data page" DataMemberBinding="{Binding MethodId, Mode=TwoWay}" ItemsSourceBinding="{Binding DataContext.DataDefinitions, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:SatelliteManager}}}" DisplayMemberPath="Name"/>
                                    <telerik:GridViewComboBoxColumn Header="Class" DataMemberBinding="{Binding ClassId, Mode=TwoWay}" ItemsSource="{Binding SelectedDevice.SelectedTournament.Classes}" IsReadOnly="{Binding SelectedDevice.SelectedDataConfiguration.MethodId.CanFilterClass, Converter={StaticResource InvertedBooleanConverter}}" IsEnabled="{Binding SelectedDevice.SelectedDataConfiguration.MethodId.CanFilterClass}" DisplayMemberPath="Name" SelectedValueMemberPath="Id"/>
                                    <telerik:GridViewComboBoxColumn Header="Group" 
                                                                    DataMemberBinding="{Binding GroupId, Mode=TwoWay}" 
                                                                    IsReadOnly="{Binding SelectedDevice.SelectedDataConfiguration.MethodId.CanFilterGroup, Converter={StaticResource InvertedBooleanConverter}}" 
                                                                    IsEnabled="{Binding SelectedDevice.SelectedDataConfiguration.MethodId.CanFilterGroup}" 
                                                                    DisplayMemberPath="DescriptiveName" 
                                                                    SelectedValueMemberPath="Id">
                                        <telerik:GridViewComboBoxColumn.ItemsSource>
                                            <MultiBinding>
                                                <MultiBinding.Converter>
                                                    <converters:GroupsByDivisionConverter/>
                                                </MultiBinding.Converter>
                                                <Binding Path="SelectedDevice.SelectedTournament.Groups"/>
                                                <Binding Path="SelectedDevice.SelectedDataConfiguration.ClassId"/>
                                            </MultiBinding>
                                        </telerik:GridViewComboBoxColumn.ItemsSource>
                                    </telerik:GridViewComboBoxColumn>
                                    <telerik:GridViewComboBoxColumn Header="Pitch" DataMemberBinding="{Binding PitchId, Mode=TwoWay}" ItemsSource="{Binding SelectedDevice.SelectedTournament.Pitches}" IsReadOnly="{Binding SelectedDevice.SelectedDataConfiguration.MethodId.CanFilterPitch, Converter={StaticResource InvertedBooleanConverter}}" IsEnabled="{Binding SelectedDevice.SelectedDataConfiguration.MethodId.CanFilterPitch}" DisplayMemberPath="Name" SelectedValueMemberPath="Id"/>
                                    <telerik:GridViewDataColumn Header="Duration">
                                        <telerik:GridViewDataColumn.CellTemplate>
                                            <DataTemplate>
                                                <telerik:RadNumericUpDown Minimum="1" Maximum="1000" IsInteger="True" Width="50" Margin="2" Value="{Binding Duration, Mode=TwoWay}"/>
                                            </DataTemplate>
                                        </telerik:GridViewDataColumn.CellTemplate>
                                    </telerik:GridViewDataColumn>
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>

 

I have a Wrapper class I use for the itemssource for the comboboxes:

    public class TournamentSatelliteWrapper
    {
        public TournamentInfo Tournament { get; set; }
        public List<ClassInfo> Classes { get; set; }
        public List<GroupInfo> Groups { get; set; }
        public List<PitchInfo> Pitches { get; set; }
    }

Now, when I select a method where I can filter by division and group, these initial lists are filled correctly. But the list of groups are all groups..across divisions. So, when I select division (class), I have created a converter to alter the list of the groups:

    public class GroupsByDivisionConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            Guid? classId = values[1] == DependencyProperty.UnsetValue ? null : values[1] as Guid?;

            if (values[0] is List<GroupInfo>)
            {
                List<GroupInfo> groups = (List<GroupInfo>)values[0];

                if (classId.HasValue)
                    groups = groups.Where(x => x.Class.Id == classId.Value).ToList();

                return groups;
            }

            // fallback
            return values[0];
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }

All this works fine... except that when I switch between the different rows, I only see the name of the selected group for the selected row. I can see the issue, I am just not sure how to get around this. 

I can understand that the itemssource list does not contain the referenced item of the selected group when looking at a row where a different division is selected.. when applying the converter... the resulting list is the source for all the cells (each row). How could I only alter the list for the selected row? and the other cells keep their altered lists accordingly to have the selected group name display correctly?

hhgm
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 22 May 2022
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?