Telerik Forums
UI for WinForms Forum
7 answers
657 views
In a current project we need a people picker (validator - against AD preferably), like the one eg. Sharepoint but can't seem to find one anywhere. Does Telerik provide something like it or does anyone else know of such control/dialog?
Stefan
Telerik team
 answered on 19 Nov 2010
2 answers
396 views
HI,
 
could you please give some more explanantion about your previous reply....am new to telerik  . i have created and  loaded the  raddropdownbutton with checkbox columns, i have written code as below
 
 public partial class DropDownButton : Telerik.WinControls.UI.RadForm
    {
 
        RadGridView grid;
        RadHostItem hostItem;
        string str = string.Empty;
        Workaround.childtemplate.GridMenuItem item = new Workaround.childtemplate.GridMenuItem();
        public DropDownButton()
        {
            InitializeComponent();
        }
 
        private void DropDownButton_Load(object sender, EventArgs e)
        {
 
            SqlConnection con = new SqlConnection("Data Source=ISDTP0026;Initial Catalog=LibraryManagement;Integrated Security=True");
            con.Open();
            DataSet ds = new DataSet();
            SqlDataAdapter adp = new SqlDataAdapter("select CallNumber,Author from Books", con);
            adp.Fill(ds);
            item.Grid.DataSource = ds.Tables[0].DefaultView;
            
           
            GridViewCheckBoxColumn chk = new GridViewCheckBoxColumn();
            chk.DataType = typeof(bool);
            chk.HeaderText = "";
            chk.ReadOnly = false;
            item.Grid.Columns.Insert(0, chk);
            item.Grid.Columns[0].HeaderText = "Select";
            item.Grid.Columns[1].ReadOnly = true;
            item.Grid.Columns[2].ReadOnly = true;
            item.Grid.ReadOnly = false;
            item.Grid.ShowGroupPanel = false;
            item.Grid.AutoSizeRows = true;
            item.Grid.SelectionMode = GridViewSelectionMode.FullRowSelect;
            item.Grid.MultiSelect = true;
            item.Grid.SelectionMode = GridViewSelectionMode.FullRowSelect;
            item.Grid.MultiSelect = true;
            item.Grid.MasterGridViewTemplate.AllowAddNewRow = false;
            item.Grid.MasterGridViewTemplate.AllowDeleteRow = false;
            item.Grid.MasterGridViewTemplate.AllowEditRow = true;
            item.Grid.MasterGridViewTemplate.ShowRowHeaderColumn = false;
            item.Grid.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            item.Grid.MasterGridViewTemplate.BestFitColumns();
            item.Grid.Size = new Size(400, 300);
            radDropDownButton1.Items.Add(item);
}
 
        private void radDropDownButton1_DropDownClosed(object sender, EventArgs e)
        {
// here only i need to store the selected value
 foreach (GridViewRowInfo rowInfo in item.Grid.Rows)
            {
          
            for (int row = 0; row < item.Grid.Rows.Count; row++)
            {
                if (item.Grid.Rows[row].IsSelected)
            {
      
                 string str = item.Grid.Rows[row].Cells[0].Value.ToString();
   
         }
}
}
while dropdown closed event , how to get the selected rows and values....???
 
Please guide me it very urgent.... thanks in advance...
 
Thanks
Dev.
            
dev
Top achievements
Rank 1
 answered on 19 Nov 2010
2 answers
489 views
As I've reported before, the initial load time of my MDI Application is unacceptable. I searched around and found out that most of the initialization occurs in relation to themes. Is there a way I can disable themes for the entire application? 

Thanks

EB
Richard Slade
Top achievements
Rank 2
 answered on 18 Nov 2010
2 answers
112 views

Hello,

I have a RadGridView that is bind from a datatable. How do I turn on screen tips with images assign to the rows when user hover mouse over a row? Of course I would have to determine which images to use by the column and row index. But how do I assign a pop up screen tips with a image? My images are in a folder in my local drive.

Thanks.

anh
Top achievements
Rank 1
 answered on 18 Nov 2010
5 answers
135 views

Hello,

I encountered an unhandled exception when with startbutton menu open I use the scroll wheel on mouse.


Stack trace returned as follow:
  
   w Telerik.WinControls.UI.RadDropDownMenu.OnMouseWheel(Control target,Int32 delta)
  
   w Telerik.WinControls.UI.PopupManager.OnMouseWheel(Message m)
  
   w Telerik.WinControls.UI.PopupManager.Telerik.WinControls.IMessageListener.PreviewMessage(Message& msg)
  
   w Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message&msg)
  
   w Telerik.WinControls.RadMessageFilter.GetMessageHookProc(Int32 code, IntPtr wParam, IntPtr lParam)
  
   w System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
  
   wSystem.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID,Int32 reason, Int32 pvLoopData)
  
   wSystem.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
  
   w System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
  
   w System.Windows.Forms.Application.Run(Form mainForm)

 

Any help will be usefull

 

Regards,

Dragos

Mariano
Top achievements
Rank 1
 answered on 18 Nov 2010
27 answers
718 views

Hi!

                I have to use custom cell to display data but I have problem with performance.

                I have 500 rows and when I use my custom cell scrolling is very slow, not fluent.

I made simple test and checked that even if I add only one child control to custom cell, scrolling performance goes down significantly.

Is there any way to improve performance in this kind of scenario?

                This is my source code:

 

 

public class CustomCell : GridDataCellElement
{
    private RadCheckBoxElement _chk;
    public CustomCell(GridViewColumn column, GridRowElement row) : base(column, row)
    {
    }
    protected override void CreateChildElements()
    {
        base.CreateChildElements();
        _chk = new RadCheckBoxElement();
        _chk.Margin = new Padding(2, 2, 2, 2);
        _chk.MinSize = new Size(20, 20);
        _chk.Text = string.Empty;
        _chk.ToggleState = ToggleState.Off;
        this.Children.Add(_chk);
    }
    protected override Type ThemeEffectiveType
    { get { return typeof(GridDataCellElement); } }
}

namespace PerformanceIssue
{
    public partial class Form1 : Form
    {
        List<MySample> _list;
        public Form1()
        {
            InitializeComponent();
            _list = this.GenerateList();
        }
  
        private void btnPopulateUnbound_Click(object sender, EventArgs e)
        {
            GridViewDataColumn col = null;
            GridViewRowInfo row = null;
  
            for (int index = 1; index <= 10; index++)
            {
                col = new CustomColumn();
                radGridViewUnbound.Columns.Add(col);
                col.Width = 100;
            }
  
            foreach (MySample item in _list)
            {
                row = radGridViewUnbound.Rows.AddNew();
                row.Cells[0].Value = item.Property1;
                row.Cells[1].Value = item.Property2;
                row.Cells[2].Value = item.Property3;
                row.Cells[3].Value = item.Property4;
                row.Cells[4].Value = item.Property5;
                row.Cells[5].Value = item.Property6;
                row.Cells[6].Value = item.Property7;
                row.Cells[7].Value = item.Property8;
                row.Cells[8].Value = item.Property9;
                row.Cells[9].Value = item.Property10;
            }
            radGridViewUnbound.MultiSelect = true;
        }
  
        private List<MySample> GenerateList()
        {
            List<MySample> list = new List<MySample>();
            MySample item = null;
            for (int index = 0; index < 500; index++)
            {
                item = new MySample()
                {
                    Property1 = string.Format("Row: {0}, Col: {1}", index, 1),
                    Property2 = string.Format("Row: {0}, Col: {1}", index, 2),
                    Property3 = string.Format("Row: {0}, Col: {1}", index, 3),
                    Property4 = string.Format("Row: {0}, Col: {1}", index, 4),
                    Property5 = string.Format("Row: {0}, Col: {1}", index, 5),
                    Property6 = string.Format("Row: {0}, Col: {1}", index, 6),
                    Property7 = string.Format("Row: {0}, Col: {1}", index, 7),
                    Property8 = string.Format("Row: {0}, Col: {1}", index, 8),
                    Property9 = string.Format("Row: {0}, Col: {1}", index, 9),
                    Property10 = string.Format("Row: {0}, Col: {1}", index, 10)
                };
                list.Add(item);
            }
  
            return list;
        }
    }
}

 

               

Regards

Alexander
Telerik team
 answered on 18 Nov 2010
15 answers
377 views
I use RadGridView ver 8.2.0.0 (2008 Q3) with VB.NET 2010 and i need set the focus in a filter box for a column. How i make this?

Sorry for my english, i'm spanish
Andrew Shyliuk
Top achievements
Rank 1
 answered on 18 Nov 2010
3 answers
381 views
Hi,

I have a WinForms application that works in 2 modes : Consultation and Modification. When my form is in Consultation mode, I need to set the Enabled property of the MultiColumn ComboBox to false. However, the look of the ComboBox must be the same (White Back COlor with Black text color).

The problem is when I set the property enabled to false, I can't change the properties. The control always has grayish colors (text and border).

How can I set the proper colors to my disabled MultiColumn Combo box?

Thanks in advance

Yves Thibodeau
Stefan
Telerik team
 answered on 18 Nov 2010
1 answer
193 views
I know theming slows down the initialization so is there a way I can disable theming for the entire application?

Thanks

Ivan Petrov
Telerik team
 answered on 18 Nov 2010
3 answers
273 views
I have added a rad ribbon bar  form and set the isMDIContainter to true. But we i create the child form it loads in memory but does not display in the mdi form. Please guide me how it will. I searched over internet and no help is available.
I shall be very thankful to all members.


Shahzad Ahmed Khan
MIS COORDINATOR
Shahzad Ahmed
Top achievements
Rank 1
 answered on 18 Nov 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)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?