Telerik Forums
UI for WinForms Forum
2 answers
117 views
Hi...

In grid View Control while  adding the rows some time it passing row index value as -1.i saw what is the reason and i found it.

1)First time Grid shows  click here to add new row.so  we click the row and adding values continuously.in the last column we press tab or enter ,it adds new row  and adding values that time if any event occur,row index is passing as -1.
2) reason is , if  grid shows  Click here to add new row ,the grid passes row index correctly.or else it passes -1.

Please help me...is there any way to avoid this?
Vidhya
Top achievements
Rank 1
 answered on 15 Oct 2010
4 answers
118 views
I have a a derived version of GridViewMultiComboBoxColumn, which is exposing a default editor type that is a CustomRadMultiColumnComboBoxElement (derived from RadMultiColumnComboBoxElement).  The derived class is overriding ThemeEffectiveType and returning RadMultiColumnComboBoxElement, however, it's not themed when it moves into edit mode.  How do I get it to theme properly?  

An image of what I'm talking about is here: 

http://img40.imageshack.us/img40/2418/themed.png

The button is gray, but should be blue to match with the rest of the UI.  Also, the textbox shouldn't have the border around it like it does.  How do I fix this issue?
Emanuel Varga
Top achievements
Rank 1
 answered on 14 Oct 2010
7 answers
187 views
Hi,
Is it possible to  localize the filtering row to arabic ?
I am using Q2 2010.

Thanks for your help,
Mohsen
MOHSEN
Top achievements
Rank 1
 answered on 14 Oct 2010
2 answers
90 views
Hi, i tried to follow this KB "how to add a checkbox header" to add a checkbox to the header of a checkboxcolumn but is not working at all. i'm using dll 2010.2.10.610. I think the problem is when the execution get to this method: 
public override Type GetCellType(GridViewRowInfo row)
{
    if (row is GridViewTableHeaderRowInfo)
    {
        return typeof(CheckBoxHeaderCell);
    }
    return base.GetCellType(row);
}

the row is never of the type GridViewTableHeaderRowInfo always is a gridviewdatarowinfo.

How i can solve this??
Stefan
Telerik team
 answered on 14 Oct 2010
2 answers
97 views
While trying to install on Win Server 2008 R2 64-bit.

From application log:
Windows Installer reconfigured the product. Product Name: Telerik RadControls for WinForms Q2 2010 SP2. Product Version: 9.2.1. Product Language: 1033. Manufacturer: Telerik Inc.. Reconfiguration success or error status: 1638.

Note: I already have the demo version of same installed.

Rebooted, tried install again. Same error.

Any ideas?
Stefan
Telerik team
 answered on 14 Oct 2010
14 answers
1.5K+ views
Hello,

i am having frmHome.vb with radgridview control, i am opening frmHome.vb form in RadDoc tab in frmMainapplication.vb form.
data is binded to gridview, in grid view there is on commanbutton column. by clicking the command button i am opening frmTagDetails.vb in tab. in formDetails i am having one button. if i click on that button a new form is opend to with two radion buttons.
after selectiecion one of the option from it and clicking on OK button. and record is inserted in database table. testUser.
after inserting record in testuser i need to update the radgridview. automatically and new user detals must be displayed. my
frmhome.vb form is already open.

Dim objfrmHome As New frmHome
  
objfrmHome.gridViewHome.DataSource = Nothing
  
AssetBusinessLogic.GetDataToFillGridView(_assetChecklist.Asset.Project.ProjectID)
  
objfrmHome.gridViewHome.MasterTemplate.DataSource = AssetBusinessLogic.aTLi
  
objfrmHome.gridViewHome.Refresh()
  
objfrmHome.gridViewHome.MasterTemplate.Refresh()
  
objfrmHome.gridViewHome.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill
  
i am using this code but the while loading the details from database i am getting the lattest details.
but after binding to grid the grid is not refreshed.

i have stucked over here.

Thanks in advance
Emanuel Varga
Top achievements
Rank 1
 answered on 14 Oct 2010
1 answer
120 views
Hello,
I experience poor performance in hierarchical RadGridView which is bounded to BindingSource object.

Using bindingSource.ResetBindings(false) in this grid lasts almost 2 seconds (in normal grid it lasts only 0,1sec).
Relation is created in designer (not programmatically). There are 5k rows in BindingSource. Grid is bounded to BindingSource in designer (radGridView.DataSource = bindingSource);

Can you give any clues how can I make bindingSource.ResetBindings() faster ?
Richard Slade
Top achievements
Rank 2
 answered on 14 Oct 2010
1 answer
117 views
Hello!

Is there any possibility to get  information about button clicked on chart item, because I need to show context menu if right button clicked.

For know I use following code:
private void  ActiveRegion_Click(object sender, RegionClickEventArgs args)
        {
            var fileId = Convert.ToInt32(args.Element.ActiveRegion.Attributes);
            _tableFilesBindingSource.Position = SearchFilesTableBindingSource(fileId);
            _isOnSomeSerieItem = true;
        }
...
 
 private void  _radChart1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right && _isOnSomeSerie)
            {
                GetFileGridMenu().Show(_radChart1, e.X, e.Y);
                _isOnSomeSerieItem = false;
            }
        }

where _isSomeSerieItem is private filed.
Is there more correct way to do that?
Vladimir Milev
Telerik team
 answered on 14 Oct 2010
2 answers
101 views
 “Folder Tree” mode.
Private Sub Grid_CellBeginEdit(ByVal sender As Object, ByVal e As GridViewCellCancelEventArgs)
programName = DirectCast(Grid.Rows(e.RowIndex).Cells("program").Value, String)

with code in your example, i could not get the correct cell value because e.rowindex somehow is the wrong row... due to rearranging in tree mode...

It took me few hours to find out that your e.rowindex is reference to the non-tree mode grid... so how can I get user interaction during the tree mode?

Also your support ticket page is 404 error.

Thanks,
J.
Alexander
Telerik team
 answered on 14 Oct 2010
3 answers
185 views
Hello Telerik Team,

I am facing a rather strange problem with the telerik dropdownlist and listbox.

I am developing an application which relies on a couple of nonmanaged driver-dlls. As soon as I load one particular dll, after that I cannot instanianate ANY telerik dropdownlist or listbox. As soon as the controls ctor is called, an arithmeticexception is thrown. The call stack is as follows:

bei Telerik.WinControls.UI.RadScrollBarElement.get_ThumbLengthProportion()
bei Telerik.WinControls.UI.RadScrollBarElement.SetupThumb(Int32 newValue, Boolean thumbLocationOnly)
bei Telerik.WinControls.UI.RadScrollBarElement.set_Maximum(Int32 value)
bei Telerik.WinControls.UI.VirtualizedScrollPanel`2..ctor()
bei Telerik.WinControls.UI.RadListElement..ctor()
bei Telerik.WinControls.UI.PopupEditorElement.CreateChildElements()
bei Telerik.WinControls.UI.RadDropDownListElement.CreateChildElements()
bei Telerik.WinControls.RadElement.CallCreateChildElements()
bei Telerik.WinControls.RadElement.Construct()
bei Telerik.WinControls.RadElement..ctor()
bei Telerik.WinControls.RadItem..ctor()
bei Telerik.WinControls.UI.PopupEditorElement..ctor()
bei Telerik.WinControls.UI.RadDropDownListElement..ctor()
bei Telerik.WinControls.UI.RadDropDownList.CreateChildItems(RadElement parent)
bei Telerik.WinControls.RadControl.Telerik.WinControls.IComponentTreeHandler.CreateChildItems(RadElement parent)
bei Telerik.WinControls.RadControl.ComponentOverrideElementTree.CreateChildItems(RadElement parent)
bei Telerik.WinControls.RadControl.Construct()
bei Telerik.WinControls.RadControl..ctor()
bei Telerik.WinControls.UI.RadDropDownList..ctor()
bei SenseIT._4Dtwo.CatchIT.Forms.AddNewDevice.InitializeComponent() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Forms\AddNewDevice.Designer.cs:Zeile 37.
bei SenseIT._4Dtwo.CatchIT.Forms.AddNewDevice..ctor() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Forms\AddNewDevice.cs:Zeile 20.
bei SenseIT._4Dtwo.CatchIT.Controls.DeviceView.radButton1_Click(Object sender, EventArgs e) in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Controls\DeviceView.cs:Zeile 161.
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei Telerik.WinControls.RadControl.OnClick(EventArgs e)
bei Telerik.WinControls.UI.RadButton.ButtonElement_Click(Object sender, EventArgs e)
bei Telerik.WinControls.RadItem.OnClick(EventArgs e)
bei Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
bei Telerik.WinControls.RadItem.DoClick(EventArgs e)
bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
bei Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
bei Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
bei Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei Telerik.WinControls.RadControl.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(Form mainForm)
bei SenseIT._4Dtwo.CatchIT.Program.Main() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Program.cs:Zeile 21.
bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()

Do you have any idea how I could work around this problem?

best regards

Ulrik
Stefan
Telerik team
 answered on 14 Oct 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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?