Telerik Forums
UI for WPF Forum
1 answer
92 views
hello!

I use RadDataPager (page size = 10). I want to focus on a specific row. I tried this code:

private

 

 

void GV_Results_DataLoaded(object sender, EventArgs e)

 

{

 

    if (SelectedEntity != null)

 

        V_Result SelectedRow = (

 

from V_Result r in GV_Results.Items

 

 

 

        where r.R_ID.Equals(SelectedEntity.R_ID)

 

 

 

        select r).FirstOrDefault();

 

 

 

    GV_Results.SelectedItem = SelectedRow;

 

 

 

    int selectedIndex = GV_Results.Items.IndexOf(GV_Results.SelectedItem);

 

 

 

    if (selectedIndex != -1)

 

    {

 

 

        int pageIndex = selectedIndex / rpg_results.PageSize;

 

        rpg_results.MoveToPage(pageIndex);

    }
}
What happens is, in the data loaded function the grid loads only 10 records in each page index.
so if the wanted row is not in the first page, the SelectedRow is null. (because GV_Results.Items contains only the records that are in the first page).
And if I go to the page that contains the wanted row, the selectedRow is not null, but the selectedIndex will be 5 if the selected item was item number 15, and 7 if the selected index was actualy 27. Because
GV_Results.Items.IndexOf(GV_Results.SelectedItem); again behaves like it has only 10 items. 

How can I focus on the selected item if it is not in the firs page?

Milan
Telerik team
 answered on 12 May 2010
1 answer
113 views
How do I keep a column in edit mode permenantly.  I have an issue with boolean checkbox columns.  It is not intuitive for the users to have to click on the checkbox several times in order for it to check.
Milan
Telerik team
 answered on 12 May 2010
6 answers
266 views
Hi,

When we have a nullable bool (bool?) the gridview in display mode displays "true" and "false" instead of the checkbox.

Once i enter in edit mode in the cell, now the check box shows and allows me to click.

I am using an internal build that i installed 2 months ago.
Nedyalko Nikolov
Telerik team
 answered on 12 May 2010
6 answers
250 views
I am trying to drag drop from a gridview to another control ,, this works okay but if the grid has a scrollbar that i want to scroll it initiases a drag drop rather than letting me scroll

this makes scrolling difficult .. even more difficult with the 'thin' scroll bar you get when you apply the windows 7 theme
Cameron Molyneux
Top achievements
Rank 1
 answered on 12 May 2010
2 answers
146 views
When you undock a radPane, the control apparently becomes a tool window.  I can't figure out how to wire events like resize and move for the floating window. My panes are all created in xaml and are initially docked. Is there a docking manager that keeps track of undocked windows and events?

Thanks

Rick
Miroslav Nedyalkov
Telerik team
 answered on 12 May 2010
3 answers
127 views
I am using the Radwindow for WPF and am getting some strange results. I have attached a screenshot of the window for refference. As you can see the window seems to have rendered as an old style NT ui with the ribbon bar stacked on top (yuk.)

Is this a know issue or am I doing something wrong.

Current environment is

Windows XP SP2
VS2008
.net 3.5 sp1
RadControls_for_WPF_2010_1_0422_DEV.msi

I was expecting this to render like the Winforms versions.

Regards


Ben.
Bobi
Telerik team
 answered on 12 May 2010
1 answer
157 views
Hi,
I am creating grid columns dynamically by the XMLDataprovider approach found in the telerik demo. Is there any way to change the column type of autogenerated column, say to combobox column. Right now all the autogenerated columns are GridViewDataColumn. Please help.

Thanks and Regards
Norbert John
Vlad
Telerik team
 answered on 12 May 2010
1 answer
133 views
Hi,

How can I set the XML Data Source to RadGridView ? My XML is created dynamically so the number of columns may change each time.

Suppose if my XML has below format, how can I show it in Grid using XMLDataSource.

<DataSet>
<Records>
<ColumnA>Orange<ColumnA>
<ColumnB>Apple<ColumnB>
<ColumnC>Grapes<ColumnC>
<Records>
<Records>
<ColumnA>Banana<ColumnA>
<ColumnB>Carrrot<ColumnB>
<ColumnC>Onion<ColumnC>
<Records>
<DataSet>

So this will be a 2 row 3 column grid. I have to show this in XAML only. Any Idea ? Demo is not working in my browser.

Thanks in advance,

Vlad
Telerik team
 answered on 12 May 2010
1 answer
53 views
Demo application crashes when "Paging any collection" under GridView is clicked. See the attached screenshot.
Rossen Hristov
Telerik team
 answered on 12 May 2010
5 answers
246 views
Private Sub rgv_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rgv.Click

        '
        ' Retrieve data to variable
        '
        dsId = rgv.CurrentRow.Cells("idRoute").Value.ToString
        dsDepart = rgv.CurrentRow.Cells("city1").Value.ToString
        dsArrival = rgv.CurrentRow.Cells("city2").Value.ToString
        'dsStatus = rgv.CurrentRow.Cells("status").Value.ToString

        '
        ' Set TextBox
        '
        tKode.Text = Format(Val(dsId), "00000")
        cbCity1.Text = dsDepart
        cbCity2.Text = dsArrival

    End Sub

Codes above works well on WindowsForms. My question is how to achieve same scenario with WPF?
I just want get some value(s) from grid to textbox based on column name as string.
Thanks.
Byterat Prabhata
Top achievements
Rank 1
 answered on 12 May 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
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?