Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
On my page I have a TextBox and a submit button. They are both inside an UpdatePanel. This section is for a search. The user will type in their request and click the submit button. If there are too many results, I would like the menu to appear next to the TextBox (right or left of it) with a selection of items they can choose from to narrow their search.

Any ideas how I can implement this? I have been trying for a few hours to wrap my head around it, but I can't seem to get it.

Daniel
Daniel
Top achievements
Rank 1
 answered on 12 Jun 2009
1 answer
66 views
There is a slight quirk that occurs when I save a custom skin in an assembly.  I modified the radgrid Sunset skin to change some fonts and padding and added it to an assebly.  Using the StyleSheetManager, the grid renders exactly as expected EXCEPT that the header does not show the normal sunset gradient, but rather a solid color from that gradient.  Nothing in the style sheet pertaining to the background image was modified.

I tried consuming this stylesheet by adding to my theme folder and also by creating a folder in the project root and dynamically creating a link on page init to register the stylesheet.  Both of these methods produced the desired results using the exact same stylesheet.  Why the different result for the assembly?

Rich
Dimo
Telerik team
 answered on 12 Jun 2009
2 answers
208 views
I am building a page that will dynamically load user controls based on database input.

As an experiment, I put the RadGrid drag and drop example into a user control and placed it on a test page. The page and demo operated as expected.

I then replaced the user control element with a placeholder element and in the Page_Load of the test page, dynamically loaded the web user control with the RadGrid drag and drop demo on it.

The drag and drop seems to work ONCE. But then the controls basically freeze after this. The only thing that works seems to be the pager on the pending orders grid. All of the drag and drop is gone. Is there a way to make this work?

Greg

Test.aspx
<%@ Page Language="c#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<%@ Reference Control="~/Advanced Library.ascx" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
</head> 
<body class="BODY"
    <form id="mainForm" method="post" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager>  
    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> 
    </form> 
</body> 
</html> 
 

Test.aspx.cs
using System; 
using System.Collections.Generic; 
using System.Configuration; 
using System.Data; 
using System.Data.Common; 
using System.Data.SqlClient; 
using System.Web.UI; 
 
public partial class Test : System.Web.UI.Page 
        protected void Page_Load(object sender, System.EventArgs e) 
        { 
            CMS_UserControls_Advanced_Library ctrl = (CMS_UserControls_Advanced_Library)Page.LoadControl("~/Advanced Library.ascx"); 
            PlaceHolder1.Controls.Add(ctrl); 
    } 
 
 

Advanced Library.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Advanced Library.ascx.cs" 
    Inherits="CMS_UserControls_Advanced_Library" ClassName="CMS_UserControls_Advanced_Library" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
<telerik:RadAjaxManager runat="server" ID="radAjax" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="grdPendingOrders"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="grdPendingOrders" /> 
                <telerik:AjaxUpdatedControl ControlID="grdShippedOrders" /> 
                <telerik:AjaxUpdatedControl ControlID="msg" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="grdShippedOrders"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="grdShippedOrders" /> 
                <telerik:AjaxUpdatedControl ControlID="msg" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadScriptBlock runat="server" ID="scriptBlock"
 
    <script type="text/javascript"
                <!-- 
        function onRowDropping(sender, args) { 
            if (sender.get_id() == "<%=grdPendingOrders.ClientID %>") { 
                var node = args.get_destinationHtmlElement(); 
                if (!isChildOf('<%=grdShippedOrders.ClientID %>', node) && !isChildOf('<%=grdPendingOrders.ClientID %>', node)) { 
                    args.set_cancel(true); 
                } 
            } 
            else { 
                var node = args.get_destinationHtmlElement(); 
                if (!isChildOf('trashCan', node)) { 
                    args.set_cancel(true); 
                } 
                else { 
                    if (confirm("Are you sure you want to delete this order?")) 
                        args.set_destinationHtmlElement($get('trashCan')); 
                    else 
                        args.set_cancel(true); 
                } 
            } 
        } 
 
        function isChildOf(parentId, element) { 
            while (element) { 
                if (element.id && element.id.indexOf(parentId) > -1) { 
                    return true; 
                } 
                elementelement = element.parentNode; 
            } 
            return false; 
        } 
                    --> 
    </script> 
 
</telerik:RadScriptBlock> 
<div class="exWrap"
    <div style="float: left; padding: 0 6px 0 10px"
        <h2 style="color: #9c3608"
            Pending Orders</h2> 
        <telerik:RadGrid runat="server" ID="grdPendingOrders" OnNeedDataSource="grdPendingOrders_NeedDataSource" 
            AllowPaging="True" Width="350px" OnRowDrop="grdPendingOrders_RowDrop" AllowMultiRowSelection="true" 
            PageSize="30"
            <MasterTableView DataKeyNames="OrderId" Width="95%" TableLayout="Fixed"
            </MasterTableView> 
            <ClientSettings AllowRowsDragDrop="True"
                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
                <ClientEvents OnRowDropping="onRowDropping" /> 
                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            </ClientSettings> 
            <PagerStyle Mode="NextPrevAndNumeric" /> 
        </telerik:RadGrid> 
    </div> 
    <div style="float: right; padding: 0 10px 0 6px"
        <h2 style="color: #3c8b04"
            Shipped Orders</h2> 
        <telerik:RadGrid runat="server" AllowPaging="True" ID="grdShippedOrders" OnNeedDataSource="grdShippedOrders_NeedDataSource" 
            Width="350px" OnRowDrop="grdShippedOrders_RowDrop" AllowMultiRowSelection="true"
            <MasterTableView DataKeyNames="OrderId" Width="100%"
                <NoRecordsTemplate> 
                    <div style="height: 30px; cursor: pointer;"
                        No items to view</div> 
                </NoRecordsTemplate> 
            </MasterTableView> 
            <ClientSettings AllowRowsDragDrop="True"
                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
                <ClientEvents OnRowDropping="onRowDropping" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
    </div> 
    <div style="clear: both;"
        <!-- --> 
    </div> 
    <div class="exFooter"
        <id="trashCan" href="#" onclick="return false;">Recycle Bin</a> 
        <div class="exMessage" runat="server" id="msg" visible="false" enableviewstate="false"
            Order(s) successfully deleted! 
        </div> 
    </div> 
    <br /> 
</div> 
 

Advanced Library.ascx.cs
using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
using System.Collections.Generic; 
using Telerik.Web.UI; 
 
public partial class CMS_UserControls_Advanced_Library : System.Web.UI.UserControl 
    protected IList<Order> PendingOrders 
    { 
        get 
        { 
            try 
            { 
                object obj = Session["PendingOrders"]; 
                if (obj == null
                { 
                    obj = GetOrders(); 
                    if (obj != null
                    { 
                        Session["PendingOrders"] = obj; 
                    } 
                    else 
                    { 
                        obj = new List<Order>(); 
                    } 
                } 
                return (IList<Order>)obj; 
            } 
            catch 
            { 
                Session["PendingOrders"] = null
            } 
            return new List<Order>(); 
        } 
        set { Session["PendingOrders"] = value; } 
    } 
 
    protected IList<Order> ShippedOrders 
    { 
        get 
        { 
            try 
            { 
                object obj = Session["ShippedOrders"]; 
                if (obj == null
                { 
                    Session["ShippedOrders"] = obj = new List<Order>(); 
                } 
                return (IList<Order>)obj; 
            } 
            catch 
            { 
                Session["ShippedOrders"] = null
            } 
            return new List<Order>(); 
        } 
        set { Session["ShippedOrders"] = value; } 
    } 
 
    protected void grdPendingOrders_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        grdPendingOrders.DataSource = PendingOrders; 
    } 
 
    protected IList<Order> GetOrders() 
    { 
        IList<Order> results = new List<Order>(); 
        results.Add(new Order(1, "A""B""C")); 
        results.Add(new Order(2, "A""B""C")); 
        results.Add(new Order(3, "A""B""C")); 
        results.Add(new Order(4, "A""B""C")); 
        results.Add(new Order(5, "A""B""C")); 
        results.Add(new Order(6, "A""B""C")); 
        results.Add(new Order(7, "A""B""C")); 
        results.Add(new Order(8, "A""B""C")); 
        results.Add(new Order(9, "A""B""C")); 
        results.Add(new Order(10, "A""B""C")); 
        results.Add(new Order(11, "A""B""C")); 
        return results; 
    } 
 
    protected void grdShippedOrders_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        grdShippedOrders.DataSource = ShippedOrders; 
    } 
 
    protected void grdPendingOrders_RowDrop(object sender, GridDragDropEventArgs e) 
    { 
        if (string.IsNullOrEmpty(e.HtmlElement)) 
        { 
            if (e.DraggedItems[0].OwnerGridID == grdPendingOrders.ClientID) 
            { 
                // items are drag from pending to shipped grid 
                if ((e.DestDataItem == null && ShippedOrders.Count == 0) || 
                    e.DestDataItem != null && e.DestDataItem.OwnerGridID == grdShippedOrders.ClientID) 
                { 
                    IList<Order> shippedOrders = ShippedOrders; 
                    IList<Order> pendingOrders = PendingOrders; 
                    int destinationIndex = -1; 
                    if (e.DestDataItem != null
                    { 
                        Order order = GetOrder(shippedOrders, (int)e.DestDataItem.GetDataKeyValue("OrderId")); 
                        destinationIndex = (order != null) ? shippedOrders.IndexOf(order) : -1; 
                    } 
 
 
                    foreach (GridDataItem draggedItem in e.DraggedItems) 
                    { 
                        Order tmpOrder = GetOrder(pendingOrders, (int)draggedItem.GetDataKeyValue("OrderId")); 
 
                        if (tmpOrder != null
                        { 
                            if (destinationIndex > -1) 
                            { 
                                shippedOrders.Insert(destinationIndex, tmpOrder); 
                            } 
                            else 
                            { 
                                shippedOrders.Add(tmpOrder); 
                            } 
 
                            pendingOrders.Remove(tmpOrder); 
                        } 
                    } 
 
                    ShippedOrders = shippedOrders; 
                    PendingOrders = pendingOrders; 
                    grdPendingOrders.Rebind(); 
                    grdShippedOrders.Rebind(); 
                } 
                else if (e.DestDataItem != null && e.DestDataItem.OwnerGridID == grdPendingOrders.ClientID) 
                { 
                    //reorder items in pending grid 
                    IList<Order> pendingOrders = PendingOrders; 
                    Order order = GetOrder(pendingOrders, (int)e.DestDataItem.GetDataKeyValue("OrderId")); 
                    int destinationIndex = pendingOrders.IndexOf(order); 
 
                    if (e.DropPosition == GridItemDropPosition.Above && e.DestDataItem.ItemIndex > e.DraggedItems[0].ItemIndex) 
                    { 
                        destinationIndex -= 1; 
                    } 
                    if (e.DropPosition == GridItemDropPosition.Below && e.DestDataItem.ItemIndex < e.DraggedItems[0].ItemIndex) 
                    { 
                        destinationIndex += 1; 
                    } 
 
                    List<Order> ordersToMove = new List<Order>(); 
                    foreach (GridDataItem draggedItem in e.DraggedItems) 
                    { 
                        Order tmpOrder = GetOrder(pendingOrders, (int)draggedItem.GetDataKeyValue("OrderId")); 
                        if (tmpOrder != null
                            ordersToMove.Add(tmpOrder); 
                    } 
 
                    foreach (Order orderToMove in ordersToMove) 
                    { 
                        pendingOrders.Remove(orderToMove); 
                        pendingOrders.Insert(destinationIndex, orderToMove); 
                    } 
                    PendingOrders = pendingOrders; 
                    grdPendingOrders.Rebind(); 
                    e.DestDataItem.Selected = true
                } 
            } 
        } 
    } 
 
    private static Order GetOrder(IEnumerable<Order> ordersToSearchIn, int orderId) 
    { 
        foreach (Order order in ordersToSearchIn) 
        { 
            if (order.OrderID == orderId) 
            { 
                return order; 
            } 
        } 
        return null
    } 
 
    protected void grdShippedOrders_RowDrop(object sender, GridDragDropEventArgs e) 
    { 
        if (!string.IsNullOrEmpty(e.HtmlElement) && e.HtmlElement == "trashCan"
        { 
            IList<Order> shippedOrders = ShippedOrders; 
            bool deleted = false
            foreach (GridDataItem draggedItem in e.DraggedItems) 
            { 
                Order tmpOrder = GetOrder(shippedOrders, (int)draggedItem.GetDataKeyValue("OrderId")); 
 
                if (tmpOrder != null
                { 
                    shippedOrders.Remove(tmpOrder); 
                    deleted = true
                } 
            } 
            if (deleted) 
            { 
                msg.Visible = true
            } 
            ShippedOrders = shippedOrders; 
            grdShippedOrders.Rebind(); 
        } 
    } 
    #region Nested type: Order 
 
    protected class Order 
    { 
        private string _companyName; 
        private string _customerId; 
        private int _orderId; 
        private string _date; 
 
        public Order(int orderId, string customerId, string companyName, string requiredDate) 
        { 
            _orderId = orderId; 
            _customerId = customerId; 
            _companyName = companyName; 
            _date = requiredDate; 
        } 
 
        public int OrderID 
        { 
            get { return _orderId; } 
        } 
 
        public string CustomerID 
        { 
            get { return _customerId; } 
        } 
 
        public string Company 
        { 
            get { return _companyName; } 
        } 
 
        public string Date 
        { 
            get { return _date; } 
        } 
    } 
    #endregion 
 
 

Sebastian
Telerik team
 answered on 12 Jun 2009
1 answer
109 views
Hi,
I have a small problem with some styles.
I have this example code:
<style> 
   .edittable tr td {background-color:#ffffff;} 
</style> 
 
<table class="edittable"
   <tr> 
      <td> 
          <telerik:RadGrid Skin="Default" ... ></telerik:RadGrid> 
      </td> 
   </tr> 
</table> 

The problem is that I had the table from beginning with the css-class and now I added the grid into it and the grid inherits the styles from the tables css class so it doesn't look like the Default skin anymore.
Can I make some easy change so the table has its own styles and the grid looks like Default skin?
I have tried but I cant figure it out how to fix it without to much changes!
 
Dimo
Telerik team
 answered on 12 Jun 2009
27 answers
1.4K+ views
I'm trying to use the AjaXManager control on a content page that is linked to a master page however it will not display in the browser - I get the message "Object reference not set to an instance of an object."  The interesting thing is that the same code works in a standard aspx page (ie one that is not linked to a master page).

The aspx code for the master page is:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Master1.master.cs" Inherits="Master1" %> 
<%@ 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 scroll="no">  
    <form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server" FullScreenMode="True" Height="100%" 
            Orientation="Horizontal" Skin="Blue" Width="100%">  
            <telerik:RadPane ID="TopPane" runat="server" EnableEmbeddedSkins="False"   
                Index="0" Scrolling="None" Width="100%" Height="50px">  
            </telerik:RadPane> 
            <telerik:RadPane ID="MainPane" runat="server" EnableEmbeddedSkins="False" Height="" 
                Index="1" Scrolling="None" Width="">  
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
                </asp:ContentPlaceHolder> 
            </telerik:RadPane> 
            <telerik:RadPane ID="FooterPane" runat="server" Height="20px">  
            </telerik:RadPane> 
        </telerik:RadSplitter> 
    </div> 
    </form> 
</body> 
</html> 

The code for the content page is:

<%@ Page Language="C#" MasterPageFile="~/Master1.master" AutoEventWireup="true" CodeFile="page linked to master1.aspx.cs" 
    Inherits="Default2" Title="Untitled Page" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="radT" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">  
    <telerik:RadSplitter ID="RadSplitter2" runat="server" Height="100%" items-capacity="4" 
        Skin="Blue" SplitBarsSize="" Width="100%">  
        <telerik:RadPane ID="NavigationPane" runat="server" EnableEmbeddedSkins="False" Height="" 
            Index="0" Width="20%">  
            <div> 
                <radT:RadTreeView ID="RadTreeView1" runat="server" AutoPostBack="true" OnNodeClick="RadTreeView1_OnNodeClick">  
                    <Nodes> 
                        <radT:RadTreeNode Text="one">  
                        </radT:RadTreeNode> 
                        <radT:RadTreeNode Text="two">  
                        </radT:RadTreeNode> 
                    </Nodes> 
                </radT:RadTreeView> 
            </div> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="RadSplitBar2" runat="server" EnableEmbeddedSkins="False" 
            Index="1" /> 
        <telerik:RadPane ID="ContentPane" runat="server" EnableEmbeddedSkins="False" Height="" 
            Index="2" Scrolling="None" Width="">  
            <div> 
                <div id="divTest" runat="server">  
                </div> 
            </div> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadTreeView1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="divTest" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
</asp:Content> 
 

The code for the page not linked to a master is:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ajaxmanager.aspx.cs" Inherits="ajaxmanager" %> 
 
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %> 
 
<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="radT" %> 
 
<%@ 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">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
    <div> 
        <telerik:radsplitter id="RadSplitter2" runat="server" height="100%" items-capacity="4" 
            skin="Blue" splitbarssize="" width="100%">  
        <telerik:RadPane ID="NavigationPane" runat="server" EnableEmbeddedSkins="False" Height="" 
            Index="0" Width="20%">  
            <div> 
                <radT:RadTreeView ID="RadTreeView1" runat="server" AutoPostBack="true" OnNodeClick="RadTreeView1_OnNodeClick">  
                    <Nodes> 
                        <radT:RadTreeNode Text="one">  
                        </radT:RadTreeNode> 
                        <radT:RadTreeNode Text="two">  
                        </radT:RadTreeNode> 
                    </Nodes> 
                </radT:RadTreeView> 
            </div> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="RadSplitBar2" runat="server" EnableEmbeddedSkins="False" 
            Index="1" /> 
        <telerik:RadPane ID="ContentPane" runat="server" EnableEmbeddedSkins="False" Height="" 
            Index="2" Scrolling="None" Width="">  
            <div> 
                <div id="divTest" runat="server">  
                </div> 
            </div> 
        </telerik:RadPane> 
    </telerik:radsplitter> 
    </div> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadTreeView1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="divTest" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
    </form> 
</body> 
</html> 
 

The RadTreeView1_OnNodeClick event just sets the innerHTML of the testDiv container with the node text.

All this works fine both within the master/content page and standalone page scenarios without the Ajax Manager control. As soon as this is put in I get the error message appear with the master/content page.

Your help is very much appreciated.
sotero
Top achievements
Rank 1
 answered on 12 Jun 2009
3 answers
129 views
Hi,
I upgraded a project I've been working on to the latest version of the Rad Editor 2009-1.311.35.  Since I did that, the image manager upload dialog box is not displaying buttons correctly.  The buttons all begin with the text Common_ rather than the actual button text.  I tried playing with the themes/styles but have been unable to resolve the issue.  It does not seem to be browser dependent.

The problem can be demonstrated here:
http://216.12.180.35/EditorTest.aspx


Open the image manager, and click on the upload button and you'll see it.

Thanks!
T
Terry
Top achievements
Rank 1
 answered on 12 Jun 2009
1 answer
164 views
HI

I am having tree structure view (Table inside another table view), when i am trying to bind more than say 750 rows data it is giving me following error on pop up window.
---------------------------
Stop Running this script
"A Script on this page is causing IE to run slowly. If it continous to run, your computer may become unresponsive"
-------------------------

I googled it and some of the suggestion was to change IE settings, but that is not solution for me as my application is used by thousnds of user who may not like to do so.

Please kindly suggest the best solution for this.

Thanks,
Pradip
Pavlina
Telerik team
 answered on 12 Jun 2009
1 answer
140 views
Hi,
I have a commanditemtemplate which contains 2 raddatepickers.
Is is possible to use the values of these datepickers as parameter values for the datasource of the grid ?

I set the grid datasource within Page_load
        With myDataSource  
            .ConnectionString = dataConnectionString  
            .SelectCommand = "usp_GRID_Maintenance" 
            .SelectCommandType = SqlDataSourceCommandType.StoredProcedure  
            .SelectParameters.Clear()  
            .SelectParameters.Add("Start", System.TypeCode.String, FormatDateTime(dtpLower.SelectedDate, DateFormat.ShortDate))  
            .SelectParameters.Add("End", System.TypeCode.String, FormatDateTime(dtpUpper.SelectedDate, DateFormat.ShortDate))  
            .SelectParameters.Add("option", System.TypeCode.Boolean, optRenewal.Checked)  
        End With 

I realise i can access the controls within the grid_ItemCreated, however this is called after the above code!
The reason for attempting this is so i can remove any controls within the page that relate to the grid, and purely use the grid with its own controls.

Mark
Veli
Telerik team
 answered on 12 Jun 2009
1 answer
75 views
Hi telerik team,

First i would like to congratulate ur good help during my ajax web application.
i have a aplan to change web application project as a product .here my doubt for changing it, do i need to go with any telerik software which is already or i need to look with telerik windows form controls. i check for windows controls demo like asp.net ajax demos but i couldn't find pls forward URL, i should go with that and discuss with mangmnt

Thanks & Regards
G.Sudheer kumar 
Paul
Telerik team
 answered on 12 Jun 2009
1 answer
166 views
I get the feeling that I am missing something, but when I simply put a RadEditor control on a page (along with a ScriptManager), the character and word count only updates VERY sporadically.  I do notice that if I incorporate RadSpell and perform a spell check, the counts update.

Isn't the count supposed to update as you type?  What am I doing wrong here?

Many, many thanks.

Update: Ah, I see in the documentation: "Please note that you have to click with the mouse inside the content area for the statistics module to update, i.e. it will not update on every keystroke for the purposes of performance optimization."

Hmmm...any way to set up a js timer or something to perform an update every few seconds?
Rumen
Telerik team
 answered on 12 Jun 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?