Telerik Forums
UI for WinForms Forum
1 answer
146 views
Hi,

We are using Radgridview with CheckBox and also we have added the CheckAll and UnCheckAll button. We have finished this CheckAll and UnCheckAll functionalities using looping with grid.rows.count, but when we are filter the row it shows the total rows count and also getting the exception like 'Index 145 is either negative or above rows count.'. Refer the below code and kindly let me know how we have to solve this issue.

CheckAll:

for

 

(int i = 0; i < radGrid.Rows.Count; i++)

 

 

 {

    radGrid.Rows[i].Cells[

"-"].Value = Boolean.TrueString;

 

 

     item = radGrid.Rows[i].DataBoundItem;

 

    if (!this.selectedRows.Contains(item))

 

 

 

        this.selectedRows.Add(item);

 

 

 }

 

UnCheckAll:

this

 

.selectedRows.Clear();

 

 

 

for (int i = 0; i < radGrid.Rows.Count; i++)

 

 

 {

         radGrid.Rows[i].Cells[

"-"].Value = Boolean.FalseString;

 

 

 }

 



Regards,
Murali.S


Nick
Telerik team
 answered on 02 Feb 2010
1 answer
83 views
Hi I have a dataset which contains two different tables.

Now I have to display two different series and need to bind first series with tables (0) and second series with tables (1)

can you help me in this?
Ves
Telerik team
 answered on 02 Feb 2010
5 answers
198 views
Hi all,i wonder how to edit the time row in scheduler..By default i see that it was only half hour a row.Is it possible to divide it more than that?I want to create like this

image

Thanks a lot...
Boyko Markov
Telerik team
 answered on 02 Feb 2010
1 answer
155 views

Hello,


I need to slightly adjust the default theme and save it in a new theme.
working with the latest release 2009 q3 1203

Took the following steps:

downloaded the sourcode and created modified the RadControlsTheme.ControlDefault class library.
Made the modifications and they seem to work ( only 1 control is modified so far).
The problem is that the Control default theme looks different then before (older). 

Is the included theme in the download the latest version?
Where can i get the correct version of the class library officeblue 2007 theme.

Kind regards,

Tim



Nikolay
Telerik team
 answered on 01 Feb 2010
1 answer
152 views
please i need to change color of a certain cell ,how can i do that ,i have the column name and the row index
Martin Vasilev
Telerik team
 answered on 01 Feb 2010
2 answers
214 views
Hi there,

Can somebody please advise re the following two questions on the RadChart control:

1. If I create one (Pie) radChart, then add two series to it, I get two separate pie charts - great. 
However, the two legends for these separate charts are "mixed", that is, they appear in one block.  Is it possible to have a separate legend for each pie chart/series?
The legends are created using the following line:
                    radChart1.Series[0].Appearance.LegendDisplayMode = Telerik.Charting.ChartSeriesLegendDisplayMode.ItemLabels;

2. What setting controls the colour of the number associated with the item, that is, the number appearing beside the pie chart slices showing the data for that segment?  Is is taken from one of the background or border colours, or can it be controlled invididually?

Thanks a lot - excellent product by the way,

Charles



CF Brain
Top achievements
Rank 1
 answered on 01 Feb 2010
1 answer
605 views
Hi,

I need to select/deselect items from one listbox to another.
For that I am using two radlistboxes, both are having same items. Both listbox's selectionmode="Multiple".

When user selects items in first list, I need to select them in second listbox through Javascript.
For that, I tried some code, but it works for single item only.

 
           var ctl1= $find('<%= lstTestcategory2.Clientid %>'); 
              var ctl= $find('<%= lstTestcategory.Clientid %>'); 
           
    for(var i = 0; i<= ctl.get_items().get_count()-1; i++)   
    {  
     
          var item1 = ctl.get_items().getItem(i);    
           alert(item1.get_text());  
          alert(item1.get_selected()); 
             check = 1;  
      for(var i = 0; i<= ctl1.get_items().get_count()-1; i++)   
        {  
      //     alert('in');  
           
                var item = ctl1.get_items().getItem(i);       
                if(item.get_text() == e.get_item().get_text())  
                {  
           //    alert('in1');   
                    item.set_selected(true); 
                    check = 1;  
                }  
               else 
               { 
                  item.set_selected(false); 
                } 
        }   

At present I am using it on "OnClientSelectedIndexChanging" event.

What should I do to work it for multiple items too?
Yana
Telerik team
 answered on 01 Feb 2010
1 answer
129 views
Hi,

I created a windows application with radribbonform. and i placed radgridview on that form and applied desert theme to radgridview and radribbonform also. Now i want to show vertical lines (sepertaes between columns). I applied below code what you gave previously. 
But it is not displaying.         


private void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            e.CellElement.BorderBottomWidth = 1;
            e.CellElement.BorderBottomColor = Color.Red;

            e.CellElement.BorderRightWidth = 1;
            e.CellElement.BorderRightColor = Color.Blue;

            //If you want to have a RadGridView with no lines at all  
           // e.CellElement.DrawBorder = false;  
        }

Please help me. thanks in advance.
Jack
Telerik team
 answered on 01 Feb 2010
5 answers
185 views
I am very impressed with using RadGridView in ASP.NET that when I click "edit" button on the Grid record, a templateform is shown and users can input and save data.

But how this kind of features handled in Telerik WinForm GridView? Or in WinForm GridView only provides Grid presentation or editing on the grid record?

My requiement:
1. click "add" or "edit" buttons, show a editing form (because need to process many fields, using a form format is better)
2. click "ok" or "cancel" buttons back to the grid and grid may need to be refreshed.

Benson.
Jack
Telerik team
 answered on 01 Feb 2010
7 answers
299 views
How can I have my combobox display nothing when my form loads?  Currently when it loads it shows an item from the table it is bound too.  I want the combobox to be blank/empty then the user can select what to pick. Currently there is only 1 item in the combobox.  Does that have any effect?   I tried to edit the combo and add a blank item but it is in the drop down but not selected.

Thank You
Victor
Telerik team
 answered on 01 Feb 2010
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?