Telerik Forums
UI for WinForms Forum
3 answers
78 views
Hello,

In the past, in my Data Sources menu, using Entity Framework, I could drag and drop my source from that menu to my form and I could set each field to 'Textbox', 'ComboBox', 'RichTextBox' etc, but also to Telerik's RadTextBox, RadComboBox etc. But I started working on that project again recently and Telerik's component are not available in the option anymore. I can I have them there again ?


Thank you for you help.
Julian Benkov
Telerik team
 answered on 02 Mar 2012
1 answer
131 views
Hi telerik:
            I am working on Q1 2010, the NavigateForward and NavigateBackward buttons of SchedulerNavigator does not work in scheduler/grouping sample! Is it a bug?
            See my accessories, the appointments of 2012/3/2 still appear in other days. but the first look works well.

thanks.
Ivan Todorov
Telerik team
 answered on 02 Mar 2012
1 answer
143 views
Is there a way to program to collapse child rows in a gridview control? 

Best regards,

G
Stefan
Telerik team
 answered on 02 Mar 2012
1 answer
175 views
I can't seem to have the checkbox column cells to display any text.  Is it even possible?    The code below does not work.  The radcheckboxeditorelement does have a DisplayStyle property like the radcheckbox.  Please advise.  Do you I need to to do a custom celltype?

Private Sub RadGridView1_CellFormatting(sender As Object, e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.CellFormatting
 
    If e.Column.Name.ToUpper = "AGREE" AndAlso TypeOf e.CellElement Is GridCheckBoxCellElement Then
        CType(e.CellElement.Children(0), RadCheckBoxEditorElement).Text = "I Agree"
    End If
 
 
End Sub


Stefan
Telerik team
 answered on 02 Mar 2012
1 answer
351 views
Hi,

I'm creating an app that loads a number of forms and the raddock picks up as mdichildren

I'm trying to get this so the user cannot close any of the forms that are loaded so context menus, ctrl+f4 and the x in top left is this possible?

I have seen in an other forum post that you can do some of this using 

DockWindow.AllowedDockState &= ~AllowedDockState.Hidden;

if I use this it also stops me from closing the forms in code

RadDock1.CloseAllWindows();


thanks 

David
Stefan
Telerik team
 answered on 02 Mar 2012
4 answers
109 views

I have created a custom cell element column in the telerik RAD grid for windows.
Custom column has two children 1)RadLabelElement 2)RadButtonElement.
RadLabelElement displays text and RadButtonElement is clickable(to open some popup form)

For example: My custom column will have something like : helloworld with a button besides it.

But if i resize the column(decrease the column size), i want to have my "helloworld" text to appear with "hellowor...". But it is not happening. I found that "..." is behind the button element.

But if make the button element visible false, i can see that "..." on resize of the column(decrease the size of the column).

Could you please help me how to show "..." text along with the button element when the column is resized?

Thanks
Santosh.

 

 

 

 

Santosh
Top achievements
Rank 1
 answered on 02 Mar 2012
1 answer
83 views
Hello. Im using RadPropertyGrid with some own class...
this class is like a this..

public class Person : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string name)
{
if(this.PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
private string name_;
private int age_;
public string Name { get { return name_; } set { name_ = value; OnPropertyChanged("Name"); } }
public string Age{ get { return age_ ; } set { age_ = value; OnPropertyChanged("AGE"); } } 
}

public Form1()
{
InitializeComponent();
person=New Person();
person.Name="Chris";
person.Age=15;
person2=New Person();
person2.Name="Tom";
person2.Age=15; 

radPropertyGrid1.SelectedObject=new object[]{person,person2};

}
public void AgePlusButtonClick(object sender,EventArgs e)
{
person.Age++;
person2.Age++;
}

but when I click AgePlusButton radPropertyGrid doesn changed.
thats why PropertyChanged  is always null.
that changed when i clicked radPropertyGrid .
when I use selectedobject. that is work. but when i use selectedobjects. that doesn work..
how can I solve this one...

Thanks..
Ivan Petrov
Telerik team
 answered on 02 Mar 2012
3 answers
284 views

Hi,

I am a user of telerik winforms and i am having severe problems using it on 64 bit windows with either 32 bit outlook or 64 bit process.
The problem is the process crashing, with little information, i got the process dump and i can see this
>             0000000000cc0020()        
                gdi32.dll!000007feff3f2000()       
                [Frames below may be incorrect and/or missing, no symbols loaded for gdi32.dll]

This happens if i am trying to display number of popups in taskbar in quick succesion. If it disable the popups, i don't get any crashes.
When it crashes it shows something related to StackHash, Maybe telerik control is trying to access some read/write memory within gdi32.
Stackhas seems something related to DEP.

Here is my code.


 Image icon = message.IconName != null
               ? ImageResources.GetAlertImage(message.IconName)
               : ImageResources.GetAlertImage(message.Alert, FormConstants.ImageSize.x32);

         RadDesktopAlert popup = new RadDesktopAlert
         {
            CaptionText = message.Caption,
            ContentText = message.Content,
            ContentImage = icon,
            AutoCloseDelay = (int)message.Duration,
            ShowCloseButton = true,
            ShowOptionsButton = false,
            ShowPinButton = true,
            AutoClose = true,
            ScreenPosition = AlertScreenPosition.BottomRight,
            FixedSize = (message.Action == null) ? new Size(330, 90) : new Size(330, 110),
         };

         if (message.Action != null)
         {
            RadButtonElement button = new RadButtonElement
            {
               Text = message.Action,
            };
            button.Font = new Font(button.Font, FontStyle.Underline);

            if (message.Callback != null)
               button.Click += (sender, e) => message.Callback(sender, message);
            popup.ButtonItems.Add(button);
         }

         try
         {
            if (Application.MessageLoop)
            {
               Control sync = new Control();
               var handle = sync.Handle;
               sync.Invoke((Action)(() => { popup.Show(); }));
            }
            else
            {
               Application.Run(new AlertForm(popup));
            }            
         }
         catch (Exception ex)
         {
         }

Any help would be greatly appreciated.

Regards,
Raj
Peter
Telerik team
 answered on 02 Mar 2012
13 answers
272 views
I'm trying to bind the RadScheduler through SQL command programmatically, but I can't display the record found in my database.

Below is the code I came up with. Kindly point out the flaw.

        Dim mySqlCmd As New SqlCommand 
        Dim da As New SqlDataAdapter 
 
 
        Dim SchedSource As New SchedulerBindingDataSource() 
        Dim appointmentMappingInfo As New AppointmentMappingInfo() 
        Dim resourceMappingInfo As New ResourceMappingInfo 
        Dim mySqlConn = New SqlConnection("server = compname\SQLEXPRESS;database = dbname;Trusted_Connection = yes"
         
        mySqlConn.Open() 
        Try 
            mySqlCmd = mySqlConn.CreateCommand 
            mySqlCmd.CommandText = _ 
            "SELECT tbl_ReservationInfo.ReservationInfoID as 'ID', tbl_ReservationInfo.ReservationStart as 'Start', tbl_ReservationInfo.ReservationEnd as 'End', tbl_ResourceInfo.ResourceName As 'Resource Name', tbl_ResourceInfo.Description as 'Description', tbl_ResourceInfo.Type as 'Type'" 
            mySqlCmd.CommandText += " FROM tbl_ReservationInfo INNER JOIN tbl_Reservations ON tbl_ReservationInfo.ReservationID = tbl_Reservations.ReservationID INNER JOIN tbl_ResourceInfo ON tbl_ReservationInfo.ResourceInfoID = tbl_ResourceInfo.ResourceInfoID INNER JOIN" 
            mySqlCmd.CommandText += " tbl_Resources ON tbl_ResourceInfo.ResourceInfoID = tbl_Resources.ResourceInfoID INNER JOIN" 
            mySqlCmd.CommandText += " tbl_Users ON tbl_ReservationInfo.UserID = tbl_Users.UserID" 
            mySqlCmd.CommandText += " WHERE (tbl_ResourceInfo.Type = 'Venue')" 
            da.SelectCommand = mySqlCmd 
 
            da.Fill(SchedDataSet, "Schedules"
 
            appointmentMappingInfo.Start = "Start" 
            appointmentMappingInfo.End = "End" 
            appointmentMappingInfo.Summary = "Resource Name" 
            appointmentMappingInfo.Location = "Resource Name" 
            appointmentMappingInfo.Description = "Description" 
            appointmentMappingInfo.Visible = "Visible" 
 
            resourceMappingInfo.Id = "ID" 
            resourceMappingInfo.Name = "Type" 
 
 
            SchedulerBindingDataSource1.ResourceProvider.Mapping = appointmentMappingInfo 
            SchedulerBindingDataSource1.ResourceProvider.DataSource = "Schedules" 
 
            SchedulerBindingDataSource1.ResourceProvider.Mapping = resourceMappingInfo 
            SchedulerBindingDataSource1.ResourceProvider.DataSource = "Schedules" 
 
            VenueSchedTable.DataSource = SchedulerBindingDataSource1 
        Catch ex As Exception 
            MsgBox("Error: " & ex.Source & ": " & ex.Message, MsgBoxStyle.OkOnly, "Connection Error !!"
        End Try




I have one record in my database,wherein if that SQL Select Statement is executed will retrieve it, as seen on the image below:
http://img69.imageshack.us/img69/4580/12849791.jpg


Ivan Todorov
Telerik team
 answered on 02 Mar 2012
2 answers
151 views
I have a hierarchical grid that contains 2 child gridviews. When a particular value on the 3rd gridview (3rd level of hierarchy) is shown then another cell should change its color. For the first grid is not a problem at all. But when trying to do so for the inner gridviews I fail to get the correct cell value.

I'm trying to follow the sample provided on the link Applying formatting only to cells in a child template but is only works for one level hierarchy verifying that the parent template is not nothing. On my case this is not helpfull has there is a parent and "grandparent" template.

Thanks!
Stefan
Telerik team
 answered on 01 Mar 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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?