Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
Hi,

I add the classes to the Apply CSS Styles through code.

RadEditor1.CssClasses.Clear();
RadEditor1.CssClasses.Add("Human Readable Class 1", ".style2345");
RadEditor1.CssClasses.Add("Human Readable Class 2", ".style2346");
RadEditor1.CssClasses.Add("Human Readable Class 3", ".style2347");
RadEditor1.CssClasses.Add("Human Readable Class 4", ".style2348");

the .style classes are defined in a <style> block in the head section of the side.

When the Editor is loaded and I click on the dropdown it shows a list with nice human readable classnames.
When I select one of them the dropdownlist shows the classname which in my case isn't very user friendly.

Is there a way to show the nice names instead of the classnames?

Regards,
Roel
Dobromir
Telerik team
 answered on 17 Dec 2009
3 answers
201 views
Hi

I have a page that dynamically creates some radio button controls.  I am also trying to get them to work with RadAjax.

I have setup similar buttons in the aspx file and they do as I want.  Please let me know what I have done wrong.

In the code behind the CheckedChanged code does not run, and instead it does a complete page postback.

Aspx code.
<asp:Content ID="Content3" ContentPlaceHolderID="BOMContent" runat="server"
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Continue"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="BOMTable"  
                        LoadingPanelID="BOMTableLoading" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadioButton1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadioButton1" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadioButton2" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadioButton2"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadioButton1" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadioButton2" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="CheckBox1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="CheckBox1" /> 
                    <telerik:AjaxUpdatedControl ControlID="CheckBox2" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="CheckBox2"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="CheckBox1" /> 
                    <telerik:AjaxUpdatedControl ControlID="CheckBox2" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
    <telerik:RadAjaxLoadingPanel ID="BOMPanelLoading" runat="server" /> 
    <telerik:RadAjaxLoadingPanel ID="BOMTableLoading" runat="server" /> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    </telerik:RadWindowManager> 
    <telerik:RadAjaxPanel ID="BOMHeaderPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
        <asp:Label ID="FullNameLabel" runat="server" Text="FullName"></asp:Label> 
        <br /> 
    </telerik:RadAjaxPanel> 
    <telerik:RadAjaxPanel ID="BOMTablePanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" 
        Width="860" BorderStyle="None"
        <asp:Table ID="BOMTable" runat="server" EnableViewState="true"
        </asp:Table> 
        <asp:Button ID="goBackButton" runat="server" Text="Go Back" OnClick="goBackButton_Click"
        </asp:Button> 
        <asp:Button ID="Continue" runat="server" Text="Continue" OnClick="Continue_Click"
        </asp:Button> 
        <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True"  
            oncheckedchanged="RadioButton1_CheckedChanged" GroupName="rbTest" /> 
        <asp:RadioButton ID="RadioButton2" runat="server" GroupName="rbTest"  
            oncheckedchanged="RadioButton1_CheckedChanged" AutoPostBack="True" /> 
        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"  
            oncheckedchanged="CheckBox1_CheckedChanged" /> 
        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True"  
            oncheckedchanged="CheckBox1_CheckedChanged" /></telerik:RadAjaxPanel> 
</asp:Content> 
 

Code snippets from the code behind.
RadioButton radioButton = new RadioButton(); 
radioButton.ID = heading.Replace(" """).Replace("-"""); 
radioButton.GroupName = optionHeading.Replace(" """); 
radioButton.Text = " " + heading; 
radioButton.ToolTip = toolTip; 
radioButton.EnableViewState = true
radioButton.AutoPostBack = true
radioButton.CheckedChanged += new EventHandler(radioButton_CheckedChanged); 
tc.Controls.Add(radioButton); 
AjaxSetting rbSetting = new AjaxSetting(); 
rbSetting.AjaxControlID = radioButton.ID; 
AjaxUpdatedControl rbControl = new AjaxUpdatedControl(); 
rbControl.ControlID = radioButton.ID; 
rbSetting.UpdatedControls.Add(rbControl); 
RadAjaxManagerProxy1.AjaxSettings.Add(rbSetting); 
 
void radioButton_CheckedChanged(object sender, EventArgs e) 
    throw new NotImplementedException(); 
 


Thanks for the help.

Paul
Hus Damen
Top achievements
Rank 1
 answered on 17 Dec 2009
3 answers
144 views
i created simple rad treeview. it doesn't expand. it produce "telerik.web.ui.radtreeview is null not an object " error . how to resolve it. thx in advance.
Yana
Telerik team
 answered on 17 Dec 2009
5 answers
220 views
Starting with an empty VS2008 solution, I attempt to add a new RadControls CSharp Web Application...

The Project Configuration Wizard pops up - I simply hit finish, accepting the default values...

The wizard starts setting up the project, and successfully adds the Telerik.Web.UI reference, and creates some "RadSpell"  TDF files within the App_Data folder...

But then the wizard fails with the following error dialog:

---------------------------
Error!
---------------------------
Compiling transformation: Assuming assembly reference 'Microsoft.VisualStudio.TextTemplating, Version=8.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' matches 'Microsoft.VisualStudio.TextTemplating, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a', you may need to supply runtime policy

-------------

Upon hitting OK, another dialog pops up:

---------------------------
Microsoft Visual Studio
---------------------------
Exception of type 'Telerik.VSX.T4Transform.TemplateException' was thrown.

-----------
And then the rest of the project creation fails. 

Anyone else run into this?

Erjan Gavalji
Telerik team
 answered on 17 Dec 2009
2 answers
129 views
Hi all,
I have a problem using the SetText() and ClearSelection() function over a RadCombobox control, using javascript for client side execution of the code.
Probably the code explains better than words:
My controls are:

                     <td>
                            <telerik:RadComboBox ID="cmbStato" runat="server" EmptyMessage="Insert control form status..."
                                DataTextField="Description" DataValueField="Id" Filter="Contains"
                                AllowCustomText="true" DataSourceID="LinqDataSourceStato">
                            </telerik:RadComboBox>
                        </td>
                        <td width="18" style="padding-left: 5px;">
                            <asp:ImageButton ID="imgClearStatus" runat="server" AlternateText="Clear selection"
                            ImageUrl="_LAYOUTS/IMAGES/Iacopo/eliminaOn.gif" OnClientClick="ImgClearClick(this.getAttribute('id'))"
                             Width="14" Height="14"/>
                        </td>

When I click on the ImageButton I want to clear the content of the ComboBox. Here following my javascript code:

function ImgClearClick(item) {
   var combo = $find("<%= cmbStato.ClientID %>");
   //combo.disable(); //WORKS!!
   combo.SetText(''); //DOESN'T WORK
   combo.ClearSelection(); //DOESN'T WORK
   // var str = combo.GetValue(); //DOESN'T WORK
}

I also put commented tests I have done that were working or not. In particular the disable/enable funcions work properly.

Thanks in advance for any help you can give me.

Regards,

Dario Zanelli
Dario Zanelli
Top achievements
Rank 1
 answered on 17 Dec 2009
0 answers
90 views
How can I get Scheduler to send a notifaction for every appontment in the SQL Database?

I am not an advised user so will need alot of help if this can be done.

Regards

Craig
CLinford
Top achievements
Rank 2
 asked on 17 Dec 2009
1 answer
105 views
All of the items I want to display are full day items.  How can I tell the calendar this during data binding?  I'm looking for some property to bind to that specifys full day but can't find anything.

Thanks
Shinu
Top achievements
Rank 2
 answered on 17 Dec 2009
3 answers
70 views
Hello,

I am having the exact same problem as described below (from 2008). It does not work when I set the EmptyMessage property either through html or code behind. When I remove the Emptymessage, everything works fine.

My version number is 2009.1.318.35


http://www.telerik.com/community/forums/aspnet-ajax/combobox/problem-with-emptymessage-load-on-demand.aspx


Hi

I was playing around with lastest demo and noticed when I use the EmptyMessage property with load on demand from this page http://demos.telerik.com/aspnet/prometheus/ComboBox/Examples/PopulatingWithData/AutoCompleteSql/DefaultCS.aspx the OnItemsRequested doesn't fire until second character is typed in. If you type 1 character hit backspace and type another character it will fire. If I remove EmptyMessage property all works as expected.
Just thought I would let you know. I'm running the trial dll's version 2008.2.723.35.
Of course there could be somthing wrong on my end but all I did was run the sample and added EmptyMessage property.
Veselin Vasilev
Telerik team
 answered on 17 Dec 2009
1 answer
131 views
Hi.

When implementing RadGrid and set the following properties from c# it will almost work correct.
grid.ClientSettings.Scrolling.AllowScroll = true;
grid.ClientSettings.Scrolling.UseStaticHeaders = true;

IE8 (Withoud compability mode) will render a blank spacer between 2 columns. See attached file and the spacer between columns is in the red rectangle. FF, Safari and Chrome will all render the grid correct.

Can I recalculate the column width, with javascript, to avoid the spacer or any other suggestions?

// Patric
Dimo
Telerik team
 answered on 17 Dec 2009
1 answer
102 views
I need to mimic something i see in Excel spreadsheets often, where a group of columns has a single border surrounding the columns. It would be as if you could turn on vertical lines at the column level, and show a vertical line after column 5 and after column 10, thereby highlighting columns 6 through 10.

Or a better way to do it, would be to set styles at the cell level, because I know the next thing I'll be asked to do is to color all cells in that range. So if I could override the skin to set styles on a cell by cell basis, that would be perfect. Then I could set the background color, border-left and border-right as needed. 

I have implemented the CSS overrides of style settings successfully, so I'll pursue this as an approach, but any suggestions would be appreciated.
Dimo
Telerik team
 answered on 17 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?