Telerik Forums
UI for WinForms Forum
6 answers
235 views
We are using RadControls for Winforms Q1 2012. The sorting function is not working correctly for GridViewImageColumn. Please help. Thanks a lot!
Yip Yew Kwong
Top achievements
Rank 1
 answered on 07 Nov 2012
3 answers
145 views
Hi,

I'm just new in winform so I'm just wondering if a lookup column can have text search. Like for instance I'm to select a defined data on my dorpdown column but since it has lots of data, its hard to scroll down, so what I want is to just simply type in what text i'm searching for and will populate the dropdown based on my typed text, which is available on my datasource. Its like Google search, once you type text it will generate values on a dropdown. Any info or sample would be much appreciated.


Thanks in advance,
RJ
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
17 answers
787 views
When i choose allow add new row in RadGridView. Now i want to add Combobox in to row. How can i do that? Please help me as impossible as. if you have example in C# please give me. Thanks
Jack
Telerik team
 answered on 07 Nov 2012
3 answers
1.5K+ views
I have a gridview which is bound to a list of about 50.000 objects. After changing an objects value in the list (in a seperate pop-up) the row is not updated in the grid.

When I select another row or scroll through the grid, the new value is visible.

Is there a way to refresh the row I just edited? I've tried to update the complete grid with EndUpdate, but this took about 18 seconds. This is way to long.
Paul Somberg
Top achievements
Rank 2
 answered on 07 Nov 2012
1 answer
135 views
How can set the LocalDataSourceProvider.ItemSource to DataTable,
or have no plans to do so?
Ivan Todorov
Telerik team
 answered on 07 Nov 2012
1 answer
125 views
hello,

I'm creating a RadTreeView dynamically. when adding the first level (0) nodes to the treeview, the nodes that have children are aligned without any margin, while the nodes that do not have any children are aligned with a margin. all the nodes were created the same way (all the nodes are added in a loop). can anyone help me align all the the nodes in the same place?
i attached a screen shot of the RadTreeView that i get (Personal and Confirmation Center don't have any children while the others have)

thank you
Anton
Telerik team
 answered on 07 Nov 2012
3 answers
144 views
Hi everyone,

I am hoping someone can help me solve a problem I am having with the GridViewDecimalColumn in my radGridView. I have an unbound column named "Days". This column is populated when the grid is loaded in the following way: 

private void grid_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
    if (e.Column.Name == "Days")
    {
        MyObject obj = (MyObject)e.Row.DataBoundItem;
        if (obj != null)
        {
            TimeSpan span = DateTime.Now.Date - obj.SomeDate.Date;
            e.CellElement.Value = span.Days;
        }
    }
}

When I try and sort on this value, the sort order does not make any sense. I get things like the following:

14
14
33
33
36
17
14 (should be at the top with the other 14's)

The sort does not follow any sort of logic and instead appears to just be sorting the numbers randomly. How can I get it to sort the numbers properly (IE ascending/descending order) 

Thanks 

----- EDIT-----------

Now that I have played with it a bit more, the grid is sorting, it is just sorting extremely slow. Moving the scrollbar up and down will force the grid to repaint and you can see the sort occurring. Why is this so slow? There are only around 160 rows in this grid. I have sorted other grids with 200+ rows and the sort is instantaneous. 


Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
123 views

DISREGUARD:  I found the error and it was in another method that for some reason was coded to alwyas select the last row.


When ever my form is loaded with a radgirdview control on it the row 0 is always selected.  The grid is a multiselect and It is set so the user can select multiple rows and then click a button and all rows that are selected will be updated.

On the form load I have this code
POSSGridView.ClearSelection();
POSSGridView.CurrentRow = null;

and I loop through the rows as follows
foreach (GridViewRowInfo rowInfo in POSSGridView.Rows)
           {
               if (rowInfo.IsSelected)

The issue is when the form loads if I hit the button the .SelectedRows has row 0 in it.  If I select it and then select another row and hit the button not eh .SelectedRows has both rows as being selected even though on the screen the 0 row is not selected.  I am unalbe to find anyway to not have the 0 row selected.
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
240 views
Is there any way to catch a row reorder event?

My grid is in unbound mode, with AllowRowReorder = true.  I need to be able to tell when a user reorders the rows via drag and drop, but the obvious DragDrop event is not hit.  Do I really need to use MouseDown, MouseUp, and lots of calculations of row size and position?


-----------------------------------------------------------

Since posting this I found my answer in your demo:

...
 this.radGridView1.Rows.CollectionChanged += new NotifyCollectionChangedEventHandler(Rows_CollectionChanged);
...

 private void Rows_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action == NotifyCollectionChangedAction.Move)
{
for (int i = 0; i < this.radGridView1.Rows.Count; i++)
{
this.radGridView1.Rows[i].Cells["Priority"].Value = i + 1;
}
}
}
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
168 views
are there any third party controls ? I want to build like this
http://allbetsareoff.com/tutorials/creating-an-automated-odometer-part-2/ 

is there any telerik control ?
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? 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?