Telerik Forums
UI for WinForms Forum
3 answers
254 views
Forgive me if this issue has been raised before. 

I've got a RadGridView (Q2 2008) bound to an object datasource.  On initial display of the RadGridview, there are no rows because I'm forcing the user to enter some search criteria before the grid is populated.  In its initial state, SelectedRows.Count = 0.  Correct.  If the user then enters search criteria that returns rows, the grid is rebound and the first row is selected thus setting SelectedRows.Count = 1.  Correct again.

If the user then changes the search criteria and that criteria returns no rows, the grid is rebound and no rows appear just as it should.  However, SelectedRows.Count still = 1.  Not correct.  This appears to be a bug to me.  Is it?
Peter
Telerik team
 answered on 07 Jun 2013
2 answers
123 views
I have a gridview...I want to add a subtotal row to the gridview.....is there a way to do this?
Binesh
Top achievements
Rank 1
 answered on 07 Jun 2013
18 answers
810 views
I've got a grid consisting of many checkboxes with long column headers. How would I go about making my column headers be vertically aligned?

It needs to be a long first column with a long name in the first column of each row, and then the 2nd to 10th column are all booleans with long column header names (eg. "20mm Pencil Round"). I'd like to get my cell size to be just slightly larger than the checkbox, both length and width.

How would I accomplish this?
Axel
Top achievements
Rank 1
 answered on 06 Jun 2013
0 answers
113 views
Hello,
I want to bind Carousel Images to 'Picture' column of a DataTable named 'Users'.
DataTable is placed in DataSet. Parent form is Login form and when the user types his/her name in the
textbox carousel items rotates and picture of owner of the username is shown.(I've seen an example in somewhere in your website or demos , forgotten)

please give me a code snippet to bind to the DataTable's picture column.
Thanks again.
Tooraj
Top achievements
Rank 1
 asked on 06 Jun 2013
2 answers
131 views
I am using a radgridview for winforms and I am enable the filtering. I am not able to find how capture the select all inside the filter.
The event FilterChanging triggered only when the filter is changed if nothing is changed then the event does nothing.

Is it possible to add my custom message on the bottom on the filter like the picture bellow - selectionall.png?

In other word I want to be able to capture when we select the all filters or do a custom message on the bottom.

Thanks
Peter
Top achievements
Rank 1
 answered on 06 Jun 2013
3 answers
156 views
Hi

Regarding 'Redistributing Telerik RadControls for Winforms' discussed here, we are building Telerik assemblies from source code using the OEM conditional symbol approach with our application assembly name specified in OemAssemblyName in RadControl.cs. This is to protect Telerik controls in our distribution. This seems to work fine in that unauthorised applications get the trial version pop-up whereas the authorised one doesn't.

My question: Can you advise the best way (or what needs to be done) to create an 'installer' which can be used to register the source build assemblies for design time use in Visual Studio 2010 (i.e. to create/populate a Visual Studio Toolbox tab and to register assemblies for design-time support)?

The reason: Our solution is structured so that Telerik assemblies are copied to an ExternalDlls folder and projects referencing Tererik point to assemblies in ExternalDlls. If Telerik UI controls are not installed on my development PC then I don't have Visual Studio design capabilities. However, if I install either the full licensed or Trial versions of Telerik controls (NOT the assemblies built from source) then I get all sorts of conflicts because the assemblies in ExternalDlls (built from source) and assemblies from install versions have different public key tokens.

Hope this question makes sense. Any advice will be greatly appreciated.

Regards

Shaun
Peter
Telerik team
 answered on 06 Jun 2013
1 answer
86 views
Hi,

How can i create a Custom Column with two Labels and separate Binding of each of them?

I would like to Display something like this in a Column: Value1 / Value2.

Is this possible?

Thank you

Johann
Ivan Petrov
Telerik team
 answered on 06 Jun 2013
5 answers
372 views
I have the gridview working fine in hierarchy mode when I load both datatables into a dataset.  This requires all of the child records to get loaded at the beginning (before any + has been selected).

What I want to do is only load the child records as they are requested.

I tied into the ChildViewExpanding event with the following code.

DataSet

 

ds = (DataSet)radGridViewMain.MasterGridViewTemplate.DataSource;

 

 

DataTable dt = ds.Tables["Details"];

 

 

int headerID = Convert.ToInt32(e.ParentRow.Cells["ID"].Value);

 

 

Details dtl = new Details();

 

 

DataRow[] dr = dt.Select(String.Format("HeaderID={0}", headerID));

 

 

if (dr.Length <= 0)

 

{

    dt.Merge(dtl.GetRecords(headerID),

true);

 

}

Works great the on the first + selected, but as soon as I select another row's children to display the first childset is cleared out.

How do I load the child recrods dynamically?  Any samples on that?

Stefan
Telerik team
 answered on 05 Jun 2013
1 answer
105 views
Is this possible?

I have a scenario where I am displaying a list of flat files.  The user can expand a row and display the contents of the file in the child grid.

However, some files are quite large, and I'll need to virtualize the child grids....OR simply display a multiline textbox instead of a grid.

Either way, I'm really re-thinking my approach on this because I'm dealing with 300k+ rows...

Are either of these paths possible?  Virtualize the child grid, or replace it with a text box?

Thanks,

Wayne
Ivan Petrov
Telerik team
 answered on 05 Jun 2013
4 answers
775 views
I am doing a new UserControl in studio.
I then add the Telerik RadGridView to said control and change the Dock property to FILL.

When the grid loads I do

if (dataSet == null) //TODO TESTING
{
    dataSet = new DataSet();
    dataTable = dataSet.Tables.Add("Results");
}
 
dataTable.Columns.Add("ID");
dataTable.Columns.Add("Name");
 
dataTable.Rows.Add(i++, "Jack");
dataTable.Rows.Add(i++, "Donna");
dataTable.Rows.Add(i++, "Jack");
dataTable.Rows.Add(i++, "Donna");
dataTable.Rows.Add(i++, "Jack");
dataTable.Rows.Add(i++, "Donna");
dataTable.Rows.Add(i++, "Jack");
dataTable.Rows.Add(i++, "Donna");
dataTable.Rows.Add(i++, "Jack");
dataTable.Rows.Add(i++, "Donna");
dataTable.Rows.Add(i++, "Jack");
dataTable.Rows.Add(i++, "Donna");

(dataSet is a DataSet that is a member of the usercontrol so is around for the life time of the control.

I then bind the data table to the control 

this.batchDisplay.DataSource = dataSet.Tables[0];

Now I have a button on my app that simply adds data to the datatable

dataTable.Rows.Add(i++, "Ralph"); //TODO TEST CODE
dataTable.Rows.Add(i++, "Walf");
dataTable.Rows.Add(i++, "Ralph");
dataTable.Rows.Add(i++, "Walf");


My problem is I can't figure out how to get the scroll bar to do what I want.

What I want is for the scroll bar to stay where it is in the collection while items are added to the bottom.

If I just straight up add the items to the dataTable my scroll bar jumps to the bottom.

I have tried doing:

this.batchDisplay.BeginUpdate();
 
 dataTable.Rows.Add(i++, "Ralph"); //TODO TEST CODE
 dataTable.Rows.Add(i++, "Walf");
 dataTable.Rows.Add(i++, "Ralph");
 dataTable.Rows.Add(i++, "Walf");
 
 this.batchDisplay.EndUpdate();
 this.batchDisplay.TableElement.RowScroller.UpdateScrollRange();


But this causes the scroll bar to do some kind of odd warp where the bar grows and shrinks depending on where you are in the scroll.

The only way I could find to make the bar actually size correctly was 

this.batchDisplay.BeginUpdate();
 
dataTable.Rows.Add(i++, "Ralph"); //TODO TEST CODE
dataTable.Rows.Add(i++, "Walf");
dataTable.Rows.Add(i++, "Ralph");
dataTable.Rows.Add(i++, "Walf");
 
this.batchDisplay.Height += 1;
this.batchDisplay.Height -= 1;
 
this.batchDisplay.EndUpdate();

But that seems just silly, and while the scroll bar does size right it jumps to the top.

I am sure I am just making this harder than it needs to be, but I just can't seem to find a way to make the scroll bar stay where it is while I  add items.
Any assistance on this would be greatly appreciated.

Thanks,
Ralph
Ralph
Top achievements
Rank 1
 answered on 05 Jun 2013
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?