Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
595 views
Is there a straight forward way to make the rad-button appear the same for both standard and link buttons? I want the control appearance to remain the same as the standard button even when using link button functionality.
Bozhidar
Telerik team
 answered on 19 Sep 2012
1 answer
205 views
I am trying to hide a menu item from the client, but after the menu is hidden it reappears.
What am I doing wrong?

Here's the sample code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
      function ClientClicked(sender, args) {
        var menu = $find("<%= treeMenu.ClientID %>");
  
        var items = menu.get_items();
        items.getItem(2).hide();
      }
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Simple">
    </telerik:RadSkinManager>
    <div>
<telerik:RadMenu Runat="server" ID="treeMenu">
  <Items>
    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
    </telerik:RadMenuItem>
    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem2">
    </telerik:RadMenuItem>
    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem3">
    </telerik:RadMenuItem>
  </Items>
    </telerik:RadMenu><br />
    </telerik:RadMenu><br />
    <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" 
      OnClientClicked="ClientClicked">
    </telerik:RadButton>
   
    </div>
    </form>
</body>
</html>
Shinu
Top achievements
Rank 2
 answered on 19 Sep 2012
3 answers
128 views
How to cancal file uplading and alert a message if the uploaded file size is zero?
Plamen
Telerik team
 answered on 19 Sep 2012
1 answer
269 views
I have a radgrid with a combobox contained in an edit form template.  On opening up a jquery popup I want to populate that combobox using a radgrid selectedindexchanged event. 

I cannot get a reference to the item being edited, I have managed to use:
GridEditFormItem item = RadGrid2.MasterTableView.GetItems(GridItemType.EditFormItem)[0] as GridEditFormItem;
which gets me the first item being edited if its open, but no other items - I get a null object reference.  I believe its due to the [0] index. 
Is there a way to traverse the radgrid to find which item is currently being edited and access the Edit Form template that way?

I have tried:
foreach(GridDataItem gri in RadGrid2.EditItems)

which was suggested by another user but no good.

thanks.
Morgan
Top achievements
Rank 2
 answered on 19 Sep 2012
3 answers
362 views
Hi I am trying to create an edit form modal popup mode and that the grid remains disabled and gray.
I have the following code and it works fine, just not the grid is disabled me.
any suggestions?

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebAppNueva._Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>




<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"  >


    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" 
            Name="Telerik.Web.UI.Common.Core.js">
        </asp:ScriptReference>
        <asp:ScriptReference Assembly="Telerik.Web.UI" 
            Name="Telerik.Web.UI.Common.jQuery.js">
        </asp:ScriptReference>
        <asp:ScriptReference Assembly="Telerik.Web.UI" 
            Name="Telerik.Web.UI.Common.jQueryInclude.js">
        </asp:ScriptReference>
    </Scripts>
</telerik:RadScriptManager>
       <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">


            <script type="text/javascript">
                function RowDblClick(sender, eventArgs) {
                    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
                }
            </script>


        </telerik:RadCodeBlock>


            <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" />


    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateDeleteColumn="True"
        AutoGenerateEditColumn="True" CellSpacing="0" GridLines="None" 
        ShowStatusBar="true"
        OnNeedDataSource="RadGrid1_NeedDataSource"
        OnUpdateCommand="RadGrid1_UpdateCommand"
        OnInsertCommand="RadGrid1_InsertCommand" 
        OnPreRender="RadGrid1_PreRender"
        OnDeleteCommand="RadGrid1_DeleteCommand" 
        OnItemCreated="RadGrid1_ItemCreated"
        OnEditCommand="RadGrid1_EditCommand" 
        OnItemDataBound="RadGrid1_ItemDataBound"
        >
        
        <MasterTableView EditMode="PopUp" CommandItemDisplay="Top"  DataKeyNames="idPersona">
         <EditFormSettings UserControlName="WebUserControlEditPersona.ascx" 
         EditFormType="WebUserControl">
           </EditFormSettings>
           
        </MasterTableView>
         <ClientSettings>
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>


    </telerik:RadGrid>
   <asp:PlaceHolder ID="PlaceHolder1" runat="server">
    </asp:PlaceHolder>
</asp:Content>

Shinu
Top achievements
Rank 2
 answered on 19 Sep 2012
1 answer
247 views
Hi Support,

How to change Time to hours and minutes dropdownlist?
Please refer picture from attachment.
Thanks.
Princy
Top achievements
Rank 2
 answered on 19 Sep 2012
3 answers
1.2K+ views
Hi,

Is there any setting's option that I can use to keep a radgrid's column header static, so i can view the header at any time when I scroll down.

Thanks,
Chandra
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Sep 2012
1 answer
216 views

I am using RadGrid along with asp.net Detailsview. After selecting an item in RadGrid and clicking a edit button in asp.net detailsview, radgrid's selectedvalue is becoming null.. How to fix this?

in my radgrid I have ClientSettings (AllowScroll, UseStaticHeaders, SaveScrollPosition set to True).

Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Sep 2012
2 answers
130 views
Hi, Im having problem while using the chart image in the webfarm,
We r using the sqlsession state in our webfarm,
I read some threads in this blog , and for webfarm the telerik customer service said:
The solution for web farm environment would be to implement State server or SQL server session state mode or sticky sessions, ensuring that all the request from one user will be handled by the same server.  
[http://www.telerik.com/community/forums/aspnet-ajax/chart/issue-while-loading-radchart-image.aspx ]

Now my question is why only one machine has to serve the requests for the page i have my charts on that when we are storing our session item in the database?
If the picture stored in the session the picture has to be in the sqlserver , and all of the requests are requesting the same session collection.
Im not that expert about how the exactly sql session mode works but im really interested find the solution or atleast know the reason of this situation.

Thank u very much.
Amir Mohammad
Top achievements
Rank 1
 answered on 18 Sep 2012
1 answer
150 views
Hi , 

I  looking the code to add the Confirmation to "Update" ,"Insert","Cancel" Buttons same like the "delete" Button as given below

  protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if ((e.Item is GridDataItem))
            {
                LinkButton button = e.Item.FindControl("AutoGeneratedDeleteButton") as LinkButton;
                button.Attributes["onclick"] = "return confirm('Are you sure you want to delete " +
                "" + "?')";
            }
        }
Expecting your valuable advise

Regards
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?