Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
295 views
Prior to the release of 2008Q2, I used a CSS class to position controls on my page whose appearance was managed using FormDecorator.

At its simplest I might have something like this...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestBed.WebForm1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" > 
  <head runat="server"> 
    <title>Untitled Page</title> 
  </head> 
  <body> 
    <form id="form1" runat="server"> 
      <telerik:RadScriptManager ID="ScriptManager" runat="server"> 
      </telerik:RadScriptManager>       
      <telerik:RadFormDecorator ID="FormDecorator" runat="server" Skin="Hay" DecoratedControls="All" /> 
      <asp:Button ID="btnSearch" runat="server" Text="Search" /> 
    </form> 
  </body> 
</html> 
 
 
with this in the code behind...
    protected override void OnInit(EventArgs e) { 
      base.OnInit(e); 
      btnSearch.CssClass = "myClass"; 
    } 
"myClass" might set margins, padding, etc to finely adjust the button on the page.

Since implementing Q2 I can't do this as assigning anything to the CssClass property of my control stops FormDecorator from doing anything with it.

Try it yourself, comment out the assignment to the CssClass property and run the page; you'll have a green button with white text (bog standard 'Hay' skin fare). Recompile the page with the assignment to the button's CssClass and you'll get a standard windows button. This is a major step backwards.

--
Stuart




Tervel
Telerik team
 answered on 19 Feb 2009
5 answers
134 views
I want to open a radwindow from another radwindow. The problem occurs in this situation:

I hava maximized the former radwindow, after that, i try to open another radwindow, despite i set the modal to true, and active to true, the second form opens behind the first one. I don't know why this happens. The problem doesn't occurs if the form is restored.

thanks,

Leonardo.
Fiko
Telerik team
 answered on 19 Feb 2009
1 answer
63 views
Why is the server still down?  When I post the content below the server bombs :

Title: Custom <CommandTemplate> when using a custom <ItemTemplate>
Message : 

Using an ajaxified RadGrid (latest and greatest version) I have implemented a custom Command Template to facilitate add, edit, insert, update, and cancel actions based on demos here.

This works fine but does not work for editing or deleting if you are using a custom <ItemTemplate>.  I say this because as such it relies on a "selected" row or item in the grid. I have the code to select the row on the client side but cannot figure out how to display or enact the selected row when using the custom <ItemTemplate>.

So the questions are:

  1. How does the selected row strategy work with custom ItemTemplates?
  2. As an alternative, are there any examples of showing two small columns side by side with icons only for the AutoGenerated "Edit" and "Delete" columns instead of the default?

Thank you

Yavor
Telerik team
 answered on 19 Feb 2009
3 answers
92 views
Hi folks,

Running Visual Studio 2008, no SP1
I have the odd problem when I add contextmenu items through the gui, they show, and are editable, but do not save.
No changes get made to the declarative code when I hit OK, yet clicking the ellipsis for ContextMenus shows what I previously added.
If I save,close the file and re-open it, all contextMenus are gone.

I have rebooted ( quite a few times, disabling AV for one boot just to be sure ) , installed VS 2008 SP1, and same problem, with a small difference.
First try after SP1, It did insert 
                            <ContextMenus>
                                <telerik:RadTreeViewContextMenu ID="RadTreeVdsfgiewContextMenu1" runat="server">
                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                    <Items>
                                        <telerik:RadMenuItem runat="server" Text="test">
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" Text="test2">
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadTreeViewContextMenu>
                            </ContextMenus>

But then immediately stopped functioning.  These original changes to this one tree do persist through opens and closes, but any additional menus or menuitems do NOT show or persist.
I had added this new bare treeview for testing.



At times, I can click on the code for a treeview, and the ContextMenus property is not even visible in the properties window.
(I have a screenshot of this.  Please let me know where to send/upload it.)

This behavior occurs whether the file is checked out or not.
This behavior is reproducible only in Web Content Forms.

This is a fresh install of VS2008, no addins, on a fresh OS install.

Is there a documented procedure for re-installing telerik asp.net ajax tools?
This is driving me nuts.
Any ideas?
Atanas Korchev
Telerik team
 answered on 19 Feb 2009
1 answer
265 views
their is common javascript function for two radcombo for  onclient selectedindex changed , i have to find
which radcombo box fire onclient selected index and on client selected index function i get combobox id that fire function
thank u
Paul
Telerik team
 answered on 19 Feb 2009
1 answer
84 views
We recently changed our intranet's menu from the asp:menu to the radmenu.  It works great on IE7, firefox, chrome.

Unfortunately we still have quite a few PC's running Windows 2000 and IE 6, the menu works sometimes.  Are there any known issues with the menu and IE6?

It's being populated with an asp:SiteMapDataSource if that makes a difference.

Thanks
Paul
Telerik team
 answered on 19 Feb 2009
1 answer
64 views
Hello,

Can RadEditor lite version (available for free download from community section) be used as part of normal website development? i.e on non SharePoint Sites?

Regards,
Mahesh
Rumen
Telerik team
 answered on 19 Feb 2009
1 answer
105 views
Hello, we have code written using   
RadControl for ASP.NET 2008 Q1 and want to migrate to   
RadControls for ASPNET AJAX Q3 2008...is there a conversion utility or will we   
have to rewrite code to account for any changes 
method and property names. Can anyone shed light on what challenges   
will we encounter?


Thanks Kerry
Paul
Telerik team
 answered on 19 Feb 2009
3 answers
192 views
Hi.

We're looking at using the RadEditor for an intranet site. The main pain point with the original SharePoint controls seems to be the image manager; the users really like the image manager that comes with the RadEditor.
But I cannot find if it is possible to use the image manager for image placeholders, such as rollup images? If not, the users will have to use two completely different dialog sets for working with images. This could be a show stopper.

I'm sorry if this is covered extensively in the documentation, but I have not been able to find anything. And sentences like "insert images in the editor's content area" seem to indicate that it is not possible.

Regards,

Reidar Husmo
Stanimir
Telerik team
 answered on 19 Feb 2009
1 answer
102 views
Hello,

I just began using RadGrid and love it.  I have the basic functionality down, but what to go a bit further.  What I have now is just a basic Grid with CardView.  What I want is to have a separate dropdown that when a user selection an item it will update my Grid.  Here is my code I have now (mostly taken from the Telerik site).  Any help would help me get started. 
<!-- content start --> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
            Width="75px" Transparency="5"> 
            <img style="margin-top: 150px;" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading4.gif") %>' /> 
        </telerik:RadAjaxLoadingPanel> 
        <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" 
            AllowPaging="True" runat="server" Skin="Forest" GridLines="None"  
    Height="1700px"> 
<HeaderContextMenu Skin="Vista"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <MasterTableView TableLayout="Fixed"> 
                <ItemTemplate> 
                    <asp:Image ID="Image1" Style="float: left;" Width="200px" Height="150px" ImageUrl='<%# "~/App_Data/inventory_images/" + Eval("picture") %>' 
                        runat="server" AlternateText="Stock Image" /> 
                    <div> 
                        <span style="font-weight: bold; font-family: Arial Black;">Price:</span> 
                        <%# Eval("price")%> 
                        <br /> 
                        <br /> 
                        <span style="font-weight: bold;">Name:</span> 
                        <%# Eval("pdname")%> 
                        <br /> 
                        <br /> 
                        <span style="font-weight: bold;">Description:</span> 
                        <%# Eval("description")%> 
                        <br /> 
                        <br /> 
                    </div> 
                </ItemTemplate> 
                <%--<GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="Quantity" /> 
                        </SelectFields> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="Quantity" /> 
                        </GroupByFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions>--%> 
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="true"> 
                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            </ClientSettings> 
 
<FilterMenu Skin="Vista"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"  
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"  
    SelectCommand="SELECT [pdname], [description], [picture], [price] FROM [master]"> 
</asp:SqlDataSource> 
        <!-- content end --> 
Princy
Top achievements
Rank 2
 answered on 19 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?