Telerik Forums
UI for WPF Forum
1 answer
72 views
Hi,
first my situation. I use a RadGridView with following settings:
CanUserSortColumns="False"
CanUserReorderColumns="False"
ShowGroupPanel="True"
AutoGenerateColumns="False"

Some of my Columns contains following property:
IsGroupable="False"

1) The user has the ability to reorder the columns, only because of activating the GroupPanel.

2) I want to block the ability to drag columns which are not groupable. In the moment the user can drag them and can't drop them on the GroupPanel. Is there a known way to handle these request?

Thanks for support.
Mark
Top achievements
Rank 1
 answered on 15 Mar 2013
1 answer
96 views
Hi,

Code below!

I am using a converter to change the fontweight or foreground color.  The problem only occurs when the number of rows exceed available screen space.  Assume that the visible portion of the column has one visible cell with a fontweight of Bold.  When you scroll down to see the remaining rows there may be one row where that cell is also bold.  Also of interest is that the converter was not executed for someof the scrolled items.  When I increase the screen height and try it again there is no problem.

Thanks
Rich



<telerik:GridViewDataColumn
        IsFilterable="False" 
        Width="*"
        Name="ColumnName"
        Header="Column Name"
        DataMemberBinding="{Binding ColumnName}">
    <telerik:GridViewDataColumn.CellStyle>
    <Style TargetType="telerik:GridViewCell">
<Setter Property="FontWeight" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Converter={StaticResource FontConverter}}"/>
                <Setter Property="Foreground" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Converter={StaticResource ForegroundConverter}}"/>
</Style>
    </telerik:GridViewDataColumn.CellStyle>
</telerik:GridViewDataColumn>


public class FontConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        FontWeight fontWeight = new FontWeight();
        AvailableColumnItem availableColumnItem = ((GridViewRowItem)((GridViewCell)value).ParentRow).DataContext as AvailableColumnItem;
        if (availableColumnItem.IsPrimaryKey)
            fontWeight = FontWeights.Bold; 
        else
            fontWeight = FontWeights.Normal;
        return fontWeight;
    }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}


public class ForegroundConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        Brush foreground; 
        AvailableColumnItem availableColumnItem = ((GridViewRowItem)((GridViewCell)value).ParentRow).DataContext as AvailableColumnItem;
        Debug.WriteLine(availableColumnItem.ColumnName);
        if (availableColumnItem.IsPrimaryKey)
            foreground = new SolidColorBrush(Colors.DarkSlateGray);
        else
            foreground = new SolidColorBrush(Colors.Black);
        return foreground;
        }

    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}

Yordanka
Telerik team
 answered on 15 Mar 2013
1 answer
126 views
I have an application where I use MEF to dynamically load XAP and use composition imports/exports to load the views.
Using the same exact view in a project without MEF, everything works fine.
But, when I use that view in my MEF project, the documents are not loaded.
It use to work properly until I updated to version 2013.1.0220.  I noticed that there were more requirements for DLLs and added them to both projects.  What could be the problem?  I have spent several hours trying to figure out the issue.
What I'm trying to do is just open a PDF from the client PC using the "Open" command from the toolbar (I'm using the exact code as the example in the Demos).

By the way,  My solution is too big to send to you, so in case you need to see it would be better to give you access to my PC and have a life chat/call to explain to you where to find things.  

Thank you.
Kammen
Telerik team
 answered on 15 Mar 2013
1 answer
147 views
Hi,

I use the WPF Q1 2012 SP1.

I just want to export/save the image contained in the ImageEditor with my own method.

What is the better way to do that ?

Thanks for your help.
Iva Toteva
Telerik team
 answered on 15 Mar 2013
3 answers
125 views
Hello telerik team and members,
In my project I'm using Telerik controls 2012.3 version with hotfixes (2012.3.1404.40).
Recently, I faced up with problem in RadGridView filtering. I need to set filter from code and change filter settings from UI at the same time. For this I wrote behavior which apply filter when GridViewDataColumn.Loaded event is raised.
private void FilterColumn()
{
    AssociatedObject.ColumnFilterDescriptor.SuspendNotifications();
  
    AssociatedObject.ColumnFilterDescriptor.FieldFilter.Filter1.Operator = FilterOperator.IsGreaterThan;
    AssociatedObject.ColumnFilterDescriptor.FieldFilter.Filter1.Value = 4;
              
    AssociatedObject.ColumnFilterDescriptor.ResumeNotifications();
}
And it works fine: filter is active and items are filtered (all_ok.jpg). But if I reloaded underlying collection, filter become inactive and items are no longer filtered(broken_filter.jpg).
What can be cause of that strange filter behavior? Can it be more convenient way to control RadGridView filter both from code and from UI?
I prepared test project. (To reproduce this problem you should click Refresh button 2 times: one to populate GridView, and the second to reload data).
Rossen Hristov
Telerik team
 answered on 15 Mar 2013
3 answers
155 views
Hi!

I have an issue with multiselection with WPF RadGridView. I set  MultipleSelect="True". It allows to select multiple rows, but when I MouseDown to one of selected rows (in order to drag them), other rows become disselected. I want the multiselect to act same way as a "my computer" (select mutiple items, mouse down on one of selected items and drag them). Is it something that we can do with RadGridView?

Thank you,
Ruben,
Yoan
Telerik team
 answered on 15 Mar 2013
1 answer
162 views
I am trying to get the tool window to expand to the size of the content.   For example, I put UserControls in different Windows, some being 600 width.   But I never know beforehand what the exact size is.  Is there anyway to have ToolWindow behave like a standard window and just expand itself to its content while setting a Max size so it doesn't go overboard?
Konstantina
Telerik team
 answered on 15 Mar 2013
2 answers
122 views
Hi Guys!

Please help me.

I am building a radGridView dynamically from a Databasetable.
So the GridColumns are not defined in XAML.

This dynamically GridView might have some GridViewComboBoxColumns
and the user should be able to delete/deselect the value.

I am trying this in the code behind:

                    GridViewComboBoxColumn ComboBoxCol = new GridViewComboBoxColumn();
                    ComboBoxCol.SetValue(RadComboBox.ClearSelectionButtonVisibilityProperty, "Visible");
                    ComboBoxCol.SetValue(RadComboBox.ClearSelectionButtonContentProperty, null);

But I get a runtime error, that "Visible" is no valid value for the property.

Any suggestions?


Thanks and Regards, Martin



Yoan
Telerik team
 answered on 15 Mar 2013
0 answers
76 views
I Have this kind of problem
When I retrieve data from server for my gridview, at the start of function call I set IsBusy = "True" . after Async method, set IsBusy = "False", but RadBusyIndicator does not show

plz help
Mask
Top achievements
Rank 1
 asked on 15 Mar 2013
3 answers
204 views
Hi I need radbusyindicator to show while information is being loaded.  I am not using MVVM, code is written in code behind.  I am including the code here.  Right now, the busyindicator only loads after radgridview is already loaded.  Can you please help me.


<telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" />

private void LoadAnswers(Int64 inputSurveyId = 0)
        {
            busyIndicator.IsBusy = true;

            this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart)delegate()
                {
                    //busyIndicator.IsBusy = true;
                    if (inputSurveyId > 0)
                    {
                        //busyIndicator.IsBusy = true;
                        loadList.Clear();
                        loadList.AddRange(saf.GetAnswerUnfilteredE(inputSurveyId));
                        workList.Clear();
                        workList.AddRange(loadList);
                    }
                    else
                    {
                        loadList.Clear();
                        //busyIndicator.IsBusy = true;
                        loadList.AddRange(saf.GetAllE());
                        workList.Clear();
                        workList.AddRange(loadList);
                    }

                    QueryableCollectionView qCV = new QueryableCollectionView(workList);
                    rgvAnswers.DataContext = qCV;
                    rgvAnswers.ItemsSource = qCV;
                    rgvAnswers.Rebind();
                    //busyIndicator.IsBusy = false;
                });
        }
Mask
Top achievements
Rank 1
 answered on 15 Mar 2013
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?