Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Hi,
I'm using a radcombobox with checkboxes and need to set the initial text to blank.
I have tried different methods but nothing helps.
I have this code:
IList types = EnumHelper.ToLocalizedList(typeof(FaultyType), Resources.resources.ResourceManager); 
            foreach (KeyValuePair<Enum, string> keyval in types) 
            { 
                RadComboBoxItem item = new RadComboBoxItem(); 
                item.Text = keyval.Value; 
                item.Value = keyval.Key.ToString(); 
                radComboBoxFaultyTypes.Items.Add(item); 
                item.DataBind(); 
            } 
 

 <telerik:RadComboBox ID="radComboBoxFaultyTypes" runat="server"  
                            onitemdatabound="radComboBoxFaultyTypes_ItemDataBound"> 
                         <ItemTemplate> 
                            <div onclick="StopPropagation(event); SetFaultyTypesText();" class="combo-item-template"> 
                                <asp:CheckBox runat="server" ID="chk1" /> 
                                <asp:Label runat="server" ID="labelFaultyTypeName" AssociatedControlID="chk1" Text='<%# DataBinder.Eval(Container, "Text") %>' > </asp:Label> 
                            </div> 
                        </ItemTemplate> 
                        </telerik:RadComboBox> 

With this code the first elements text is set as initial text.
I want it to be blank or to be set like: "Please choose".
I could solve it be add a item with blank text and value but in that case I need to hide the checkbox in some way on that item.
 
Regards,
Mattias

Veronica
Telerik team
 answered on 01 Jul 2010
2 answers
156 views
Hello,

I am really really missing the PathSeparator property in the RadTreeView control like there is for WPF or Silverlight (e.g. http://www.telerik.com/help/wpf/radtreeview-feautres-treeviewitem-expanding-and-collapsing-items.html)

I really need to change the default path separator "/" to another character, because some text in the Node.Text property can have a title like "Trash/Waste". When retrieving the full path via the FullPath property I will get a wrong path.

Is there a way around this?

Thanks for any help or suggestions!

Andreas
Veronica
Telerik team
 answered on 01 Jul 2010
6 answers
104 views

We are building an app which basically is converting a paper state form. The form contains around 300 questions. We will be using Telerik controls. We have tight dead line and don’t have much time for experiments.

 

I have created a mockup screen with Form Decorator, RadTabStrip, Radmultipage and Rad controls on the page but am concerned about performance. I haven’t bound the data yet but with just the controls it is taking time to load the page.  The user will be flipping back and forth between the tab items during the data entry. I cann’t go with wizard like functionality. User should have all the data elements available. Any suggestions are greatly appreciated.

Thank you

Vinkel
Top achievements
Rank 1
 answered on 01 Jul 2010
4 answers
162 views
Hi Telerik,
I'm facing serious problems with a RadTextBox in IE7. The setting of the textbox (in a user control) is as follows:

<telerik:RadTextBox ID="RadTextBoxRollingStock" runat="server" TextMode="MultiLine" Rows="1"
                Label="Name the rolling stock" LabelCssClass="label_inputfield" Width="340px"
                Skin="input_calculator" EnableEmbeddedSkins="False">
 </telerik:RadTextBox>

When I try to run the page the VS debugger comes up displaying (reduced to the part where the problem comes up):

Telerik.Web.UI.RadInputControl.prototype={initialize:function(){Telerik.Web.UI.RadInputControl.callBaseMethod(this,"initialize");
this._clientID=this.get_id();
this._wrapperElementID=this.get_id()+"_wrapper";
this._textBoxElement=$get(this.get_id()+"_text");
this._originalTextBoxCssText=this._textBoxElement.style.cssText;
if(this._originalTextBoxCssText.lastIndexOf(";")!=this._originalTextBoxCssText.length-1){this._originalTextBoxCssText+=";";
}if($telerik.isIE7){var b=$get(this._wrapperElementID);
if(b.style.display=="inline-block"){b.style.display="inline";
b.style.zoom=1;
}


I've debugged these lines and got:

this._clientID   "CalculatorWizard_CalcStep3_RadTextBoxRollingStock"   String
this._wrapperElementID   "CalculatorWizard_CalcStep3_RadTextBoxRollingStock_wrapper"   String
this._textBoxElement   {object}   DispHTMLTextAreaElement
this._originalTextBoxCssText   "WIDTH: 100%;"   String
this._originalTextBoxCssText.lastIndexOf(";")   11   Long
this._originalTextBoxCssText.length-1   11   Long
$telerik.isIE7   true   Boolean
$get(this._wrapperElementID)   null   Object
b   null   Object

b.style.display   Objekt erforderlich   Fehler

So the problem comes up when variable b is used - since it's null at that time. In FireFox this problem doesn't come up. I also don't understand why this problem comes up only with this specific RadTextBox since we're using similar ones with same css, skins, etc
and there is no problem.

Any suggestions what could cause this ?

Thanks, Wolfgang

Dimo
Telerik team
 answered on 01 Jul 2010
2 answers
193 views
I need to show a custom error message when the user enters too much text in a RadEditor (the default pop-up is unsuitable).  The solution suggestion by Rumen in this post works marvellously in cases where there is a single RadEditor on a page.  However, my page has three RadEditor controls, and I would like to show a different message for each of them.  Is this possible?

All advice gratefully received,

Ed Graham
Ed
Top achievements
Rank 1
 answered on 01 Jul 2010
2 answers
104 views
Hi.

I have a rotator with one picture showing at a time.
How do I know which item is displayed in the rotator in my saveevent?

The user will not click on the displayed images only on the slideshowbuttons.
When a user clicks on the slideshowbutton I want to save the id for my imagedisplayed.
Is this possible? How?

Thank you.
//Ylva


Fiko
Telerik team
 answered on 01 Jul 2010
3 answers
177 views
I would like to add an InsertFormElement button programmatically.

I have used the following code from http://www.telerik.com/help/aspnet-ajax/addingstandardbuttons.html

Imports Telerik.Web.UI
...
Dim tool As New EditorTool("InsertFormElement")
tool.Type = EditorToolType.Button
RadEditor1.Tools(0).Tools.Add(tool)

tool does not appear to have a Type.  I tried omitting the line:

tool.Type = EditorToolType.Button

and the code still appears to work.  Why is this?

Secondly, RadEditor1.Tools(x).Tools.Add(tool) places the button at the end of tool group x.

Is it possible to position the button in a specific place within the group?

Your help would be much appreciated.

Thanking you in anticipation.

Roger

Rumen
Telerik team
 answered on 01 Jul 2010
1 answer
123 views
I have created my own advanced form "AdvancedForm.ascx"

At the top of my .aspx file i have put:

<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="~/admin/Scheduler/AdvancedForm.ascx" %>

Then further down in the scheduler i have put the following:

    <telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%" Height="100%"
        DataKeyField="ScheduleID" DataSubjectField="Subject" DataStartField="TimeStart"
        DataEndField="TimeEnd" Skin="WebBlue" ShowFooter="False" StartInsertingInAdvancedForm="True"
        OnClientFormCreated="schedulerFormCreated" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
        OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
        SelectedView="MonthView">
        <AdvancedForm Modal="true" enablecustomattributeediting="True" />
        <TimelineView UserSelectable="false" />
        <TimeSlotContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenuSettings EnableDefault="true" />
        <AdvancedInsertTemplate>
            <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm" Mode="Insert" />
        </AdvancedInsertTemplate>
        <AdvancedEditTemplate>
            <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm" Mode="Edit" />
        </AdvancedEditTemplate>
    </telerik:RadScheduler>

Is anyone able to tell me whey when i double click on the scheduler in run-time i.e. add appointment, nothing happens? That is the advanced form control is not popping up.









Veronica
Telerik team
 answered on 01 Jul 2010
1 answer
144 views
Hello,

is it possible to add a context menu on an empty tree view, i.e. a tree view without any nodes?

Thanks,
Roland
Nikolay Tsenkov
Telerik team
 answered on 01 Jul 2010
1 answer
83 views
Hello,
I am novice telerik radControl user. I used telerik radPannelbar . and Its work properly.I used this:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/defaultcs.aspx

I want to hide the menu div (Pannel bar) when I click anywhere on page.
How can I hide the "sliding pannel bar" when I click on the page ?


Nikolay Tsenkov
Telerik team
 answered on 01 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?