Telerik Forums
UI for WPF Forum
5 answers
170 views

Hi,

I have a RadGridView inside RadPane and RadGridView has a context menu. If RadPane is in autohide state and I right click on RadGridView to open context menu, context menu is opened but RadPane gets collapsed and hence context menu also gets closed.

I will be very thankful if anyone can provide solution for this problem.

Konstantina
Telerik team
 answered on 26 Jul 2011
5 answers
219 views
I have a variety of checkboxes in a grid where some of them will be bound to underlying objects (boolean) and others that aren't.  Those that aren't bound will not retain checkbox check marks, but they still allow them to be checked.  When clicking off such a cell, the checkbox will go back to being "unchecked".  I want to have control over these unbound checkboxes to make sure they're visibly "unavailable", whether that means preventing any checking activity at all or changing the appearance of the checkbox to a box with a red x or something of the sort just to let users know that the checkbox cannot and should not be used.

I tried hooking into various events such as CellLoaded, etc. but I couldn't find an event that would allow me to check whether or not the checkbox is checked to explicitly make a modification to an individual cell.  For example,  I tried the following which doesn't work:

void radGridView_CellLoaded(object sender, CellEventArgs e)

{

 

if (e.Cell.Content is DataFormCheckBoxField)

{

((

 

DataFormCheckBoxField)e.Cell.Content).IsEnabled = false;

((

 

DataFormCheckBoxField)e.Cell.Content).IsHitTestVisible = false;

((

 

DataFormCheckBoxField)e.Cell.Content).IsReadOnly = true;

}

}

Milan
Telerik team
 answered on 26 Jul 2011
3 answers
77 views
Hi Team,

We are using telerik rad gridview (Version 2011.1.0419)  in application. It is working very fine. The problem that we are facing is, the columns of gridview are getting collapsed(to very narrow) for few seconds while loading data into it, later the columns widths are adjusting automatically.

Requirement is When the scrollable grid is first displayed, the columns should be displayed in their final form without the collapsing and expanding of columns.

Please let us know what is the resolution for this. I am placing xaml code that we have used.

Also, Please let us know how to display the grid only after loading as a quick solution
<telerik:RadGridView Name="searchResultsGridView" ColumnWidth="*" CanUserDeleteRows="False" IsReadOnly="True" IsFilteringAllowed="False" CanUserSortColumns="True" CanUserInsertRows="False" VerticalAlignment="Top" RowLoaded="OnSearchResultsGridLoaded" SelectionChanged="OnSearchResultsSelectionChanged" RowUnloaded="OnSearchResultsGridUnLoaded"   Height="Auto" Width="Auto" Margin="5,3,5,0" Style="{StaticResource GridViewStyle}" HeaderRowStyle="{StaticResource HeaderStyle}" ItemsSource="{Binding}">
                                <telerik:RadGridView.Columns >
                                    <telerik:GridViewDataColumn Name="createDateCol" Width="Auto"  Header="Last Updated" DataMemberBinding="{Binding CreatedDate}" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDynamicHyperlinkColumn Name="lastNameCol" Width="Auto"  Header="Last Name" DataMemberBinding="{Binding LastName}"  HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDynamicHyperlinkColumn Name="firstNameCol" Width="Auto" Header="First Name" DataMemberBinding="{Binding FirstName}" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="dateOfBrthCol" Header="Age"  DataMemberBinding="{Binding DOB}" Width="Auto" HeaderTextAlignment="Center" TextAlignment="Center" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="genderCol"    Header="G" DataMemberBinding="{Binding Gender}" Width="Auto" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="stateCol"     Header="ST" DataMemberBinding="{Binding StateCode}" Width="Auto" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="quoteIdCol"    Header="Quote/Illustration" Width="Auto" HeaderTextAlignment="Left" TextAlignment="Left" DataMemberBinding="{Binding QuoteId}"  HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDynamicHyperlinkColumn Name="prodDescCol"  UniqueName="prodDescCol"   Header="Product Summary" DataMemberBinding="{Binding ProductDesc}" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="annPremCol"   Header="Annual Premium" DataMemberBinding="{Binding AnnualPremium}" HeaderTextAlignment="Right" TextAlignment="Right" Width="Auto" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="agntCdCol"    Header="Agent Code" DataMemberBinding="{Binding AgentCode}" HeaderTextAlignment="Right" TextAlignment="Right" Width="Auto" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="agntNameCol" Width="Auto" Header="Agent Name" DataMemberBinding="{Binding AgentName}" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                    <telerik:GridViewDataColumn Name="gaCodeCol"    Header="GA Code" DataMemberBinding="{Binding GACode}" Width="Auto" HeaderTextAlignment="Right" TextAlignment="Right" HeaderCellStyle="{StaticResource ColumnHeaderStyle}" CellStyle="{StaticResource gridcellStyle}"/>
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>


Regards
Ram
Maya
Telerik team
 answered on 26 Jul 2011
1 answer
227 views
Hi there,

it seems like there is no way to clear or remove the pencil/pen icon after editing a row in radgridview control. Does anyone know how to clear/remove the pencil/pen icon after editing a row?

thanks
Maya
Telerik team
 answered on 26 Jul 2011
1 answer
150 views
My company is using RadControls for WPF Q1 2010 SP2. I am extending the RadDatePicker control to add certain behaviors that are used by our FSP suite of programs. We are using Visual Studio 2008 and C#.

When an invalid date is typed into the input box of a RadDatePicker (for example, 13/35/2011), its native behavior is to clear the field. I need to override this behavior to keep (not clear) the invalid input and set an error message property in our extended control. Is this possible and if so, how do I do that? I am not very experienced at how to code event handlers so if you could provide the code for how to hook the event and the skeleton of the new event handler, I would appreciate it.

Would this technique work for the RadTimePicker as well? I need to do the same thing to it.

Thanks,
Mike
Konstantina
Telerik team
 answered on 25 Jul 2011
6 answers
215 views
Hi Team,

We are evaluating the telerik map features, we don't find any examples for measure the map.
Also we are looking for the rectangular zoom for the map.

is this two  features are  possible in telerik map using openstreetmap. if possible Please provide us some code example so that we can run it and check it the all features.

Also is it possible to have pinpoints onclick infomration in telerik map using openstreetmap.

This is very important for us, so please respond ASAP.

thanks,
vivek.

Andrey
Telerik team
 answered on 25 Jul 2011
10 answers
249 views
I want to get selected span ID, i m getting selected span text using
radRichTextBox1.Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.Text;
.But need a method from which i could get selected span ID.

Regards
Faheem Khatri
Ivailo Karamanolev
Telerik team
 answered on 25 Jul 2011
1 answer
109 views
Hi,

Just wanted to mention that the formatting on the Localization help page is a little funky:

http://www.telerik.com/help/wpf/radtimebar-localization.html

This also spreads across to related product lines (for example, Silverlight).

Kind regards,
Dave.
Evgenia
Telerik team
 answered on 25 Jul 2011
1 answer
210 views
Hi,

I'm implementing keyboard navigation in an application.  When I tab into a RadRichTextBox and press tab again to skip to the next control a tab character gets added to the RadRichTextBox instead.  Now I understand that the tab command in the Rich Text Editor means something other than to skip to the next control but I was wondering if it would be possible to 1) disable this behaviour and skip to the next control or 2) is there another keyboard command that would "tab out" of the Rich Text Box and skip to the next control?

Thanks,

-- Joel
Iva Toteva
Telerik team
 answered on 25 Jul 2011
2 answers
369 views
Hi,

I have an application that when the user close the window, I'd like to do some time consuming task (update database). At the same time, I want to show busy indicator. When the task is done, close the window as per normal. Here's the sample code
public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
            Closing += MainWindowClosing;
        }
 
        void MainWindowClosing(object sender, CancelEventArgs e)
        {
            e.Cancel = true;
            busyIndicator.IsBusy = true;
            var worker = new BackgroundWorker();
            worker.DoWork += (s, args) => Thread.Sleep(TimeSpan.FromSeconds(3));//just for testing
            worker.RunWorkerCompleted += (s, args) =>
                                             {
                                                 busyIndicator.IsBusy = false;
                                                 e.Cancel = false;
                                             };
            worker.RunWorkerAsync();
 
        }
    }

but it's not working. The "e.Cancel = false" doesn't close the window. Can anyone help? Where did I do wrong?

Thanks!
Konstantina
Telerik team
 answered on 25 Jul 2011
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?