Telerik Forums
UI for WinForms Forum
1 answer
157 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
158 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
224 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
133 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
192 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
143 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
898 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
6 answers
412 views
Hi,
We are using radtreeview to display data from multilple related tables. We have followed the example application at http://www.telerik.com/help/winforms/tree_datarelational.html. By following the steps data is correctly displayed. Further we need to save the changes made by drag drop back to database. What is the best way for doing this? On DragEnded I am trying to see the changes made to the underlying dataset but HasChanges() method when called in dataset returns false. 

kindly, suggest me the way to achieve this.

Thanks,
Avinash Tauro
Avinash Tauro
Top achievements
Rank 1
 answered on 23 Sep 2010
3 answers
1.2K+ views
I am migrating my code from using RadPanelBar to using RadPageView.  In my code, I was able to select a given Panel by setting a boolean:

myRadPanelBarGroupElement.Expanded = true;

What is the equivalent call for a RadPageView page?  I scrolled through all commands, and tried a few, and nothing worked.  I admit I didn't try them all, though.

Any advice will be appreciated.
Alexander
Telerik team
 answered on 23 Sep 2010
1 answer
85 views
Hi,

I am working with a manually bound scheduler.

Once an appointment is added, deleted or changed I need to add or adjust the database. I can find the AppointmentDeleted event on the scheduler but cannot find either the appointment insert or update events. Reading through the forum it appears that this may have been made availalbe through some other method but I cant seem to to work it out.

I can see some reference to the Appointments.CollectionChanged event, but I can't see that either.

Can you please point me in the right direction?

Version: Q2 2010 SR1 - VB.Net

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