Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
445 views
How to disable scroll bar from the radlistbox ? Thanks
yao wang
Top achievements
Rank 1
 answered on 18 Jun 2010
4 answers
142 views
Hello,
I am having trouble getting the "Client Edit With Batch Server Update" sample, http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx, to adapt to working with dropdowns that are actually templated RadComboboxes.  This is likely because the RadCombobox is rendered in a div and the templates are rendered as a table.

When the RadGrid renders it is displaying the GridTemplateColumn, but none of the values are visible in the templated column.  I can select a value (the text does not display until I select it).

           function ShowColumnEditor() { 
                editedCell = this
 
                //hide text and show column editor in the edited cell 
                var cellText = this.getElementsByTagName("span")[0]; 
                cellText.style.display = "none"
                 
                //display the span which wrapps the hidden checkbox editor 
                if (this.getElementsByTagName("span")[1]) { 
                    this.getElementsByTagName("span")[1].style.display = ""
                } 
 
               //TODO: Ask about this, cannot get to work. 
                 
                if (this.getElementsByTagName("div")[0]) { 
                    this.getElementsByTagName("div")[0].style.display = ""
                } 
 
                var colEditor = this.getElementsByTagName("input")[0] || this.getElementsByTagName("select")[0]; 
                //if the column editor is a form decorated select dropdown, show it instead of the original 
                if (colEditor.className == "rfdRealInput" && colEditor.tagName.toLowerCase() == "select") colEditor = Telerik.Web.UI.RadFormDecorator.getDecoratedElement(colEditor); 
                colEditor.style.display = ""
                colEditor.focus(); 
            } 
            function StoreEditedItemId(editCell) { 
                //get edited row key value and add it to the array which holds them 
                var gridRow = $find(editCell.parentNode.id); 
                var rowKeyValue = gridRow.getDataKeyValue("FieldName"); 
                Array.add(editedItemsIds, rowKeyValue); 
            } 
            function HideEditor(editCell, editorType) { 
                //get reference to the label in the edited cell 
                var lbl = editCell.getElementsByTagName("span")[0]; 
                 
                switch (editorType) { 
                    case "textbox"
                        var txtBox = editCell.getElementsByTagName("input")[0]; 
                        if (lbl.innerHTML != txtBox.value) { 
                            lbl.innerHTML = txtBox.value; 
                            editCell.style.border = "1px dashed"
 
                            StoreEditedItemId(editCell); 
                        } 
                        txtBox.style.display = "none"
                        break
                    case "checkbox"
                        var chkBox = editCell.getElementsByTagName("input")[0]; 
                        if (lbl.innerHTML.toLowerCase() != chkBox.checked.toString()) { 
                            lbl.innerHTML = chkBox.checked; 
                            editedCell.style.border = "1px dashed"
 
                            StoreEditedItemId(editCell); 
                        } 
                        chkBox.style.display = "none"
                        editCell.getElementsByTagName("span")[1].style.display = "none"
                        break
                    case "dropdown"
                        var ddl = editCell.getElementsByTagName("select")[0]; 
                        var selectedValue = ddl.options[ddl.selectedIndex].value; 
                        if (lbl.innerHTML != selectedValue) { 
                            lbl.innerHTML = selectedValue; 
                            editCell.style.border = "1px dashed"
 
                            StoreEditedItemId(editCell); 
                        } 
                        //if the form decorator was enabled, hide the decorated dropdown instead of the original. 
                        if (ddl.className == "rfdRealInput") ddl = Telerik.Web.UI.RadFormDecorator.getDecoratedElement(ddl); 
                        ddl.style.display = "none"
                    case "radcombo"
                        //TODO:  Ask Telerik about this, tried to add this to get the templated RadCombobox value 
                        var ddlWrapper = editCell.getElementsByTagName("div")[0]; 
                        var ddl = editCell.getElementsByTagName("input")[0]; 
                        if (lbl.innerHTML != ddl.value) { 
                            lbl.innerHTML = ddl.value; 
                            editCell.style.border = "1px dashed"
 
                            StoreEditedItemId(editCell); 
                        } 
                        ddlWrapper.style.display = "none"
                    default: 
                        break
                } 
                lbl.style.display = "inline"
            } 


<telerik:GridTemplateColumn UniqueName="AccountID" SortExpression="AccountID" HeaderText="Account" ConvertEmptyStringToNull="true"
                    <ItemTemplate> 
                             <asp:Label ID="lblAccountID" runat="server" Text='<%# Eval("AccountID") %>' /> 
                                                    <telerik:radcombobox id="cboAccountID" runat="server"   
                        Width="305px" Height="200px"  
                        EnableVirtualScrolling="true"  
                        HighlightTemplatedItems="true" 
                        EnableLoadOnDemand="true" 
                        DataValueField="AccountID" 
                        OnItemsRequested="cboAccountID_ItemsRequested" 
                         
                        > 
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                        <HeaderTemplate> 
                                    <table style="width: 275px" cellspacing="0" cellpadding="0"
                                        <tr> 
                                            <td style="width: 20%;"
                                                AccountID</td> 
                                            <td style="width: 80%"
                                                Account Alias</td> 
                                            <td style="width: 20%"
                                                Is Active?</td> 
                                        </tr> 
                                    </table> 
                                </HeaderTemplate> 
                                <ItemTemplate> 
                                    <table style="width: 275px" cellspacing="0" cellpadding="0"
                                        <tr> 
                                            <td style="width: 20%;"
                                                <%#DataBinder.Eval(Container, "Attributes['AccountID']")%> 
                                            </td> 
                                            <td style="width: 80%;"
                                                <%#DataBinder.Eval(Container, "Attributes['AccountAliasc']")%> 
                                            </td> 
                                            <td style="width: 20%;"
                                                <%# DataBinder.Eval(Container, "Attributes['IsActive']")%> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </ItemTemplate> 
                        </telerik:radcombobox> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
jgill
Top achievements
Rank 1
 answered on 18 Jun 2010
4 answers
195 views
Hi. We previously had a page with several rotators on it. They were rotated from ButtonsOver which worked fine. We're now using FromCode as we needed to position the rotator button controls else where. Everything is working okay except when you initially mouseover the button control (first time), there is the normal FrameDuration of 700ms. We want it to start straight away like ButtonsOver without the initial delay. Thanks.

Daniel

JS
 
        function startRotator(clickedButton, rotator, direction) {  
            if (!rotator.autoIntervalID) {  
                refreshButtonsState(clickedButton, rotator);  
                rotator.autoIntervalID = window.setInterval(function() {  
                    rotator.showNext(direction);  
                }, rotator.get_frameDuration());  
            }  
        }  
 
        function stopRotator(clickedButton, rotator) {  
            if (rotator.autoIntervalID) {  
                refreshButtonsState(clickedButton, rotator)  
                window.clearInterval(rotator.autoIntervalID);  
                rotator.autoIntervalID = null;  
            }  
        }  
 
        function showNextItem(clickedButton, rotator, direction) {  
            rotator.showNext(direction);  
            refreshButtonsState(clickedButton, rotator);  
        }  
 
        // Refreshes the Stop and Start buttons  
        function refreshButtonsState(clickedButton, rotator) {  
            var jQueryObject = $telerik.$;  
            var className = jQueryObject(clickedButton).attr("class");  
 
            switch (className) {  
                case "start":  
                    {// Start button is clicked  
 
                        jQueryObject(clickedButton).removeClass();  
                        jQueryObject(clickedButton).addClass("startSelected");  
 
                        // Find the stop button. stopButton is a jQuery object  
                        var stopButton = findSiblingButtonByClassName(clickedButton, "stopSelected");  
 
                        if (stopButton) {// Changes the image of the stop button  
                            stopButton.removeClass();  
                            stopButton.addClass("stop");  
                        }  
 
                    } break;  
                case "stop":  
                    {// Stop button is clicked  
 
                        jQueryObject(clickedButton).removeClass();  
                        jQueryObject(clickedButton).addClass("stopSelected");  
 
                        // Find the start button. startButton is a jQuery object  
                        var startButton = findSiblingButtonByClassName(clickedButton, "startSelected");  
                        if (startButton) {// Changes the image of the start button  
                            startButton.removeClass();  
                            startButton.addClass("start");  
                        }  
 
                    } break;  
            }  
        }  
 
        // Finds a button by its className. Returns a jQuery object  
        function findSiblingButtonByClassName(buttonInstance, className) {  
            var jQuery = $telerik.$;  
            var ulElement = jQuery(buttonInstance).parent().parent(); // get the UL element  
            var allLiElements = jQuery("li", ulElement); // jQuery selector to find all LI elements  
 
            for (var i = 0; i < allLiElements.length; i++) {  
                var currentLi = allLiElements[i];  
                var currentAnchor = jQuery("A:first", currentLi); // Find the Anchor tag  
 
                if (currentAnchor.hasClass(className)) {  
                    return currentAnchor;  
                }  
            }  
        }  
 

ASPX
<telerik:RadRotator ID="rrNewToTheZoo" runat="server" Height="196px" Width="220px" 
                                            Skin="Default" FrameDuration="700" ItemWidth="220px" RotatorType="FromCode" ScrollDirection="Up" 
                                            DataSourceID="sdsNewToTheZoo">  
                                            <ItemTemplate> 
                                                <table border="0" cellpadding="0" cellspacing="0" class="mini_profile_info">  
                                                    <tr> 
                                                        <td> 
                                                            <href="/people/profiles/?empno=<%# DataBinder.Eval(Container.DataItem, "pkEmployeeNumber")%>">  
                                                                <%# DataBinder.Eval(Container.DataItem, "fullname")%></a>  
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td> 
                                                            <%# DataBinder.Eval(Container.DataItem, "positionDescription")%> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="padding-bottom: 10px;">  
                                                            <%# DataBinder.Eval(Container.DataItem, "directorate")%> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                        </telerik:RadRotator> 
 
                                                    <div class="rotator_custom_up">  
                                                        <href="#" onmouseout="stopRotator(this, $find('<%= rrNewToTheZoo.ClientID %>')); return false;" 
                                                            onmouseover="startRotator(this, $find('<%= rrNewToTheZoo.ClientID %>'), Telerik.Web.UI.RotatorScrollDirection.Up); return false;">  
                                                            <img src="/images/rotator_up_out.gif" width="9" height="6" alt="" /></a></div> 
 
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 17 Jun 2010
4 answers
166 views
I have two radgrids on a page and export is not working on the first grid.  In fact, when you click the export button, that grid's header command and filter rows disappear.  Sorting, filtering, and paging work just fine, but not exporting.  Here's my code:

XML Input File:
<?xml version="1.0" encoding="utf-8" ?> 
<years> 
    <year value="2010" name="rat"></year> 
    <year value="2011" name="cat"></year> 
    <year value="2012" name="moose"></year> 
    <year value="2013" name="deer"></year> 
  <year value="2014" name="tiger"></year> 
  <year value="2015" name="dragon"></year> 
  <year value="2016" name="skunk"></year> 
  <year value="2017" name="armadillo"></year> 
  <year value="2018" name="dog"></year> 
  <year value="2019" name="goldfish"></year> 
  <year value="2020" name="koi"></year> 
  <year value="2021" name="catfish"></year> 
  <year value="2022" name="snake"></year> 
  <year value="2023" name="beaver"></year> 
  <year value="2024" name="dalmation"></year> 
  <year value="2025" name="bluebird"></year> 
  <year value="2026" name="boar"></year> 
  <year value="2027" name="toad"></year> 
  <year value="2028" name="mouse"></year> 
  <year value="2029" name="salamander"></year> 
  <year value="2030" name="alligator"></year> 
</years> 

ASPX Code:
    <form id="form1" runat="server">  
        <div> 
            <asp:ScriptManager runat="server" ID="ScriptManager1">  
            </asp:ScriptManager> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="rgGrid">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="rgGrid" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            <table> 
            <tr> 
            <td> 
            <telerik:RadGrid ID="rgGrid" runat="server" OnNeedDataSource="rgGrid_NeedDataSource" Width="45%" 
                OnItemDataBound="rgGrid_ItemDataBound" OnItemCreated="rgGrid_ItemCreated" AutoGenerateColumns="true">  
                <MasterTableView> 
                    <CommandItemTemplate> 
                        <div style="padding: 5px;" align="right">  
                            <strong>Export:&nbsp;&nbsp;</strong><asp:ImageButton ID="ibExportExcel" runat="server" 
                                ImageUrl="~/images/editorIcons/MSExcell_32.png" ToolTip="Export to Excel" OnClick="ibExportExcel_Click" /> 
                            <asp:ImageButton ID="ibExportWord" runat="server" ImageUrl="~/images/editorIcons/MSWord_32.png" ToolTip="Export to Word"   
                                OnClick="ibExportWord_Click" /></div>  
                    </CommandItemTemplate> 
                </MasterTableView> 
            </telerik:RadGrid> 
            </td><td><telerik:RadGrid ID="rgGrid2" runat="server" OnNeedDataSource="rgGrid2_NeedDataSource" Width="45%" 
                OnItemDataBound="rgGrid2_ItemDataBound" OnItemCreated="rgGrid2_ItemCreated" AutoGenerateColumns="true">  
                <MasterTableView> 
                    <CommandItemTemplate> 
                        <div style="padding: 5px;" align="right">  
                            <strong>Export:&nbsp;&nbsp;</strong><asp:ImageButton ID="ibExportExcel2" runat="server" 
                                ImageUrl="~/images/editorIcons/MSExcell_32.png" ToolTip="Export to Excel" OnClick="ibExportExcel2_Click" /> 
                            <asp:ImageButton ID="ibExportWord2" runat="server" ImageUrl="~/images/editorIcons/MSWord_32.png" ToolTip="Export to Word"   
                                OnClick="ibExportWord2_Click" /></div>  
                    </CommandItemTemplate> 
                </MasterTableView> 
            </telerik:RadGrid> 
            </td></tr></table> 
        </div> 
    </form> 
 

.cs Code:
public partial class WebAdmin_TestGrid_Default : System.Web.UI.Page  
{  
    DataSet ds = new DataSet();  
    bool isForExport = false;  
    bool isForExport2 = false;  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
        rgGrid.PageSize = Profile.PreferredGridLines;  
        rgGrid2.PageSize = Profile.PreferredGridLines;  
    }
    #region Grid Logic  
 
    protected void rgGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
        ds = new DataSet();  
        string myXMLFile = Server.MapPath("~/App_Data/YearsTest.xml");  
        System.IO.FileStream fsReadXML = new System.IO.FileStream(myXMLFile, System.IO.FileMode.Open);  
        try 
        {  
            ds.ReadXml(fsReadXML);  
        }  
        catch (Exception ex)  
        {  
            Master.SetMessage(ex.ToString());  
        }  
        finally 
        {  
            fsReadXML.Close();  
        }  
        rgGrid.DataSource = ds;  
    }  
    protected void rgGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        // Hide filter row in export.  
        if (e.Item is GridFilteringItem && isForExport)  
            e.Item.Visible = false;  
 
        // Pull Number of Entries per page in page from web.config appsettings.  
        if (e.Item is GridPagerItem)  
        {  
            GridPagerItem item = e.Item as GridPagerItem;  
            RadComboBox combo = item.FindControl("PageSizeComboBox"as RadComboBox;  
            combo.AutoPostBack = true;  
            combo.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(combo_SelectedIndexChanged);  
        }  
    }  
    protected void rgGrid_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
 
        if (e.Item is GridPagerItem)  
        {  
            GridPagerItem item = e.Item as GridPagerItem;  
 
            RadComboBox combo = item.FindControl("PageSizeComboBox"as RadComboBox;  
            combo.Items.Clear();  
            string strPageSizes = ConfigurationManager.AppSettings["PageSizes"];  
            string[] arrPageSizes = strPageSizes.Split(',');  
            for (int x = 0; x < arrPageSizes.Length; x++)  
            {  
                combo.Items.Add(new RadComboBoxItem(arrPageSizes[x], arrPageSizes[x]));  
            }  
            combo.SelectedValue = rgGrid.MasterTableView.PageSize.ToString();  
        }  
    }  
    void combo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
    {  
        rgGrid.PageSize = int.Parse((o as RadComboBox).SelectedValue);  
        rgGrid.Rebind();  
    }  
    protected void ibExportExcel_Click(object sender, ImageClickEventArgs e)  
    {  
        isForExport = true;  
        rgGrid.MasterTableView.ExportToExcel();  
    }  
    protected void ibExportWord_Click(object sender, ImageClickEventArgs e)  
    {  
        isForExport = true;  
        rgGrid.MasterTableView.ExportToWord();  
    }
    #endregion  
 
    #region Grid2 Logic  
 
    protected void rgGrid2_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
    {  
        ds = new DataSet();  
        string myXMLFile = Server.MapPath("~/App_Data/YearsTest.xml");  
        System.IO.FileStream fsReadXML = new System.IO.FileStream(myXMLFile, System.IO.FileMode.Open);  
        try 
        {  
            ds.ReadXml(fsReadXML);  
        }  
        catch (Exception ex)  
        {  
            Master.SetMessage(ex.ToString());  
        }  
        finally 
        {  
            fsReadXML.Close();  
        }  
        rgGrid2.DataSource = ds;  
    }  
    protected void rgGrid2_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        // Hide filter row in export.  
        if (e.Item is GridFilteringItem && isForExport)  
            e.Item.Visible = false;  
 
        // Pull Number of Entries per page in page from web.config appsettings.  
        if (e.Item is GridPagerItem)  
        {  
            GridPagerItem item = e.Item as GridPagerItem;  
            RadComboBox combo = item.FindControl("PageSizeComboBox"as RadComboBox;  
            combo.AutoPostBack = true;  
            combo.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(combo_SelectedIndexChanged2);  
        }  
    }  
    protected void rgGrid2_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
 
        if (e.Item is GridPagerItem)  
        {  
            GridPagerItem item = e.Item as GridPagerItem;  
 
            RadComboBox combo = item.FindControl("PageSizeComboBox"as RadComboBox;  
            combo.Items.Clear();  
            string strPageSizes = ConfigurationManager.AppSettings["PageSizes"];  
            string[] arrPageSizes = strPageSizes.Split(',');  
            for (int x = 0; x < arrPageSizes.Length; x++)  
            {  
                combo.Items.Add(new RadComboBoxItem(arrPageSizes[x], arrPageSizes[x]));  
            }  
            combo.SelectedValue = rgGrid2.MasterTableView.PageSize.ToString();  
        }  
    }  
    void combo_SelectedIndexChanged2(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
    {  
        rgGrid2.PageSize = int.Parse((o as RadComboBox).SelectedValue);  
        rgGrid2.Rebind();  
    }  
    protected void ibExportExcel2_Click(object sender, ImageClickEventArgs e)  
    {  
        isForExport2 = true;  
        rgGrid2.MasterTableView.ExportToExcel();  
    }  
    protected void ibExportWord2_Click(object sender, ImageClickEventArgs e)  
    {  
        isForExport2 = true;  
        rgGrid2.MasterTableView.ExportToWord();  
    }
    #endregion  
}  
 
Laurie
Top achievements
Rank 2
 answered on 17 Jun 2010
1 answer
94 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
164 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
229 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
121 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
514 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 ObjectByVal 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
92 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?