Telerik Forums
UI for WinForms Forum
1 answer
257 views
Greetings,

we have just recently aquired Telerik Premium Collection and while exploring its rich funcionality a few questions have arisen about GridView. We are using WinForms and OpenAccess Q3 2011.

1) In combination with OpenAccess what is the best approach when trying to implement automatic CRUD operations on gridview, so far we have looked in knowledge base, code library and demos but information about this is scarce. So how can CRUD be implemented using only grid and binding source without any code behind?

2) Is it possible to have a custom insert template (like in ASP.NET Ajax Grid - InsertItemTemplate) in GridView which can be customized either in code or with Property Builder? Or is it possible to change the GridNewRowElement during grid binding and which event to use?

As an example lets say we have a simple table City in database with ID, Country_ID, State_ID, Name and Description columns. When we bind the grid using BindingSource we show only ID, Name and Description columns and also set the ID coulmn to be read only, however when the user wants to insert a new row the ID column should not be read only because we want the user to manually set the ID. Moreover the insert row should have two comboboxes using its own data sources (from Country and State tables) which would enable the user to select appropriate values from a dropdown menu (county name and state name). Basically we want to have two templates - one for view and one for insert (and potencially also an edit template).

3) Since we are using OpenAccess, is it possible to extract a doimain class object bound to a row during/after edit (in CellValueChanging/Changed) so we dont have to use e.Row.Cells[x].Value beacuse its more error prone?

Any kind of samples (projects especially) or links would be greatly appreciated.
Julian Benkov
Telerik team
 answered on 12 Jan 2012
0 answers
100 views
Hi everyone

public void FillGridCombo(ref Telerik.Web.UI.RadGrid grd, int iCol, DataTable lDTSrc, string sID, string sDisplay)
    {
        try
        {
            System.Collections.Specialized.ListDictionary hList = new System.Collections.Specialized.ListDictionary();
            int iRow = 0;
            for (iRow = 0; iRow <= lDTSrc.Rows.Count - 1; iRow++)
            {
                hList.Add(lDTSrc.Rows[iRow][sID], lDTSrc.Rows[iRow][sDisplay]);
            }
            grd.Columns[iCol].Initialize();
            grd.Columns[iCol].GetCustomPropertyDataFields(hList);

        }
        catch (Exception ex)
        {
            throw ex;

        }
    }

I used this function for getting data in combobox column in ASP.NET Rad GridView which works f9.
I need to know the alternate for the bold rows or if someone has better solution please let me know.

Thanks
Shah
Top achievements
Rank 1
 asked on 12 Jan 2012
1 answer
114 views
Hi Team,

when i try to use latest telerik radcontrols for winforms q3 2011 version, it is showing much differnce in design of shellform for that i am attaching 2 sample prototypes showing these differences.

In both these prototypes i have used size of radribbonbar and deckworkspace are more or less same.In sampletelerikQ2proto project,i have set layourworkspace.dock as none.if i give fill then it fills the whole form,but this does not happen in sampletelerikq3proto.

Herewith i have attached 2 small prototypes of telerik radcontrols for winforms (q3 & q2) 2011 version.

please clarify my above doubts.

Thanks,
Ulaga
Ivan Todorov
Telerik team
 answered on 12 Jan 2012
4 answers
235 views

RadPageView will be the successor of RadTabStrip and RadPanelBar by providing different views over a collection of pages. Each page is a stand-alone Panel where controls may be added through the Visual Studio Designer. The control is fully customizable yet greatly optimized for both memory consumption and performance. It will offer better item sizing and spacing, as well as extended orientation modes over the other two controls. Read more in the following blog posts:

What will happen to the old controls?

The old controls will be supported for at least one year after the release of Q2 2010. Users will nevertheless be encouraged to use RadPageView since it addresses the fundamental shortcomings of the previous controls.

Is upgrading to the new controls easy?

Upgrading from the old to the new control should be easy and painless, unless you have extended the previous controls with custom functionality. If this is the case, please contact Telerik support and we will help you move to the new version. We will also try to provide an automatic upgrade tool with Q2 2010 SP1.

Videos and instructions on how to upgrade from the old versions to the new control will be posted shortly.

How do I get support for the new controls?

To get technical support, either contact Telerik support or post in the PageView Forum.

Nikolay
Telerik team
 answered on 12 Jan 2012
3 answers
130 views
I have a RadSpinEditor with the following ValueChanging event handler:

private void CrewQtyText_ValueChanging(object sender, Telerik.WinControls.UI.ValueChangingEventArgs e)
{
     foreach (Telerik.WinControls.UI.GridViewRowInfo row in RequiredRolesGrid.Rows)
     {
          if (Convert.ToInt16(row.Cells["Workgroup"].Value) > Convert.ToInt16(e.NewValue))
          {
               e.Cancel = true;
               break;
          }
     }
     if(!e.Cancel)
          foreach (Telerik.WinControls.UI.GridViewRowInfo row in RequiredEquipGrid.Rows)
          {
                if (Convert.ToInt16(row.Cells["Workgroup"].Value) > Convert.ToInt16(e.NewValue))
                {
                     e.Cancel = true;
                     break;
                }
           }
 
           if (e.Cancel)
                 MessageBox.Show("Requirements already exist for workgroup " + e.OldValue);
}

Basically if the user has other requirements that depend on the value in the spin editor I don't want them to be allowed to change the spinner.  That seems to work fine, but the buttons on the spinner get stuck once the operation has been Cancelled, and the next time that button is pressed it behaves as though it was in it's old state.  For example (assuming the spinner has an integer value), I increment the spinner to 3 (#1 from screen shot).  Let's say the user has a requirement that prevents them from lowering the spinner value below 2.  Now I decrement the spinner twice (#2 from screen shot).  The first one works, lowering the value to 2.  The second click causes the operation to be canceled.  Now say I increment the value to 5 (#3 from screen shot, note 'depressed' spinner button').  The NEXT time I try to decrement (just once), the value returns to 2 (#4 from screen shot), the last value that caused the operation to be cancelled.  I would expect it to return to 4, 3, then 2.  You can see that the down button on the spinner stays highlighted after the operation is cancelled.  I know this probably sounds confusing.  Please try to follow the screen shot provided, and let me know if you need more detail.
Peter
Telerik team
 answered on 12 Jan 2012
1 answer
175 views
Hi all,

Is there a way to show the appointment edit dialog in read-only when an appointment has the property AllowEdit set to false, instead of not showing the edit dialog at all.

The problem is that it isn't possible to see all the information of the appointment.

Greetings
Ivan Todorov
Telerik team
 answered on 12 Jan 2012
1 answer
123 views
Hello. 
Before when I work company I used Wpf RadControl.
but this day at another part i think i need to use winform control.
but radcontrol for winform dosn have raddataform..
i think raddataform is good than property grid.. 
because i used AutoGeneratingField at raddataform..
but propertygrid dosn have AutoGeneratingField.

just i want know will you have a plan to make raddataform at winform...
thanks
Jack
Telerik team
 answered on 12 Jan 2012
1 answer
341 views
I'm trying to force the keyboard input into the MultiColumn ComboBox to upper case and limit it to 3 characters. I tried setting the 'ColumnCharacterCasing' and MaxLength' of the bound grid column, but this didn't work. Any suggestions?
Svett
Telerik team
 answered on 12 Jan 2012
1 answer
150 views
If you end edit on any spin edit control in a gridview it plays the windows ding sound. Is there any way stop this?

Thanks
Stefan
Telerik team
 answered on 12 Jan 2012
6 answers
504 views
Hi.

I have defined a set of columns that are bound to my BindingList<RowEntry> collection. This works like it should. I am now in the process of adding some extra columns dynamically. How do I populate these? is there a "DidNotFoundPropertyManuallySetCellData" event? :-)

/jorge
Julian Benkov
Telerik team
 answered on 12 Jan 2012
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
ProgressBar
CheckedDropDownList
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?