Telerik Forums
UI for WPF Forum
3 answers
535 views
Hi,

is it possible to set a width of a GridViewColumnGroup? I have to set two groups and each group
should be 50% width.

How can i solve this?

Best Regards
Rene
Nick
Telerik team
 answered on 02 Dec 2014
6 answers
155 views
Hi,

I have my grid in collapsible panel and its at the bottom of the page and the first column is a check box.

Now when page is loaded only first two or three records are visible. Instead of first scrolling down i tried to mark the check box of these two or three records. Instead of marking the check box control first goes to bring the grid in view means auto scroll downward. Then i have to click again to mark the check box.

I want this AutoBringIntoView functionality disabled. 

I have tried few things like ScrolMode='Deferred' but this didn't work.

I also used SalespersonAccessGrid_RequestBringIntoView event and only wrote e.Handled = True. This does not allow grid to scroll down but the selection that i have made was not persisting on the binding object/attribute.

Thanks.



Tony
Top achievements
Rank 1
 answered on 02 Dec 2014
3 answers
78 views
In the project that I am working on, I need to highlight differences, so in col1 I am displaying the source data and in col2 I am showing the target data.  When the cell value in cell1 is not equal to cell2, then I need to color cell 2 to show that there is a difference.  In my small sample app, I am using CellLoaded event and the code below.  This kind of works but from time to time the wrong cells are highlighted.  Also the approach to handle this use case seems kind of brute force and I was wondering if there is a better way to handle this.

Below is a sample piece of code that I have been using in the test

private void RowDataGrid_CellLoaded(object sender, CellEventArgs e)
{
    GridViewCell tgtFld = e.Cell as GridViewCell;

    if (tgtFld != null)
    {
        if (e.Cell.Column.UniqueName.ToUpper().EndsWith("_T"))
        {
             string fieldName = e.Cell.Column.UniqueName.ToUpper().Replace("_T", "_S");
             foreach (var item in e.Cell.ParentRow.Cells)
             {
             if (item.Column.UniqueName.ToUpper() == fieldName)
                {
                if (((GridViewCell)item).Value != tgtFld.Value)
                   {
                       tgtFld.Background = new SolidColorBrush(Colors.Green);
                   }
                   break;
                }
        }
     }
   }
}
Boris
Telerik team
 answered on 02 Dec 2014
2 answers
137 views
Dear support,

I had protect my sheet with

worksheet.Protect("telerik", WorksheetProtectionOptions.Default);

But I can change the content of cells via mouse and autofilll. Is this a bug?

Can I disable the autofill in write protected worksheets?

Thanks in advance

Marcus
Marcus
Top achievements
Rank 1
 answered on 02 Dec 2014
2 answers
138 views
I need 
I changed code in "Binding column from view model" (SDK samples browser).
MyDataContext.cs:
                    
 public ObservableCollection<GridViewColumn> Columns<br>        {<br>            get<br>            {<br>                if (columns == null)<br>                {<br>                    columns = new ObservableCollection<GridViewColumn>();<br>                    columns.Add(new GridViewDataColumn() { DataMemberBinding = new System.Windows.Data.Binding("ID") });<br><br><br>                    FrameworkElementFactory fe = new FrameworkElementFactory(typeof(System.Windows.Controls.Button));<br>                    fe.AddHandler(System.Windows.Controls.Button.ClickEvent, new RoutedEventHandler(OnClick));<br>                    fe.SetValue(System.Windows.Controls.Button.ContentProperty, "Button");<br>                    DataTemplate dt2 = new DataTemplate();<br>                    dt2.VisualTree = fe;<br>                    dt2.Seal();<br><br>                    GridViewDataColumn col = new GridViewDataColumn() { DataMemberBinding = new System.Windows.Data.Binding("Name") };<br>                    col.CellTemplate = dt2;<br><br>                    columns.Add(col);<br>                }<br>                return columns;<br>            }<br>        }<br><br>        private void OnClick(object sender, RoutedEventArgs e)<br>        {<br>            MessageBox.Show("The button was clicled");<br>        }
When Button clicked nothing happend.
How to get Clicked Event?
Dimitrina
Telerik team
 answered on 02 Dec 2014
2 answers
827 views
Hello all , 

Can I change the style of selected current cell instead of default focus .

I used the following xaml :

 <telerik:RadGridView.Resources>
                <Style  TargetType="telerik:GridViewCell">
                    <Style.Triggers>
                        <Trigger Property="IsSelected" Value="true">
                            <Setter Property="Background" Value="#6F0090FF"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
</telerik:RadGridView.Resources>



but I found it change background of selected row instead of selected cell .
Mohammed
Top achievements
Rank 1
 answered on 01 Dec 2014
1 answer
151 views
Hi,

if I set SelectionMode to "Extended" and EditTriggers to "CellEdit" and afterwards I select two rows and start to edit a cell in one of the two selected rows, the selection is not reduced to the edited row. Bug?
Boris
Telerik team
 answered on 01 Dec 2014
3 answers
254 views
Is there a way to prevent vertical resizing on a specific custom shape? 

The IsResizingEnabled property is specific to a shape, but disables all resizing. Creating a custom ResizingService appears to apply to the entire diagram and all the shapes. Basically we have a text shape and want to be able to size it horizontally and left/center/right align -> all working. But not allow vertical resizing – the text is vertically aligned to the top and does not wrap.
Zarko
Telerik team
 answered on 01 Dec 2014
7 answers
251 views
Currently the zoom behaviour of the popup on a diagram is determined by the zoom level of the diagram when the popup is opened. Any subsequent zooming action would not change the appearance of the popup. This can be observed in the MindMap sample.

Is it possible to change this behaviour so that the popup is always displayed without zoom render transform? just like when using the ItemInformationAdorner.AdditionalContent?
Zarko
Telerik team
 answered on 01 Dec 2014
1 answer
147 views
Hello,

Is there an implemented way to use the keyboard (just like GridView) to move up and down in the grid side of the RadGanttView?
I noticed that using the keyboard now just widens the columns section. Is there any workaround to implement this
feature?

Regards,
Richard
Polya
Telerik team
 answered on 01 Dec 2014
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?