Telerik Forums
UI for WinForms Forum
11 answers
2.9K+ views

Hi,

I am working on the hierarchical grid and displaying data using self references.

My requirement is when i refresh the grid then the selectd row should be selected and the scroll bar
position should be at the same location but now when i refresh the scroll bar is moved to top of the grid.

could you please help me on the above requirement?

Thanks & Regards
Muralidhar Dasari

Code Snippet for refresh:- 
using (radGridView1.DeferRefresh())
  {
    this.radGridView1.TableElement.Update(GridUINotifyAction.DataChanged);
    this.radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);
}
George
Telerik team
 answered on 14 Nov 2014
1 answer
193 views
We are looking to alter one of the standard themes, changing some of the details as well as the colours. Once complete, it will be necessary to make other themes that are the same but based on different colours.

I'm well aware of the usage of Visual Builder, so creating an initial theme is not a problem. I also have code that finds a theme in the currently loaded application, extracts all the images and alters the colours. I believe I can then create a clone of the theme and replace the images with the re-coloured versions, assuming the following code works

foreach (Telerik.WinControls.StyleRepository repository in theme.Repositories)
{
    if (repository.ItemType == "Image")
    {
        foreach (Telerik.WinControls.PropertySetting setting in repository.Settings)
        {
            if (setting.Name == "Image")
            {
                Bitmap bmp = GetBitMap(repository.Key);
                setting.Value = bmp
            }
        }
    }
}

What I'm stuck with, is how to save the altered theme back to a tssp file.

Any help would be appreciated. 

Thanks
Jason
George
Telerik team
 answered on 14 Nov 2014
1 answer
101 views
Hi, 

I am trying to setup the grid in the way that when ther user add a new item to the grid, it show something that the following html table:

<table>
  <tr>
       <td>Name</td>
       <td>Surname</td>
  </tr>
  <tr>
       <td colspan ='2'>Gender</td>
  </tr>
</table

Something like 2 rows in one

All works fine, when I add a new item to the grid it greate the layout correctly, but when I perform click on the cell of the second "subrow", grid do not raise CellDoubleClick event, it only raise the event if a click on the first subrow.

Any help would be appreciated.

this.radGridControlSelection.BeginInit();
this.radGridControlSelection.DataSource = this.dataList;           
 
HtmlViewDefinition view = new HtmlViewDefinition();
 
this.radGridControlSelection.ViewDefinition = view;
 
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
 
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Name"));           
view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Surname"));
 
view.RowTemplate.Rows[1].Cells.Add(new CellDefinition("Gender"));
view.RowTemplate.Rows[1].Cells[0].ColSpan = 2;
 
this.AsignTitlesToRadGridControlSelection();
Dimitar
Telerik team
 answered on 14 Nov 2014
1 answer
105 views
Good day community,

I have some questions about usage drag and drop for multiselect rows (with EnableLassoSelection).
When I set 
MultiSelect = true
and select rows using arrows, it work very nice, but when I set
MultiSelect = true
EnableLassoSelection = true;
multiselect does not work, because when I selected item and try grab it listview again tries to select rows.

Somebody knows how to fix it, or may be you have some working example.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Nov 2014
1 answer
74 views
I added a new RadCheckBox from toolbox to my form. However, the object has not been initialized/instantiated in the Form1.Designer.cs code? So I have a button on a form, but I can't use it for anything.

How can I make sure that RadCheckBox that I added to the form has an object instance in the generated Telerik code? I could try to do it myself, but I note that this class states above the InitializeComponent() the following:

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()


So how to generate the code to make an object instance then? Please help. Thanks.
Stefan
Telerik team
 answered on 14 Nov 2014
1 answer
125 views
Is there a way to get the current text in the Search Box on the TableSearchRow?  I know you can set the value for the search criteria but is there anyway to return the current value?
Stewart
Top achievements
Rank 1
 answered on 13 Nov 2014
1 answer
755 views
I'm displaying some information in a panel using the RadLabel.  I noticed that you cannot select (i.e., drag and highlight) the RadLabel Text.  Is there a setting so that the label can be highlighted for copy and paste purposes by the user?

Thank you!

Best Regards,

Ed
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Nov 2014
0 answers
88 views
if (radgrid.CurrentCell.IsInEditMode==false)
            {
                if (e.KeyCode == Keys.Delete)
                {
                    e.IsInputKey = true;
                }
            }

I need to disable Delete key when the above condition satisfies, but the above code is not working, when i select a cell and press Delete button, cell is getting deleted.
How to disable the delete key?

Vidhya
Top achievements
Rank 1
 asked on 13 Nov 2014
2 answers
139 views
     Hello, How can I remove the Close icon in GridView GroupPanel see attached image. I just want to use the sorting function of the group column or any work around to enable the user to sort the group.


thanks in advance.
Daniel
Top achievements
Rank 2
 answered on 13 Nov 2014
2 answers
410 views
Hi Telerik,

I'd like to be able to hide the Available Filters drop down list box for some GridView columns but not others when opening the Filter pop-up (Excel type filtering). Do you have some code I could use?

I would also like to be able to change the font for the resultant (after selecting a menu item from the Available Filters list) Radgrid Filter dialog value entry fields, if possible.


Thanks

Roger
Roger
Top achievements
Rank 1
 answered on 13 Nov 2014
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?