This is a migrated thread and some comments may be shown as answers.

RADGRID SCROLL ISSUE

18 Answers 400 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sandesh
Top achievements
Rank 1
Sandesh asked on 17 Jun 2011, 11:47 AM
Hi,

I am using radgrid to dynamically load controls(drop down,textbox) @ runtime.If the grid contains too many rows and when i try to scroll the grid all the controls within the grid cell are getting distracted(please refer to the snap shot).

Basically in some textbox fileds drop drown icon is visible.

Please address this issue as soon as possible.

18 Answers, 1 is accepted

Sort by
0
Sandesh
Top achievements
Rank 1
answered on 21 Jun 2011, 05:56 AM
hi,

I am using Editor Required event as follows...

private

 

void rdGdv_Section_EditorRequired(object sender, EditorRequiredEventArgs e)

 

{

 

if(Editor== "Combobox")
{

 

 

RadComboBoxEditor comboEditor = new RadComboBoxEditor();

 

 

 

e.Editor = comboEditor ;
}
else

 

if (Editor== "Textbox")

 

{

 

RadTextBoxEditor radTxt = new RadTextBoxEditor();

 

e.Editor = radTxt;

}


}

Basically i am trying to create data entry form in rad grid which include single & multiselect options in grid cell.
(Please refer above screen shot)

0
Sandesh
Top achievements
Rank 1
answered on 21 Jun 2011, 06:29 AM
Hi,

And also i would like to know how can i put mask to grid cell.
0
Jack
Telerik team
answered on 21 Jun 2011, 11:09 AM
Hello Sandesh,

If I understand correctly you are trying to create a property grid like control. We plan to include such a control in our suite in our upcoming release - Q2 2011. Also you could check the TreeView - Manipulate data - Editing example in our demo application. It demonstrates similar scenario. In case you want to continue using RadGridView for this scenario, please send me your code. This will help me to understand the issue and provide the best solution for your scenario. I could not see the attached image, please could you post it again.

Regarding mask issue, you could use the RadMaskedEditBoxEditor. However, keep in mind that different editors work with different data types. For example the spin editor works only with decimal data.

I hope this helps and I am looking forward to your reply.

All the best,
Jack
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Sandesh
Top achievements
Rank 1
answered on 21 Jun 2011, 12:29 PM
Hi,

Please find the attachment.

And could you please share how to use RadMaskedEditBoxEditor in grid cell as i am using

void rdGdv_Section_EditorRequired(object sender, EditorRequiredEventArgs e) 

{

 

RadMaskedEditBoxEditor radTxt = new RadMaskedEditBoxEditor();

 

e.Editor = radTxt;

}

event to load control @ runtime & there is no property to set the mask.

I want some grid cell to accept only numeric or string values, no special chars.
0
Jack
Telerik team
answered on 23 Jun 2011, 12:33 PM
Hi Sandesh,

Thank you for writing back.

In this case you should handle also the CellBeginEdit event to initialize your editor. Please, consider the sample below:

void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
{
    if (this.radGridView1.CurrentColumn.Name == "Value" && this.radGridView1.CurrentRow is GridViewDataRowInfo)
    {
        e.EditorType = typeof(RadMaskedEditBoxEditor);
    }
}
 
void radGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
    RadMaskedEditBoxEditor editor = e.ActiveEditor as RadMaskedEditBoxEditor;
    if (editor != null)
    {
        editor.MaskTextBox.RadMaskBoxProperties.MaskType = MaskType.Numeric;
        editor.MaskTextBox.RadMaskBoxProperties.Mask = "n4";
    }
}

I hope it helps. If you have any further questions, do not hesitate to contact me.
 
Best wishes,
Jack
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Sandesh
Top achievements
Rank 1
answered on 24 Jun 2011, 05:52 AM
Hi,

I am getting following exception can u send sample project...

<errormethod>ThrowFormatException</errormethod>
  <messsage>Input string was not in a correct format.</messsage>
  <errordetails>at Telerik.WinControls.UI.RadDataConverter.ThrowFormatException(Exception ex, String message) at Telerik.WinControls.UI.RadDataConverter.ThrowFormatException(Exception ex) at Telerik.WinControls.UI.RadDataConverter.Format(Object value, Type targetType, Boolean coerceNullValue, IDataConversionInfoProvider converstionInfoProvider) at Telerik.WinControls.UI.BaseGridEditor.Initialize(Object owner, Object value) at Telerik.WinControls.UI.GridViewEditManager.InitializeEditor(IInputEditor activeEditor) at Telerik.WinControls.UI.GridViewEditManager.BeginEdit() at Telerik.WinControls.UI.GridRowBehavior.OnMouseUpLeft(MouseEventArgs e) at Telerik.WinControls.UI.GridRowBehavior.OnMouseUp(MouseEventArgs e) at Telerik.WinControls.UI.BaseGridBehavior.OnMouseUp(MouseEventArgs e) at Telerik.WinControls.UI.RadGridView.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at Telerik.WinControls.RadControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at PRS_FINAL.frmSearch.ugv_Search_CellDoubleClick(Object sender, GridViewCellEventArgs e) in D:\Projects\Projects\DMT\DMT\frmSearch.cs:line 398</errordetails>

And also can u address the scroll issue mentioned in the above posting i had attached screen shots also.
0
Jack
Telerik team
answered on 27 Jun 2011, 12:54 PM
Hi Sandesh,

I attached here my test application where I replaced the default editor with RadMaskedEditBoxEditor. Please consider this sample and modify it according to your requirements. If the issue appears again, send me your version and I will try to find a proper solution.

I am looking forward to your reply.

Kind regards,
Jack
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Sandesh
Top achievements
Rank 1
answered on 28 Jun 2011, 12:13 PM
Hi,

Thank you for your reply.

I require some tuning in the demo project

1. For the numeric mask it is not woking for appropriate lenght.
for eg: n2 is for 00.00 but it accepts 55555555.88 & after first char cursor is not going to next char.
2. For integer mask(mask="i") last char in number is hiding when control moves to next cell.
for eg: 333 appears as 33
           123 as 12

0
Sandesh
Top achievements
Rank 1
answered on 28 Jun 2011, 12:16 PM
Hi,

Please address the scroll issue that i had mentioned start of this posting.
0
Jack
Telerik team
answered on 29 Jun 2011, 02:30 PM
Hello Sandesh,

Thank you for writing me back.

Regarding your questions:

1. This is the desired behavior of our mask editor. The digit after the n char refers to the fraction part of the edited value. Currently, you can change this behavior only by using a custom editor. I modified the application from my previous post with a sample editor which implements your requirements.

2. We do not support an integer mask and setting the "i" as mask value has no effect. However, you can achieve this by using the "n0" mask. I included a sample in the application.

Regarding the scrolling issue, I am not able to reproduce it. Please send me your application and describe the exact steps to reproduce the issue. I will be glad to help further.

I am looking forward to your reply.

Regards, Jack
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Sandesh
Top achievements
Rank 1
answered on 30 Jun 2011, 07:49 AM
Hi,

I had submitted the attachemnt with support ticket  439161.

Please revert back.
0
Jack
Telerik team
answered on 30 Jun 2011, 02:14 PM
Hi Sandesh,

Thank you for sending us your project. You will find the answer in ticket 439161, where you posted the project. If you have any other questions, do not hesitate to ask.
 
Best wishes,
Jack
the Telerik team
Registration for Q2 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting July 18th and book your seat for a walk through all the exciting stuff we ship with the new release!
0
subbu
Top achievements
Rank 1
answered on 30 Jun 2011, 02:28 PM
Hi,

Thanks for your reply.

The issue can be generated when we have lots of drodown list in the grid.
And also dropdown contains yes & no option if user selects yes option one row should append next to dropdown.

For eg: city if user selects (others*)  then next row should be (other city) element in the grid.

I am unable to reproduce it but it is there in acual application(you can refer to the images in the prev posting)

And also i would like to know
1. How to have a multislect option in the grid cell(for langauages as shown).
2. How can we add multiline text box with scroll in the grid(for address field).

0
Jack
Telerik team
answered on 05 Jul 2011, 08:28 AM
Hi Subbu,

You will find the answer to your questions in your support ticket regarding the same issue. Please avoid posting the same question twice as this may slow down our response. Thank you for your understanding.

Should you have any further questions, do not hesitate to ask.
 
All the best,
Jack
the Telerik team
Registration for Q2 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting July 18th and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Craig Finnigan
Top achievements
Rank 1
answered on 23 Feb 2012, 11:12 PM
I am having the same problem with scrolling in my radgrid. It has a lot of data in the dataviewmanager and it is also heirarchical. When you scroll too fast the data becomes unreadable.
0
Jack
Telerik team
answered on 24 Feb 2012, 04:52 PM
Hi Craig,

Thank you for contacting us.

Could you please open a support ticket and send us your project? This will help us to locate the issue and provide you with accurate and fast support. Thank you in advance for your cooperation.

I am looking forward to your reply.
 
All the best,
Jack
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Yaroslav
Top achievements
Rank 1
answered on 27 Feb 2012, 12:08 PM
I already posted a new thread with similar problem, but in my case is with colors the ones that are driving me crazy
0
Jack
Telerik team
answered on 01 Mar 2012, 10:04 AM
Hello Yaroslav,

You will find the answer to your question in our other forum thread. Please, avoid asking questions in separate threads as this may slow down our response. Thank you for your understanding.

If you have other questions, we will be glad to help.

Regards,
Jack
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Sandesh
Top achievements
Rank 1
Answers by
Sandesh
Top achievements
Rank 1
Jack
Telerik team
subbu
Top achievements
Rank 1
Craig Finnigan
Top achievements
Rank 1
Yaroslav
Top achievements
Rank 1
Share this question
or