Telerik Forums
UI for WinForms Forum
1 answer
194 views
hi

i wonder what the best way to implement CellClick (which I use as a RowClick) would be when using keys for navigation. In a sence it would be optimal if the up/down/left/right keys would trigger CellClick.. 

thanks
- j
Emanuel Varga
Top achievements
Rank 1
 answered on 26 Sep 2010
4 answers
109 views
Hi,
I'm trying to get a reference to the bindingsource at run-time. The reason is that I use a tableadapter for appointments and I have a field called 'Call Id'. This isn't on the AppointmentDialog, but everything else is like subject etc. How do I reference my new field from within the appointment dialog? (I have already extended it)

Thanks
Dobry Zranchev
Telerik team
 answered on 24 Sep 2010
5 answers
207 views
Hi
I have two RadRadiobutton in RadGridViewColumn. now if i select one radiobutton then i want to uncheck second radiobutton which is in second Radgridviewcolumn how do i do this?


Thanks


Kind Regards:
Hariindarr Siingh
McConnell Dowell SEA
Jack
Telerik team
 answered on 24 Sep 2010
1 answer
189 views
Hi,
I've start from your demo "Grid view" --> "Use custom editor", to make a simple custom editor based on a textbox and a single button (like BrowseEditorElement)... but I've found a "strange" behaviour also in the BrowseEditorElement!
I try to explain (still referring to your demo "Grid view" --> "Use custom editor"):
only using the keyboard to navigate the grid (for example with the Tab key), starting typing in the second column, the customer editor of the cell becomes acitve, but the text just typed doesn't appear in the textbox of this custom control...

I think that this may be a desided behaviour, in consideration that in the demo the column rapresent a path (not to edit manually).

Anyway I've found this code that (for my opinion) doesn't work correctly.

 

public override void BeginEdit()

 

{

 

base.BeginEdit();

 

 

BrowseEditorElement editor = (BrowseEditorElement)this.EditorElement;

 

editor.TextBox.SelectAll();   // this is completely ignored

editor.TextBox.Focus();       // this is completely ignored - READING THE RETURN VALUE IT'S "FALSE"

editor.TextBox.TextChanging +=

new TextChangingEventHandler(TextBox_TextChanging);

 

editor.TextBox.TextChanged +=

new EventHandler(TextBox_TextChanged);

 

editor.TextBox.KeyDown +=

new KeyEventHandler(TextBox_KeyDown);

 

editor.Button.Click +=

new EventHandler(Button_Click);

 

}


Is this is a bug? How can I make my code work correctly?

Thank you in advance.

Luca
Alexander
Telerik team
 answered on 24 Sep 2010
2 answers
205 views
Hello,

i'm trying to use the RadScheduler for WinForms with OpenAccess for databinding.
When i try to make a new appointment it chrashes with the System.NotSupportedException.
I made a small basic sample app by using the RadScheduler Binding-Demo and this topics:
http://www.telerik.com/help/openaccess-orm/openaccess-tasks-howto-radscheduler-win.html
http://www.telerik.com/help/winforms/using_a_data_provider.html
See sample app: "RadScheduler OpenAccess WinForm"

Edit: i see that i can't post a sample app here, only pictures. Is it possible to give you the sample app somehow, so you can reconstruct the issue?

The StackTrace is:
System.NotSupportedException wurde nicht behandelt.
  Message=Die angegebene Methode wird nicht unterstützt.
  Source=Telerik.OpenAccess
  StackTrace:
       bei Telerik.OpenAccess.RT.Wrapper4IList.Clear()
       bei Telerik.WinControls.UI.Scheduler.SimpleResourceIdMapper.ClearResourceIds()
       bei Telerik.WinControls.UI.SchedulerBindingDataSource.EventBindingProvider.UpdateChildItems()
       bei Telerik.WinControls.UI.Scheduler.BindingProviderBase`1.Insert(T itemToInsert)
       bei Telerik.WinControls.UI.RadScheduler.OnAddAppointments(IList list)
       bei Telerik.WinControls.UI.RadScheduler.appointments_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       bei Telerik.WinControls.Data.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       bei Telerik.WinControls.Data.ObservableCollection`1.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)
       bei Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       bei Telerik.WinControls.Data.ObservableCollection`1.InsertItem(Int32 index, T item, Action`1 approvedAction)
       bei Telerik.WinControls.UI.SchedulerAppointmentCollection.InsertItem(Int32 index, IEvent item)
       bei System.Collections.ObjectModel.Collection`1.Add(T item)
       bei Telerik.WinControls.UI.RadScheduler.AddNewAppointmentWithDialog(DateTimeInterval interval, Boolean recurringAppointment, SchedulerResourceCollection resources)
       bei Telerik.WinControls.UI.DayViewAppointmentsTable.cell_DoubleClick(Object sender, EventArgs e)
       bei Telerik.WinControls.UI.DayViewAppointmentsTable.CellDoubleClick(Object sender, EventArgs e)
       bei Telerik.WinControls.UI.RadSchedulerElement.scheduler_CellElementDoubleClick(Object sender, EventArgs e)
       bei Telerik.WinControls.UI.RadScheduler.OnCellElementDoubleClick(Object sender, EventArgs args)
       bei Telerik.WinControls.UI.SchedulerCellElement.OnDoubleClick(EventArgs e)
       bei Telerik.WinControls.RadItem.DoDoubleClick(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 Telerik.WinControls.UI.RadScheduler.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(IntPtr 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 RadScheduler_OpenAccess_WinForm.Program.Main() in E:\Coding Area\_easySolution\easyTermin\RadScheduler OpenAccess WinForm\RadScheduler OpenAccess WinForm\Program.cs:Zeile 18.
       bei System.AppDomain._nExecuteAssembly(RuntimeAssembly 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, Boolean ignoreSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()
  InnerException:


Kind regards
Nihat

P.S. it's an urgent issue, cause i've to make a prototype soon to decide if we will use Telerik for the comming project.
Dobry Zranchev
Telerik team
 answered on 24 Sep 2010
4 answers
282 views
Hi Telerik Team,

I would like to have following functionality in the grid.

1. For example, If I apply filter on some date and price column and not on any other column. Can I change the colour of these two filter cells or something else to differentiate these two filter cells from the rest of the row. Because it does not show anything in the filtering cell when we apply BETWEEN filter. But if we apply Equals or anyother filter it shows the value into the cell.

2. Next thing can I filter these columns programmatically as we dont always want to use the filtering row. Please advice how can it be done, I somehow managed to do filteration programmatically but again I am unable to do the BETWEEN bit of it, all of the other criteria can be done.

3. How can I save the filter criteria and their values for each column seperately into a file or database.

I am using Q1 2009.

Thanks for your help,

Sheraz
Alexander
Telerik team
 answered on 24 Sep 2010
1 answer
174 views
Hi,

I have one issue when I used the Telerik Winforms Controls on Windows Seven.
It shows me my controls but with a black color in back.
I did not have this issue on Windows XP.

I tried to install Telerik Winforms on Windows Seven but still the same issue.
I tried to change the ThemeName but still the same issue.

Regards,
Ibrahim ALIRKILICARSLAN
Top achievements
Rank 1
 answered on 24 Sep 2010
4 answers
253 views
Hi.

I have a RadGridView with 10.000 rows.
It has 4 columns, 3 string columns and 1 image column.
When i sort the string columns, it works fine(less than 1 second).
But when i sort the image column, it takes to long, took me 25 seconds.
Don't known what order algorithm your using, but it's taking to long.

Think this is a bug report.

Bruno Almeida.

EDIT: Here is one print of my RadGridView looking... Done it while it was ordering the image column (the first one).

PS: If, by mistake, i click 2 or 3 times in the column(to order it) when its processing the first order, it calls the order that many times. making the 25 seconds waiting time in 25*3 = 75 seconds.
bruno
Top achievements
Rank 1
 answered on 24 Sep 2010
2 answers
187 views
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;
using System.Collections;
using Telerik.WinControls;

namespace Test_POW
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        bool isCheck = false;
        int z = 0;
        ArrayList arrControl = new ArrayList();

        string[] strArr = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", };

        private void load()
        {
            DataTable data = new DataTable();
            data.Columns.Add("1");
            data.Columns.Add("2");
            data.Columns.Add("3");
            data.Columns.Add("4");
            data.Columns.Add("5");

            for (int i = 0; i < strArr.Length; i++ )
            {
                DataRow dr = data.NewRow();
                dr[0] = "";
                dr[1] = "";
                dr[2] = "";
                dr[3] = "";
                dr[4] = "";
                data.Rows.InsertAt(dr, 0);
            }


            radGridView1.DataSource = data;

            radGridView1.Columns[0].Width = 100;
            radGridView1.Columns[1].Width = 100;
            radGridView1.Columns[2].Width = 100;
            radGridView1.Columns[3].Width = 100;
            radGridView1.Columns[4].Width = 100;


        }

        private void Form1_Load(object sender, EventArgs e)
        {
            load();
        }

        private void btnAlert_Click(object sender, EventArgs e)
        {

            for (int i = 0; i < radGridView1.RowCount; i++)
            {
                for (int j = 0; j < radGridView1.ColumnCount; j++)
                {
                    radGridView1.Rows[i].IsCurrent = true;
                    radGridView1.Columns[j].IsCurrent = true;
                    if (radGridView1.CurrentColumn.Index == j && radGridView1.CurrentRow.Index == i)
                    {
                        RadCheckBoxElement check = new RadCheckBoxElement();
                        while (z < strArr.Length)
                        {
                            check.Name = "check_" + strArr[z];
                            check.Text = strArr[z];
                            arrControl.Add("check_" + strArr[z]);
                       
                            radGridView1.CurrentCell.Children.Add(check);
                            z++;
                            break;
                        }
                    }
                    if (z == 5)
                    {
                        break;
                    }
                    if (z == strArr.Length)
                    {
                        break;
                    }

                }
                if (z == strArr.Length)
                {
                    break;
                }
            }
            radGridView1.Rows[0].IsCurrent = true;
            radGridView1.Columns[0].IsCurrent = true;
        }

        private void btnGetCheckBox_Click(object sender, EventArgs e)
        {
            I want when checked in that RadCheckBoxElements and Click Button (btnGetCheckBox_Click) will
            get value (true,false) of RadCheckBoxElement checked

        }
    }
}


Help me!

Thank you!
kenny
Top achievements
Rank 1
 answered on 24 Sep 2010
2 answers
1.0K+ views

DataGridView :

Set the AutoSizeMode property of the last column to Fill and use other sizing options for the other columns. If the other columns use too much of the available space, set the MinimumWidth property of the last column.


http://msdn.microsoft.com/en-us/library/74b2wakt(v=VS.80).aspx

RadGridView :

How to set the last column to Fill?
Emanuel Varga
Top achievements
Rank 1
 answered on 23 Sep 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?