Telerik Forums
UI for WPF Forum
4 answers
673 views
I have placed a radlistbox in a dropdown button.  I have SelectionMode = Single.  I have an event handler for the selectionchanged to know which item they selected.  In that handler I set the dropdown button to close, get the item and clear the selection.  I do this so that the next time the user opens the menu there is not an item selected in the listbox.  I have tried 3 different things but the highlight of the item does not go away.  I have tried:

SelectedItems.Clear();
SelectedItem = null;
SelectedIndex = -1;

As previously stated, none of these clear the UI selection.  The SelectedItem property is set to null, but all previously clicked on items are still highlighted in the UI.

Thanks in advance,
Lee
Georgi
Telerik team
 answered on 15 Oct 2012
1 answer
309 views
I have the following chart set up where I would like to display gridlines:

<telerik:RadCartesianChart Grid.Row="1">
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartTrackBallBehavior />
        <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" />
    </telerik:RadCartesianChart.Behaviors>
    <telerik:LineSeries ItemsSource="{Binding PraGasProductionChartPoints}"
                        CategoryBinding="Date"
                        ValueBinding="Value">
        <telerik:LineSeries.HorizontalAxis>
            <telerik:DateTimeContinuousAxis  Minimum="{Binding MinimumChartDate}"
                                                Maximum="{Binding MaximumChartDate}"
                                                LabelStyle="{StaticResource labelFontStyle}"
                                                MajorStepUnit="Year"
                                                MajorStep="3"
                                                LabelFormat="yyyy"
                                                />
        </telerik:LineSeries.HorizontalAxis>
        <telerik:LineSeries.VerticalAxis>
            <telerik:LinearAxis LabelFormat="#,#" />
        </telerik:LineSeries.VerticalAxis>
    </telerik:LineSeries>
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
    </telerik:RadCartesianChart.Grid>
</telerik:RadCartesianChart>

My chart displays fine but I don't get any gridlines to show up on the chart. I assume I'm doing some basic thing wrong. Please help.

Thanks,
Mike 
Petar Kirov
Telerik team
 answered on 15 Oct 2012
1 answer
65 views
Here comes another similar question, Since I have already known that the copy of cell will only copy the raw text. How about print and export to excel ? Is that possbile to retain the format in every possible way ? (Mainly font family, font size, font stretch are defined as functional requirement) 

Thanks,

Fan, Yi-Jie
Vlad
Telerik team
 answered on 15 Oct 2012
1 answer
138 views
Hi,

I am using radgridview panel in side a grid , but as a default behaviour the GridviewGroupPanel of radgridview occupy the area above radgridview as shown in the attatchment (currentBehaviour.png)

My requirement is to move the GridviewGroupPanel to a column inside parent grid rather than having it at default position as shown in the attatchment (RequiredBehaviou.png), can this be done , if yes then could you please provide the solution ?

Thanks,
Ankush
Vlad
Telerik team
 answered on 15 Oct 2012
2 answers
157 views
Hello friends,

I have a RadGridView in which I want to give Edit as the last column. I want it to be either a link or a button so that when I click on Edit(which is there as the last column value for all the rows), I can display a page in which I can give provision for editing the fields. I cannot use inline edit option since I cannot display all the columns of the data source in the grid. But when user clicks on Edit, the user must be able to edit all the fields of the data source rather than what is being displayed in the grid. How can I do this??

When I did a search I found that GridViewCommandColumn can be used for similar purposes but I don't know how to add this coulmn through xaml.

Please help.

Thanks in advance
Priya

Priyalakshmi
Top achievements
Rank 1
 answered on 15 Oct 2012
4 answers
116 views
Hi Guys,

I used telerik wpf gridview to bind a collection source, the every data item have a foreign key related other tables, so I use the GridViewComboBoxColumn to show the relation and make user can change it . below is my code
<telerik:GridViewComboBoxColumn Header="{common:Translate Group}"
UniqueName="ColourGroupingID"
DisplayMemberPath="Description"
ItemsSource="{Binding ColorEntityCollection}"
SelectedValueMemberPath="ColourGroupingID" DataMemberBinding="{Binding ColourGroupingFk}"
>
</telerik:GridViewComboBoxColumn>
In above code, you can see ColorEntityCollection have two properties used for valuePath and displayPath of combobox, dataItem's ColourGroupingFk is foreign key. Everything is ok, but the filtering, the gridview unexpectedly filtered by ColourGroupingFk  , not expected DisplayMemberPath : Description . Please see attachment.

How can I do this? PS: I also set Gridview's FilteringMode = FilteringMode.FilterRow for using a header filter row.  I read many threads on forum, many thread recommand :
<telerik:GridViewComboBoxColumn.FilteringControl>
                    <Controls1:ComboColumnFilteringControl />
                </telerik:GridViewComboBoxColumn.FilteringControl>

But our team don't need popup filter window, only row filter. Please help me.. Thanks very much!






Deng
Top achievements
Rank 1
 answered on 15 Oct 2012
0 answers
157 views
Telerik: 2012.2.912.40 (RadControls for WPF Q2 2012 SP2)
OS: Windows 7

Problem: I have a WPF Class Library project, after dragging a DataPager to my UserControl, I get "Could not load file or assembly 'Telerik.Windows.Controls.Data, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified."

But if I make my project's output type to Windows Application, my project runs fine.

Is there an issue with DataPager and wpf class library projects?

Please help.

Thanks,
Mark
Mark
Top achievements
Rank 1
 asked on 15 Oct 2012
1 answer
98 views
Hello
i have some problem about gridvieuw
first :
how to make a columns to Unselectable stat?,i want to prevent the user to clicking on some columns
the second
to solve the first problem I use this method :
the main objectf is to click on specefic cells and capture the value to use in a sql query,so i need to capture the adequate value for the query works.
here is the code :
void GridViewKPI_MouseDown(object sender, MouseButtonEventArgs e)
        {
            RadContextMenu radContextMenu = new RadContextMenu();
 
            if (GridViewKPI.CurrentCell.Column.UniqueName == "Cell ID")
            {
                TBox_CellID.Text = GridViewKPI.CurrentCell.Value.ToString();
                 
                RadMenuItem copyItem = new RadMenuItem();
                copyItem.Header = "Show In chart";
                radContextMenu.Items.Add(copyItem);
                RadMenuItem pasteItem = new RadMenuItem();
                pasteItem.Header = "Show in Ho Stat";
                radContextMenu.Items.Add(pasteItem);
                RadMenuItem cutItem = new RadMenuItem();
                cutItem.Header = "Show in Map";
                radContextMenu.Items.Add(cutItem);
                RadContextMenu.SetContextMenu(this.GridViewKPI, radContextMenu);
 
            }
            //else radContextMenu.Items.Remove(copyItem);
        }
The code work fine ,the first time when i click in other cells nothing happens,and when i click in a  specefic cells (Cell ID in my case) the contextmenu appears normally and this is the main objectif,but after this when i reclick in the other cell the contextmenu appears also,and this is my problem,the contextmenu must appears only when i click in a specific columns.
so,how to prevent this to happen?
thanks a lot
Amine
Top achievements
Rank 1
 answered on 14 Oct 2012
4 answers
693 views
hi!!!

how can i looping throught the collection  of items (or throught comboboxitem ) of my combobox  in code behind??

here is my code

 

 

<telerik:RadComboBox IsEditable="True" IsTextSearchEnabled="True">

 

 

 

<telerik:RadComboBoxItem>

 

item1

 

 

</telerik:RadComboBoxItem>

 

 

 

<telerik:RadComboBoxItem>

 

item2

 

 

</telerik:RadComboBoxItem>

 

 

 

<telerik:RadComboBoxItem>

 

item3

 

 

</telerik:RadComboBoxItem>

 

 

 

 

 

 

 

</telerik:RadComboBox>

thanks for your help

Oscar Zapata

 

Boyan
Telerik team
 answered on 14 Oct 2012
2 answers
117 views
Hi!
I have made a customized appointment view selector by copying the template in Expression and specified the new to be used by the Control:

AppointmentStyleSelector="{DynamicResource ScheduleViewStyleSelector1}"

Everything works fine and all appointments are displayed using the new selector.
But now, double clicking an appointment doesn't work anymore. The Edit appointment dialog is not displayed.

Why does it behave like this?
Lennart Bauer
Top achievements
Rank 1
 answered on 13 Oct 2012
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?