Telerik Forums
UI for WinForms Forum
1 answer
166 views
Hi,

How can I get the height of the tabpage header area at runtime ?

Is there any docs to help for understanding your UI elements ?

Regards.

Hakan

Edit:
I found the solution at this page : http://www.telerik.com/community/forums/winforms/page-view/pageview-tab-height.aspx

Question: Must have been so hard?
Stefan
Telerik team
 answered on 22 May 2013
2 answers
314 views
I have a Search form, and I am enabling/disabling the Search button depending on changes a user makes to several input fields.  Some of my fields are RadSpinEditor controls.

When I use the RadSpinEditors' ValueChanged event to toggle my Search button, it's not enough.  It works fine if the user is using the up/down controls.  However, if they manually type-in a numeric value, the ValueChanged event isn't triggered UNTIL the field loses focus; it basically behaves like a "Leave" event.  This won't work for me because when a user types in a value on a RadSpinEditor field, the Search button remains disabled; they can't click the Search button until they click somewhere else on the form.

In an attempt to fix this, I tried using the TextChanged event instead.  This works much better in terms of toggling the Search button in real time... except for one small problem; it renders my text backwards.  In other words, if I type "1234", it renders as "4321".

There was a separate issue described here where the user was running into issues w/ TextChanged.  The user was instructed to just use ValueChanged instead, but I've explained why that won't work in my case.
Stefan
Telerik team
 answered on 22 May 2013
7 answers
371 views
Hi there,

I am trying to change the color of the desktopalert and its not working...can u pls let me know if its possible?

i tried to change the color by theme, i.e.

DesktopAlertQuickNote.ThemeName = "Windows7"

thx

 

 


Stefan
Telerik team
 answered on 22 May 2013
1 answer
99 views
Is there a way to set RadDock MDI document window image property at runtime? I have a button that opens an existing form in MDI mode in a new document window and would like to set the image property so the icon appears on the tab. Im using VB 2010.
Stefan
Telerik team
 answered on 22 May 2013
1 answer
122 views
I feel that I am missing something very simple.

Looking over the documentation am I correct in getting that Telerik does not provide translated strings for their controls but instead exposes LocalizationProviders and Dictionaries that we can then overload?

Is there no easier way to do this?  Can I not simply stick resx files somewhere? (running directory etc ...)

Any help would be greatly appreciated.
Grzegorz Świeczkowski
Top achievements
Rank 1
 answered on 22 May 2013
1 answer
189 views
Hello,
          Hello There,
                    My question is some what different.I two RadPageView and on First RadPageView's  LinkClickLabel i generate the second RadPageView,So after text generated into my second RadPageView TextBoxes,when i change the page(selectedpagechanged or chaging) of first RadPageView,I want to Generate MessageBox like to save changes or not.I have done some what of it.but actually i am getting messagebox multiple times as much as the First RadpageView Contains Pages.

My code Is Like this:
for example:

   private void MyPagePageView_SelectedPageChanging(object sender, RadPageViewCancelEventArgs e)
        {
            RadPageViewPage selectedpageMyPage = MyPagePageView.SelectedPage;
           
            Control[] Mypagetext = selectedpageMyPage.Controls.Find("richtextbox", false);
             if (Mypagetext != null)
              {
                RadPageViewPage selectedpageMySecondPage = MySecondPagePageView.SelectedPage;
                Control[] Txt1Text = selectedpageMySecondPage.Controls.Find("Txt1", false);
                Control[] Txt2Text = selectedpageMySecondPagePage.Controls.Find("Txt2", false);
                Control[] Txt3Text = selectedpageMySecondPagePage.Controls.Find("Txt3", false);
                Control[] Txt4Text = selectedpageMySecondPage.Controls.Find("Txt4", false);
                Control[] Txt5Text = selectedpageMySecondPage.Controls.Find("Txt5", false);
                if (Txt1Text != null)
                {
                    if (Txt2Text != null)
                    {
                        if (Txt3Text != null)
                        {
                            if (Txt4Text != null)
                            {
                                if (Txt5Text != null)
                                {
                                  
                                    RadTextBox tb = new RadTextBox();
                                    if (tb is RadTextBox)
                                    {
                                        DialogResult dialogresult = MessageBox.Show("Do you want to save changes","DB",MessageBoxButtons.YesNo);


                                        if (dialogresult == DialogResult.Yes)
                                        {

                                            MessageBox.Show("To save changes Click the SAVE button");

                                        }
                                        else if (dialogresult == DialogResult.No)
                                        {

                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

Thank you,
Niranjan Patil 


Peter
Telerik team
 answered on 21 May 2013
3 answers
140 views
I have a UserControl that contains a RadCheckBox that is data bound (via Checked property) to a boolean property of a object via a DataSource on the UserControl. I am using the TelerikMetroBlue theme and for some reason when I show the UserControl the RadCheckBox is not showing the check mark. When I debug the application the boolean property is true, the RadCheckBox.Checked is true, the RadCheckBox.IsChecked is true, the RadCheckBox.ToggleState is on but for some reason the check mark is not rendering. If I remove the TelerikMetroBlue theme from the RadCheckBox the check mark displays fine.

Is the some issue involving the RadCheckBox, Data Binding and the TelerikMetroBlue theme?
Peter
Telerik team
 answered on 21 May 2013
1 answer
66 views
 I don't seam to able to edit my resource list in a Reoccurring Exception. I am using a custom Edit Appointment Dialogue with the following code in the ApplySettingsToEvent, I am sure there is something i may need to add/correct but this has got me stumped.


 Protected Overrides Sub ApplySettingsToEvent(ByVal ev As Telerik.WinControls.UI.IEvent)

        MyBase.ApplySettingsToEvent(ev)

        ev.ResourceIds.BeginItemUpdate()
        ev.ResourceIds.Clear()

        For Each item As RadListDataItem In listResources1.SelectedItems
            Dim resourceId As EventId = TryCast(item.Value, EventId)
            If Not ev.ResourceIds.Contains(resourceId) Then
                ev.ResourceIds.Add(resourceId)
            End If
        Next

        ev.ResourceIds.EndItemUpdate()

    End Sub
Matthew Bone
Top achievements
Rank 1
 answered on 20 May 2013
2 answers
70 views
Hello,
I will like to load from the database the filter expressions and not just hide the rows.
I set custom filter to true but when I set the grid's datasource to the new results set, I get an error when I try to click a row or change the filter expression.

Is there a way I can load from the database when filter expression is changing without getting an error message from the gird?

Thank you
Peter
Telerik team
 answered on 20 May 2013
3 answers
133 views
Hi everybody,

I have a RadGrid which has checkbox as GridTemplateColumn. When the checkbox is clicked, I want to add a new item to a RadListbox.
I use the click event and add RadListBoxItems to my RadListbox, but the new item is not rendered in browser. I can also add a new item using a button's click event. After button click event, I can see both newly added items. So the problem is, a new item cannot be seen after checkbox click event.

Am I doing something wrong or it this a bug?
(Telerik assembly version: v4.0.30319)

Below is the related code:

<telerik:RadGrid ID="rgStudentList" runat="server" AllowFilteringByColumn="True"
                                AllowSorting="True" CellSpacing="0" Enabled="false" GridLines="None" GroupingSettings-CaseSensitive="false"
                                OnItemCommand="rgOgrenciListesi_ItemCommand" OnNeedDataSource="rgOgrenciListesi_NeedDataSource"
                                SortingSettings-SortToolTip="">
                                <GroupingSettings CaseSensitive="False" />
                                <SortingSettings SortToolTip="" />
                                <MasterTableView AllowPaging="true" AutoGenerateColumns="False" DataKeyNames="No"
                                    PageSize="10">
                                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                        <HeaderStyle Width="20px" />
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridBoundColumn AllowFiltering="true" AllowSorting="true" AutoPostBackOnFilter="true"
                                            CurrentFilterFunction="StartsWith" DataField="TCKimlikNo" FilterControlAltText="Filter column1 column"                                  
                                            >
                                        </telerik:GridBoundColumn>
 
<telerik:GridTemplateColumn HeaderText="Seç" AllowFiltering="false">
                                                <ItemTemplate>                                                   
                                                    <asp:CheckBox ID="chkI" runat="server" AutoPostBack="true"  OnCheckedChanged="chkI_CheckedChanged" />
                                                </ItemTemplate>
                                                <HeaderTemplate>
                                                    <asp:CheckBox ID="chkH" runat="server" AutoPostBack="true"
                                                        OnCheckedChanged="chkH_CheckedChanged" />
                                                </HeaderTemplate>
                                            </telerik:GridTemplateColumn>
                                    </Columns>
                                    <EditFormSettings>
                                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                        </EditColumn>
                                    </EditFormSettings>
                                    <NoRecordsTemplate>
                                        <center>
                                            blah blah</center>
                                    </NoRecordsTemplate>
                                </MasterTableView>
                                <FilterMenu EnableImageSprites="true">
                                </FilterMenu>
                                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                </HeaderContextMenu>
                            </telerik:RadGrid>

protected void chkI_CheckedChanged(object sender, EventArgs e)
        {
 
            CheckBox chkI = sender as CheckBox;
 
            String student= ((GridDataItem)chkI.Parent.Parent).Cells[3].Text;
            
            rlbOgrNo.Items.Add(new RadListBoxItem(student, student));           
 
        }

After the checkbox checked changed event, I cannot see the new item added. (Not rendered.)

I tried many things but no hope. Any help is appreciated.
Thanks.
Bahadır


Kostadin
Telerik team
 answered on 20 May 2013
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?