Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
When I change the check state of a node on the client side, the check state persists through a postback.

But, when I change a node's .value on the client side, it does not persist through the postback.  

Is this just a no-no, or am I missing something?
Thomas
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
166 views
How do I disable the "page size:" option but still keep the paging in rad grid.


Daniel
Telerik team
 answered on 17 Jun 2010
1 answer
236 views
Hi,

I am exporting grid to excel, word and pdf. If the grid is not in update panel. It works fine. But if the grid is in update panel its not working. Any ideas? here is my code.
<div style="padding: 1px"> 
        <telerik:RadScriptManager ID="sm" runat="server"> 
        </telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="gvTrackers"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="gvTrackers" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> 
        </telerik:RadAjaxLoadingPanel> 
        <telerik:RadGrid ID="gvTrackers" Skin="Forest" EnableEmbeddedSkins="true" Height="600px" 
            runat="server" AllowPaging="true" AllowSorting="True" GridLines="None" AutoGenerateColumns="true" 
            EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowMultiRowSelection="false" 
            AllowFilteringByColumn="True" OnNeedDataSource="gvTrackers_NeedDataSource" OnItemCreated="gvTrackers_ItemCreated" 
            OnItemCommand="gvTrackers_ItemCommand" OnColumnCreated="gvTrackers_ColumnCreated" OnPreRender="gvTrackers_PreRender"> 
            <HeaderStyle Height="25px" Font-Size="8pt" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" 
                BorderColor="Azure" BorderWidth="1px" /> 
            <ExportSettings IgnorePaging="true" ExportOnlyData="true"> 
                <Pdf AllowModify="false" AllowPrinting="true" PageWidth="16in" /> 
            </ExportSettings> 
            <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top"> 
                <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" 
                    ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" /> 
            </MasterTableView> 
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"> 
                <Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" /> 
                <Selecting AllowRowSelect="True"></Selecting> 
                <Resizing AllowRowResize="true" AllowColumnResize="True" EnableRealTimeResize="True" 
                    ResizeGridOnColumnResize="False"></Resizing> 
            </ClientSettings> 
            <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Font-Bold="true" AlwaysVisible="true" /> 
        </telerik:RadGrid> 
    </div> 


Daniel
Telerik team
 answered on 17 Jun 2010
1 answer
126 views
Hi All,
I'm trying to add the ajax roundedcornersextension to a button on my page.
In the same page i'm using a rad treeview, so i added a rad scriptmanager for the treeview.
This work okay, but when i added the ajax extension, it complains about the scriptmanager.
Is it not possible to use both ajax component and rad:treeview on the same page ?
If I remove all Rad and use a ajax:scriptmanager the roundedcorneres will work fine but then the treeview complains.
Any ideears ??
Code:

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

</telerik:RadScriptManager>

 

 

 

<asp:Button ID="rbut" runat="server" Text="Test" />

 

 

<cc1:RoundedCornersExtender ID="juk" runat="server" Corners="All" Radius="15" TargetControlID="rbut"></cc1:RoundedCornersExtender>

 

<

 

div align="center" style="padding-top: 7px">

 

 

<asp:Button ID="Button1Reset" runat="server" Text="" Visible="false" BackColor="#efebef" />

 

</

 

div>

 

<

 

div style="padding-top: 7px; padding-left: 15px">

 

 

<asp:DropDownList ID="DropDownList1" runat="server" Width="178px" AutoPostBack="True"

 

 

OnSelectedIndexChanged="indexChange_drop">

 

 

</asp:DropDownList>

 

</

 

div>

 

<

 

telerik:RadTreeView ID="RadTreeView1" runat="server" EnableViewState="false">

 

</

 

telerik:RadTreeView>

 



The error:

Detaljer om fejl på websiden

Brugeragent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Tidsstempling: Thu, 17 Jun 2010 08:04:32 UTC

Meddelelse: Der er foretaget et uventet kald til en metode eller en egenskab.
Linje: 4344
Tegn: 1
Kode: 0
URI: http://localhost:1410/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=_ctl0_newTree_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ada-DK%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3bTelerik.Web.UI%2c+Version%3d2010.1.309.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3ada-DK%3af0c88abc-2e1c-4c5d-ab67-8dc4eeeb22f8%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ae524c98b%3bAjaxControlToolkit%2c+Version%3d1.0.20229.20821%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3ada-DK%3ac5c982cc-4942-4683-9b48-c2c58277700f%3ab14bb7d5%3a13f47f54%3a3c55b13e

Regards

Torben 

Seth
Top achievements
Rank 1
 answered on 17 Jun 2010
6 answers
530 views
I found many threads on merging, but couldn't seem to find one related to what I'm trying to do.

Seems like this code should work, but it doesn't.  What am I doing wrong?

    Protected Sub rgCart_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgCart.ItemCreated 
        If e.Item.ItemType = GridItemType.Footer Then 
            e.Item.Cells.RemoveAt(0) 
            e.Item.Cells(2).ColumnSpan = 2 
        End If 
    End Sub 

The cell removes correctly, but the merge does not occur.  Does this work in a RadGrid?


Matt
Top achievements
Rank 1
 answered on 17 Jun 2010
2 answers
96 views
What is the best way to reposition the RadEditor on the page in SharePoint?

When it is in use, the toolbar covers up the SharePoint editing toolbar.

Is there some way to tell the RadEditor to drop down a few pixels when in use?
If so, what is the best way to handle this?

I have attached 2 screenshot:
"While-In-Editor" shows the RadEditor toolbar overlapping the SharePoint toolbar
"Clicked-Out-Of-Editor" shows the SharePoint toolbar visible because I have clicked on another area of the page outside of the RadEditor.

Thanks,
George
George
Top achievements
Rank 1
 answered on 17 Jun 2010
1 answer
234 views
Hi,

I am getting unwanted column width in radgrid header. Please see the attached screenshot. Please let me know how to remove that. If you look at the attached file there is unwanted width before "Market Name" column.

One more thing If you see the attached file there is filter icon in coming under textbox. Is there anyway to set that like textbox and filter icon should come in one line without resizeing the column. If yes how to do that?

Here is my grid code.

<%@ 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></title> 
    <link href="CSS/Forest.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <style type="text/css"> 
        .rgPageFirst, .rgPagePrev, .rgPageNext, .rgPageLast 
        { 
            display: none !important; 
        } 
    </style> 
    <style type="text/css"> 
        div.RemoveBorders .rgHeader, div.RemoveBorders th.rgResizeCol, div.RemoveBorders .rgFilterRow td 
        { 
            border-width: 0 0 1px 0; /*top right bottom left*/ 
        } 
        div.RemoveBorders .rgRow td, div.RemoveBorders .rgAltRow td, div.RemoveBorders .rgEditRow td, div.RemoveBorders .rgFooter td 
        { 
            border-width: 0; 
            padding-left: 1px; /*needed for row hovering and selection*/ 
        } 
        div.RemoveBorders .rgGroupHeader td, div.RemoveBorders .rgFooter td 
        { 
            padding-left: 1px; 
        } 
        div. 
    </style> 
 
    <script type="text/javascript"> 
        function onRequestStart(sender, args) { 
            if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) { 
 
                args.set_enableAjax(false); 
            } 
        } 
    </script> 
 
    <div style="padding: 1px"> 
        <telerik:RadScriptManager ID="sm" runat="server"> 
        </telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="gvTrackers"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="gvTrackers" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> 
        </telerik:RadAjaxLoadingPanel> 
        <telerik:RadGrid ID="gvTrackers" Skin="Forest" EnableEmbeddedSkins="true" Height="600px" 
            runat="server" AllowPaging="true" AllowSorting="True" GridLines="None" AutoGenerateColumns="true" 
            EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowMultiRowSelection="true" 
            AllowFilteringByColumn="True" OnNeedDataSource="gvTrackers_NeedDataSource" OnItemCreated="gvTrackers_ItemCreated" 
            OnItemCommand="gvTrackers_ItemCommand" OnColumnCreated="gvTrackers_ColumnCreated"> 
            <HeaderStyle Height="25px" Width="100px" Font-Size="8pt" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" BorderColor="white" BorderWidth="1px" /> 
            <ExportSettings IgnorePaging="true" ExportOnlyData="true"> 
                <Pdf AllowModify="false" AllowPrinting="true" PageWidth="16in" /> 
            </ExportSettings> 
            <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top"> 
                <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" 
                    ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" /> 
            </MasterTableView> 
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"> 
                <Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" /> 
                <Selecting AllowRowSelect="True"></Selecting> 
                <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" 
                    ResizeGridOnColumnResize="False"></Resizing> 
            </ClientSettings> 
            <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Font-Bold="true" AlwaysVisible="true" /> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
Babu Puchakayala
Top achievements
Rank 1
 answered on 17 Jun 2010
2 answers
159 views
I am running a test where I click a button and the text on that button will change from Button1 to Button2, and it is not working.  I have tried it with the AjaxManager and it does not work.

Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
     Button1.Text = "Button2"
End Sub
Richard M
Top achievements
Rank 1
 answered on 17 Jun 2010
2 answers
176 views
Hi All, I have a horizontal bar chart and need to place text inside the actual bars.  Basically the text is too long to fit on the x axis and I would like to use it inside the bars which it will fit. 

Any idea's?
Thanks in advance!
Brian Azzi
Top achievements
Rank 2
 answered on 17 Jun 2010
4 answers
147 views
Hello Telerik Team,

I am deploying RadGrid to UserControl and resizing the width.
Please help me property format the paging in single line (from serverside). I have instance of Radgrid on ServerSide.
Pls find the attachment.

Thanks
smith spd
Top achievements
Rank 1
 answered on 17 Jun 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?