Telerik Forums
UI for WPF Forum
1 answer
174 views
I'm trying to come up with a good way to have a cell that can be clicked on to navigate to another window related to the entity chosen in the cell. Typical application navigation. The edit mode for the cell has a button on the far right which opens a pop up window that lets the user query for an instance and choose it. Thus the user is able to edit the relationships of the data. Nifty.

Problem is I'm trying to come up with a good way to both allow the navigation in the cell, and switch to edit view. If I put a button in the CellTemplate, then the button is clicked on, instead of entering into edit mode. And there appears to be no further way to enter edit mode.

I was hoping the grid view had some way to show a control to enter edit mode, that was built in, so I wouldn't have to write it. If not, is there a RoutedCommand that can be raised from within the cell's template in order to enter edit mode? If so, I guess I could put in my own edit button.
Nedyalko Nikolov
Telerik team
 answered on 04 Oct 2010
4 answers
86 views
<telerik:RadGridView x:Name="grdList" ItemsSource="{Binding }"
      <telerik:RadGridView.Columns
            <telerik:GridViewDataColumn Header="角色代码" DataMemberBinding="{Binding Code}"/> 
            <telerik:GridViewDataColumn Header="角色名称" DataMemberBinding="{Binding Name}"/> 
            <telerik:GridViewDataColumn Header="最后编辑人员" DataMemberBinding="{Binding LastEditBy}"/> 
            <telerik:GridViewDataColumn Header="最后编辑时间" DataMemberBinding="{Binding LastEditDate}"/> 
            <telerik:GridViewCheckBoxColumn Header="是否禁用" DataMemberBinding="{Binding Disable}"/> 
            <telerik:GridViewColumn Header="操作"
                <telerik:GridViewColumn.CellTemplate
                    <DataTemplate
                        <telerik:RadButton Content="设置成员" x:Name="btn" CommandParameter="{Binding Code}" Click="RadButton_Click" Height="25" Margin="3"/> 
                    </DataTemplate
                 </telerik:GridViewColumn.CellTemplate
              </telerik:GridViewColumn
          </telerik:RadGridView.Columns
</telerik:RadGridView>
How can I get the button?
Bennet
Top achievements
Rank 1
 answered on 03 Oct 2010
2 answers
89 views
Hi,
   i have installed Q2 release for WPF dated 12th august. but after installing i m unable to see my controls in Expression blend. whole form is empty. previously i m having version Q1 0603 release i.e. 3rd jun 2010. is there anything else to configure..... ?

im getting following error i.e. : Cannot Locate resource Themes/GenericTransparent.xaml for every Telerik control
Betsy
Top achievements
Rank 1
 answered on 01 Oct 2010
2 answers
84 views
Hello,
Is it possible to change the minimizedItemsPosition from the UI, from button click?

Regards,
Rick
Rick Mueller
Top achievements
Rank 1
 answered on 01 Oct 2010
4 answers
262 views
Hi

I trying to set GridViewComboBoxColumn itemsSource when GotFocus event is fired but it doesn't work.
I ' m using Q2 2010 SP1 libraries and I put

this.AddHandler(RadComboBox.GotFocusEvent, new RoutedEventHandler(comboGotFocus));

in the control constructor while the handler is

void comboGotFocus(object sender, RoutedEventArgs args)
{
    GridViewCell cell = args.OriginalSource as GridViewCell;
    if (cell != null && cell.Column.UniqueName == "RegionId")
    {
        District district = cell.DataContext as District;
        if (district != null && cell.Content is LookupElement)
        {
            string countryId = district.CountryId;
            RadGridView gridView = (RadGridView)this.districtRegistryControl.ChildrenOfType<RadGridView>().First();
            RadComboBox comboBox = (cell.Content as LookupElement).ComboBox;
            if (comboBox != null)
            {
                comboBox.ItemsSource = null;
                if (string.IsNullOrEmpty(countryId) == false)
                    comboBox.ItemsSource = from r in iGasContext.Context.Regions
                                           where r.CountryId == countryId
                                           select r;
                else
                    comboBox.ItemsSource = iGasContext.Context.Regions;
            }
        }
    }
}

Thanks
Ivano
Ivano
Top achievements
Rank 1
 answered on 01 Oct 2010
1 answer
122 views
i have multiple series added in single chart..but problem is that i am not able to distinguish in legend...i have attached image..showing for first and second series..i want to customize the items for particular series..like for first series  ..each label items on legend should end up like april first,may first and for second each label items on legend should end with second...

i have used seriesdefinition.legendlabel="some text" but it doesnt give desired result.....

Thanks,
Kapil Garg
Vladimir Milev
Telerik team
 answered on 01 Oct 2010
9 answers
178 views
Hi,
I got a problem in GridviewCombox column when binding its item source property with collection View source. When i change any item in new row, the old rows get the sme item selected. I reported it earlier as well, but couldnt find any solution
Thanks
Pavel Pavlov
Telerik team
 answered on 01 Oct 2010
3 answers
131 views


Hello telerik,
the selecteddate property is returnnig a selected a date with a time stamp '12:00' ..which is not the time i select from the datetimepicker control. how to get rid of this?

i tried , 'selecteddate.value.date ' ...its of no use. still its giving me with  12:00

Thanks,
Srinivas
George
Telerik team
 answered on 01 Oct 2010
9 answers
194 views
Hi i got latest internal build of RadControls for WPF 4.0, and i got error in

<telerik:RadToolBar x:Name="test" telerik:StyleManager.Theme="Summer">            
</telerik:RadToolBar>

Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception i need help asap, because mine app stoped to work and i cant go back to 2010.2 812, because it threw me exception Unable to cast object of type 'System.Windows.Automation.Peers.TextBoxAutomationPeer' to type 'System.Windows.Automation.Peers.SelectorItemAutomationPeer'  on RadComboBox :/


BTW how to change Theme globaly for all controls ?
Viktor Tsvetkov
Telerik team
 answered on 01 Oct 2010
5 answers
1.2K+ views
If I use the following binding expression in a GridViewDataColumn

DataMemberBinding="{Binding Path=Days[1]}"

("Days" is an Array like Days[10])

I get the following error in the Visual Studio debug output window:

A first chance exception of type 'System.ArgumentException' occurred in Telerik.Windows.Data.dll

and the filter menu button in the column header is missing and the sorting function doesn't work anymore.

If I wrap the array element in a porperty in the business object and use this for binding, everything is fine. What's going on here?

Thanks
Maya
Telerik team
 answered on 01 Oct 2010
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?