Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
116 views
Hello again,

Scenario:
A Tree Node selection should set selection of 4 combos, based on Node's value.

Scope:
Node value consists of 4 numbers, delimited by a comma, representing the depth of the Node (similar to Value Path of ASP Tree Node). The 4 values form the item values of the 4 combos; one per item. Splitting Node value upon its selection retrieves the 4 distinct values.

Task:
Set item selection of each of the 4 combos to respective extracted value of the Node. Because item selection was the result of Node value casting, the 4 combos need to be disabled in order to prevent user from altering any selection. this is to distinguish combos behaviour form normal situation where user can select different combinations to create/delete/update a Node at a certain depth.

Code:
 At first, the task was accomplished in code-behind without a problem. Having a combo being disabled didn't prevent item selection. However, when I shifted the task to client-side hoping for a faster performance, it turned to be the opposite!

Due to a bug that was reported earlier, in client-side you cannot select an item if the combo is disabled. Therefore, you need to enable it first, select the item then disable it. Repeat that with the 4 combos. This has to be done with every Node click! Baring in mind that every enable/disable results in a callback request,  observed process turned to be slower than doing the same in code-behind.

Required:
While sticking to client-side, I'm wandering if someone can suggest a way to simulate the process of combo disabling without actually disabling it? Something that prevents user from opening the dropdown while having selected item dimmed (item.disable()?) as well as dimming the combo (alter its style?)...

Thank you in advance.

Regards,
Saed



Simon
Telerik team
 answered on 20 May 2009
0 answers
637 views
Meet the Visual Style Builder
The Telerik Visual Style Builder is a web-based, fully functional CSS customization tool that enables easy, point-and-click customization of skins for the RadControls for ASP.NET AJAX. This tool eliminates the need to understand the front-end HTML and CSS structure of the RadControls to create custom skins. It gives you complete control over the elements of the RadControls’ skin and allows you to create your own custom skin in minutes.

Colorize complete skins in seconds
Telerik RadControls come with a set of ready-to-use skins that offer the look and feel of many well known themes (Office 2007, Vista, Outlook, etc). Sometimes, however, you may need to adjust the color of a skin to make it perfectly fit your site’s design. Traditionally, this customization could cost you significant time, designer involvement and endless drilling into Telerik CSS classes. With Telerik Visual Style Builder, that effort is a thing of the past. You can quickly customize the colors in your skin by simply visually selecting the colors that you need.

Fine tune individual elements to perfection
Through the "fine tune" mode of the Visual Style Builder, you can adjust any element of the RadControls skins to perfectly fit in your web application. Whether you want change the default text fonts and sizes, margins and padding, background, or any style property - it’s all easy and intuitive through the Visual Style Builder graphical interface.

Export your skins
Once you have finalized your custom skin,  the Visual Style Builder automatically packages all required files for your new skin in to a single ZIP archive. Simply add the files from this archive to your project, and your custom skin is ready go. You never have to write CSS or copy and paste large chunks of code.

LAUNCH VISUAL STYLE BUILDER

Read the blogs:
http://blogs.telerik.com/blogs/09-05-19/meet_the_visual_style_builder_ctp.aspx
http://telerikwatch.com/2009/05/telerik-visual-style-builder-for-aspnet.html





Telerik Admin
Top achievements
Rank 1
Iron
 asked on 20 May 2009
1 answer
109 views
I have a menu that makes extensive use of itemtemplates, I need to move this menu to code behind and I cannot for the life of me figure out how to declare ItemTemplates.  My .aspx started out like this:

<telerik:RadMenu ID="RadMenu2" runat="server" Skin="Web20" CssClass="qsfexMenu" Flow="Vertical"  Width="300px">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            <Items>
                <telerik:RadMenuItem Text="Advanced Strategies in HR Management">
                    <Items>
                        <telerik:RadMenuItem CssClass="CourseSection">
                            <ItemTemplate>
                                <div class="qsfexCustomMenuSection">
                                    <h3>Overview</h3>
                                    <p>
                                        The Advanced Strategies in Human Resource Management Program is particularly well
                                        suited for anyone in human resources, human resource management, office administration,
                                        or anyone who is involved in the human resource process and function. ....................

I was looking at this help item but it's not making sense to me, any other examples I can look at?

ms-help://telerik.aspnetajax.radcontrols.2009.Q1/telerik.aspnetajax.radmenu.2009.Q1/templates-runtime.html



Princy
Top achievements
Rank 2
 answered on 20 May 2009
1 answer
121 views
You just need to change the image you are using to present this to say "preview" and not "priview". Other than that the concept is great.
Ivo
Telerik team
 answered on 20 May 2009
1 answer
691 views

I'm trying to use a drop-down list to edit a column in a RadGrid.  The values in the drop-down are pre-determined, as in the example below. When I do this, the DropDownList shows up in the Edit Item template, but when I select a value and save, the value doesn't get saved to the Grid (though a textbox in the same grid does update the grid, so I know everything else is working ok). 

Obviously, the RadGrid doesn't know to bind the selected item from the DropDownList to the "Department" column.  When specifying a DropDownList declaratively like this, how do I bind the selected item to the column in the RadGrid? 

<telerik:GridTemplateColumn UniqueName="Department" HeaderText="Department">  
    <ItemTemplate> 
 <asp:Label ID="DepartmentLabel" runat="server">  
     <%# DataBinder.Eval(Container.DataItem, "Department") %> 
 </asp:Label> 
    </ItemTemplate> 
    <EditItemTemplate> 
 <asp:DropDownList ID="DepartmentDropDown" runat="server">  
     <asp:ListItem Text="Choose a Department" Value="" /> 
     <asp:ListItem Text="100 - Dept A" Value="100 - Dept A" /> 
     <asp:ListItem Text="200 - Dept B" Value="200 - Dept B" /> 
     <asp:ListItem Text="300 - Dept C" Value="300 - Dept C" /> 
     <asp:ListItem Text="400 - Dept D" Value="400 - Dept D" /> 
 </asp:DropDownList> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 
 
 

Regards,
Mike
Shinu
Top achievements
Rank 2
 answered on 20 May 2009
4 answers
1.3K+ views
I am trying to set the selected Date via client-side using the javascript method, but when the even is fired I get the following jscript exception:

Microsoft JScript runtime error: Object doesn't support this property or method

This is my javascript code in the web page:

var raddatepickerDueDate = $find("<%= raddatepickerDueDate.ClientID %>");
raddatepickerDueDate.set_selectedDate(
'2008/1/1'); 

but the debugger stops in this line of the control js code:

var y=""+_43.getFullYear(); 

the next six lines also do the same if you continue executing the code, with

var M=_43.getMonth()+1;
var d=_43.getDate();
var E=_43.getDay();
var H=_43.getHours();
var m=_43.getMinutes();
var s=_43.getSeconds(); 

I checked the type of the _43 variable on the debugger and VS tells me is a String..

Any idea what am I doing wrong?


ashish
Top achievements
Rank 1
 answered on 20 May 2009
1 answer
88 views
Once again hello to expert on telerik

              i would like to ask once again about exporting data from the grid, my  question is how am i going to center the data being exported to excel,csv,and pdf..

sample codes is highly appreciated

thanks to all
Princy
Top achievements
Rank 2
 answered on 20 May 2009
2 answers
134 views
Hi:
Visual Style Builder It is an excellent idea, easy to use, I hope that he includes all the elements of each object so that would be a really solution for the designers. 
But the most important thing is that your include this tool with the components of Ajax in his next release.
Regards.
Ivo
Telerik team
 answered on 20 May 2009
1 answer
115 views
Good day to all,

                        i have a question about formatting the values of a column when exporting to CSV format..coz i have a column which start at zero its look like this 000001 when i  view the exported data its shows only 1 the zero is omitted how can format that column to retain it..and where do i find the csvcellformatting..please help

thanks a lot
Princy
Top achievements
Rank 2
 answered on 20 May 2009
1 answer
147 views

Hi,

        Iam using RadTree view in Radcombo box.  When the node is clicked iam raising server side event RadTreeView1_NodeClick.
In this event iam trying to find the RadTreeView with the combo box. but iam unable to do it .

Can any one pls let how can i do this..

The main thing here is when ever a value is selected in the RaDtreeView of combobox we have to do the post back. For this i need to write the code behind.
I have tried using Radcombox_SelectedIndexChanged, but it is not working.

Pls suggest me how to do it.

Its very urgent..........

<telerik:RadComboBox   
        ID="RadComboBox1" Runat="server" Height="140px" Width="250px" AutoPostBack="true"  > 
           <Items> 
             </items>     
             
            <ItemTemplate> 
              
                <telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeClick="RadTreeView1_NodeClick">  
                    <Nodes> 
                        <telerik:RadTreeNode runat="server" Text="One"></telerik:RadTreeNode> 
                        <telerik:RadTreeNode runat="server" Text="Two"></telerik:RadTreeNode> 
                    </Nodes> 
                </telerik:RadTreeView> 
            </ItemTemplate> 
             
    </telerik:RadComboBox> 
Princy
Top achievements
Rank 2
 answered on 20 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?