Telerik Forums
UI for WinForms Forum
28 answers
722 views
What is the best place to update the DB when a new row are added, deleted or modified in the Grid?

Validating?
Validated?
ValueChaging?
ValueChanged?

Thans a lot
Nick
Telerik team
 answered on 20 Aug 2009
3 answers
160 views
I have a docking manager on the main form.  I have a docking manager in each dynamically generated document pane.  How can I restrict docking of panels in the document pane to the docking manager of the same document pane?  I don't want the user to be able to drag dockables from one docking manager to another...


Julian Benkov
Telerik team
 answered on 20 Aug 2009
3 answers
390 views
Hi All,

I have a radGridView that is populated via a TableAdapter:

buUserTableAdapter buUserTA = new buUserTableAdapter();  
protected BindingSource buUserBindingSource = new BindingSource();  
 
buUserBindingSource.DataSource = buUserTA.GetData();  
this.radGvAdminUsers.DataSource = buUserBindingSource; 

The radGridView is read only, however, I have a "detail" section below the radGridView where users can edit the contents of the records.  The database is updated upon clicking a "save" button via a stored procedure of the TableAdapter:

private void radBtnAdminSaveUser_Click(object sender, EventArgs e)  
{  
    int userId = Convert.ToInt32(lblAdminUserDBID.Text);  
    string userLogin = this.radTxtAdminLoginId.Text.ToUpper();  
    string lastName = this.radTxtAdminLastName.Text;  
    string firstName = this.radTxtAdminFirstName.Text;  
    string userPhone = this.radMTxtAdminPhone.Value.ToString().Trim();  
    int userRole = Convert.ToInt32(this.radComboAdminRole.SelectedValue);  
      
    string userRoleDesc = radComboAdminRole.Text;  
    bool userActive = Convert.ToBoolean(this.radCbAdminUserIsActive.Checked);  
    if (userId != 0)  
    {  
        buUserTA.UpdateSP(userId, userLogin, lastName, firstName, userPhone, userRole, userActive, System.Configuration.ConfigurationManager.AppSettings["UserNetworkId"].ToString());  
    }  
    else 
    {  
        //Need to do an insert for a new user and update for the new id  
        userId = Convert.ToInt32(buUserTA.InsertSP(userLogin, lastName, firstName, userPhone, userRole, System.Configuration.ConfigurationManager.AppSettings["UserNetworkId"].ToString()));  
    }  

When this is clicked, the database is properly updated, however, the radGridView does not refresh to reflect the changes.  

From what I've read, it seems like the radGridView is supposed to automatically updated.  What am I missing or doing wrong?  Any help with this is greatly appreciated.

Robert

Victor
Telerik team
 answered on 20 Aug 2009
2 answers
218 views
Hello,

I would like to not allow the user to select an item in my radListBox. I have set the selection mode to none, but this still places a border around the edge of the item. How can I ensure that items do not show as selected in any visible way?

Thanks

Richard
Richard Slade
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
148 views
Hi,
I have been facing problems adjusting the column length to best fit based on the maximum data present in any of the columns field.
i.e.
the column should automatically maximize to the maximum length of the records in that column
Can you please Help me out, as currently all of my columns are compressed and i have to manually expand each column to have a look at my data.

Note: My gridview is being populated by list using the (datasource) property.

Victor
Telerik team
 answered on 20 Aug 2009
6 answers
173 views
I'm looking for a way to toggle hide and unhide for the menu bar on an application. I want it to toggle when the user presses 'Alt' just like on Internet Explorer 8.
All attempts I have made so far have failed. Capturing KeyDown has a tendancy to make the toggling flicker if the Alt key is pressed too long. Also, the menu toggles if the user trys ALT+Tab or any other Alt key function.
Victor
Telerik team
 answered on 20 Aug 2009
3 answers
182 views
Hi,

I refer to the three telerik.dll(Telerik.WinControls.dll / Telerik.WinControls.UI.dll / TelerikCommon.dll) for adding Radribbon UI.
Now I should make msi file for installing and testing on other computers.

I just added three dll file on the msi project, and I installed this file on other computer.
After install process, I ran my application and failed process before load ribbon form.

I think my msi file have some problem about telerik dll files.
What should I do for add dll file in msi file? Do I need any setting about registry?

Do you have any suggestions about that? Actually I didn't use msi file before. 
Please let me know, how to add telerik dll..


P.S This msi run normally on my computer.(I installed radcontrols for winforms on my desktop.)
       However it is not a situation what I want.

Regards,
Peter
Telerik team
 answered on 20 Aug 2009
5 answers
223 views
I have created a new EditAppointDialog form, using a custom Appointment Factory.  C#

1)  How can I set the new custom appointment data during manual creation?  I don't see "Email" show as an option.  Am I missing something?  The email data does save & load within the session.   


Appointment appointment = null;
appointment = new Appointment(start, end, summary, description, location);
this.radScheduler.Appointments.Add(appointment);


this.radScheduler.AppointmentFactory = new CustomSchedFactory();


public class CustomSchedFactory : IAppointmentFactory
    {
        #region IAppointmentFactory Members

        public IEvent CreateNewAppointment()
        {
            return new MySched();
        }

        #endregion
    }

public class MySched : Appointment
    {
        public MySched() 
            :base()
        { }

        string email = String.Empty;

        public string Email
        {
            get { return this.email; }
            set 
            {
                if (this.email != value)
                {
                    this.email=value;
                    this.OnPropertyChanged("Email");
                }
            }
        }



2)  I also will have a new combobox added to the custom AppointmentDialog, and I want to add items at form load (similiar to Resources). How I can I add drop-down values to my custom combobox on the radScheduler during Onload of RadForm (not Appointment form)?

this.radScheduler.Resources.Add(new Resource(1,"Test"));
(I have a new "Types" combobox on the custom EditAppointmentDialog)



Jeremy Murtishaw
Top achievements
Rank 1
 answered on 19 Aug 2009
1 answer
146 views

If RadGropBox have

1) non odd height (for example, 179 instead of 180) and

2) font set for Tahoma with size 8 

lower boundary is lost. See this picture for example.

I use Telerik RadControls for WinForms version 2009.2.729.

Nick
Telerik team
 answered on 19 Aug 2009
2 answers
224 views
Hi,
We want to buy your product so we try it now to see if it's feet us.
we want a carousel with images,The images will be added in runtime
here is my code:
--------------------------------------------------------------------------------------------------------------------------------------------

RadButtonElement

 

radB = new RadButtonElement();

 

 

 

Image Image = SaveBitmap(f); //My Faunction which returns an image

 

radB.CanFocus =

true;

 

 

 

radB.DisplayStyle = Telerik.WinControls.

 

 

DisplayStyle.Image;

 

 

radB.Image = Image;

radB.Name =

"radButtonElement";

 

 

 

radB.Text =

"radButtonElement";

 

 

 

((Telerik.WinControls.Primitives.

 

 

FillPrimitive)(radB.GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;

 

((Telerik.WinControls.Primitives.

 

BorderPrimitive)(radB.GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;

 

 

 

this.leoSchachterCarousel1.Items.Add(radB);
---------------------------------------------------------------------------------------------------------------------------------------

the Problem Is that the Image is to big and when I set it smaller it is cut...
how can I set an AutoSize and Stretch Image to RadButtonElement ?
Thank You,

 

 

chaily pardes
Top achievements
Rank 1
 answered on 19 Aug 2009
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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?