Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
197 views
How do I prevent the overflow of the chart legend (see attached image)? It seems that if there is too many items, the HTMLChart just keeps rendering all the legend items instead of keeping all legend items within the plot area and maybe adding a 'More items...' legend at the end.

Is there a way to suppress the overflow of the items? Thanks!



PJ
Danail Vasilev
Telerik team
 answered on 13 Feb 2013
1 answer
84 views
When i click on Days .. Its showing without header
i want disable this functionality ....so how can i do this....
please suggest me

thanks ,

Nakki Soni
Princy
Top achievements
Rank 2
 answered on 13 Feb 2013
1 answer
394 views
Hi

just check the below code

  <telerik:GridEditCommandColumn UniqueName="EditColumn" HeaderText="Edieeeee">
                    </telerik:GridEditCommandColumn>

i have added the above code inside the colums to edit the data and  after clicking the edit  link ,all the cell values i wanted bind into external textbox in my form but problem is when i m clicking on this ,in grid itself inline editing option is coming , i wanted to hide that properties because after binding into text box i wanted update the data in "update" button  click of the form not inside grid..

Thanks
San
Shinu
Top achievements
Rank 2
 answered on 13 Feb 2013
1 answer
413 views
I have a master table with its own server-side datasource. If you click edit the edit form comes up and display some textboxes to edit and a grid that has an edit column on it. the master also has a couple buttons for Update/Insert and a Cancel. These buttons work for the master datasource only. So the user clicks on the edit column for the row in the child grid and it has a edit form too that opens. This has its own Update/Insert and Cancel buttons. I need to disable the Master grid image buttons for Update/insert and Delete, then re-enable when the user is out of Edit mode on the child grid.


<%-- Edit form master event template --%>
                                    <EditFormSettings EditFormType="Template">
                                        <FormTemplate>
                                            <div class="data-container">
                                                <fieldset id="FieldsetEventMasterEdit" runat="server" style="width: 97%; height: 110px; margin: 5px; background-color: #FFFFCC;" class="ui-widget ui-widget-content ui-corner-all">
                                                    <div style="float: left;">
                                                        <asp:Label runat="server"><b>* denotes required field</b></asp:Label>
                                                    </div>
                                                    <div style="float: right;">
                                                        <asp:Table runat="server">
                                                            <asp:TableRow>
                                                                <asp:TableCell>
                                                                    <telerik:RadButton ID="RadButtonUpdateMasterEvent" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' UseSubmitBehavior="false" />
                                                                </asp:TableCell>
                                                                <asp:TableCell>
                                                                    <telerik:RadButton ID="RadButtonCancelMasterEvent" Text="Close" runat="server" CausesValidation="False" CommandName="Cancel" UseSubmitBehavior="false" />
                                                                </asp:TableCell></asp:TableRow>
                                                        </asp:Table>


the two buttons "RadButtonUpdate..." and "RadButtonCancel..." should be disabled when...

<telerik:RadGrid runat="server" ID="RadGridEventSub" Height="100%" Width="100%" AllowMultiRowSelection="false" AutoGenerateColumns="false" OnItemCommand="RadGridEventSub_ItemCommand" OnDeleteCommand="RadGridEventSub_DeleteCommand" OnInsertCommand="RadGridEventSub_InsertCommand" OnUpdateCommand="RadGridEventSub_UpdateCommand" OnNeedDataSource="RadGridEventSub_NeedDataSource"
                                                    OnItemDataBound="RadGridEventSub_ItemDataBound" OnItemCreated="RadGridEventSub_ItemCreated" AllowAutomaticUpdates="false" AllowAutomaticInserts="false">
                                                    <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="There are no events to display..." AllowAutomaticInserts="false" AllowAutomaticUpdates="false" DataKeyNames="EventMasterId, EventSubId, GroupId, Name, EventTypeId" EditMode="EditForms">
                                                        <CommandItemSettings AddNewRecordText="Add a new sub event" ShowRefreshButton="false" />
                                                        <Columns>
                                                            <%-- this is the Pencil column for editing the record --%>
                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
                                                                <ItemStyle CssClass="GridRecordButton" />
                                                            </telerik:GridEditCommandColumn>

...the grid (RadGridEventSub) above goes into edit mode. RadGridEventSub is part of the FormTemplate.

Can you explain how to achieve this? thanks!
Shinu
Top achievements
Rank 2
 answered on 13 Feb 2013
1 answer
127 views
Hello,

Does anyone know the CSS styling that will set the dynamic height so all of the weekdays to be displayed within the RadSchedulerRecurrenceEditor container?



The following is the CSS applied to the RadSchedulerRecurrenceEditor control displayed above:
  <style type="text/css">
    .RecurrenceEditor .rsAdvPatternPanel
     {  
       position:absolute;
       margin-left: 0px !important;
       padding: 0px 0px 0px 0px;
       width: 120px !important;
     }
   
    .rsAdvWeekly_WeekDays li
     {
          margin-left: 0px;
          width: auto !important;
     }
    </style>

Thank You!
Princy
Top achievements
Rank 2
 answered on 13 Feb 2013
1 answer
178 views
Hi,

I am binding RadGrid using generic list. I want to display minimum 10 rows of grid even if rows are there or not in database.I have also tried after inserting blank rows in list, it display blank records but also some buttons which i have put there. Please give some suitable idea.

Thanks in advance
Fenil
Princy
Top achievements
Rank 2
 answered on 13 Feb 2013
1 answer
74 views
I am trying to programmatically set the RadGrid's ItemDataBound property.

In my code I am creating an instance of the RadGrid

Dim RadGrid1 As RadGrid = New RadGrid()

 

 

RadGrid1.ID = "RadGrid1"

But when I go to set the Property of my RadGrid1, ItemDataBound is not a property.

Am I doing something wrong?

 

Shinu
Top achievements
Rank 2
 answered on 13 Feb 2013
16 answers
1.5K+ views

I want simple thing to do when I click to sort any column:

first click DESC , second ASC, third NONE 

not like now- first click ASC , second DESC, third NONE 

It will be very easy but the e.NewSortOrder is read-only :(

Robert
Top achievements
Rank 1
 answered on 12 Feb 2013
7 answers
229 views
Hello,

I have a RadGrid in my User Control component. The display, paging etc everything works fine w/o AJAX. But the moment I introduce AJAX using RadAjaxManager (I haven't tried any other AJAX method!), the grid will still page/sort but I can't do a rowselect after the page/sort. The code is shown below.

Thanks.

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="LoadingPanel2">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radGridProviders">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGridProviders"
                        LoadingPanelID="LoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Skin="Office2007">
    </telerik:RadAjaxLoadingPanel>

        <telerik:RadGrid ID="radGridProviders" runat="server" AllowMultiRowSelection="false" AutoGenerateColumns="False"
                GridLines="Horizontal" EnableViewState="true"
                AllowSorting="true" PageSize="10" AllowPaging="True"
                Width="750"
                OnNeedDataSource="radGridProviders_NeedDataSource" Skin="Vista">
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
            <MasterTableView ClientDataKeyNames="ProvKey,FirstName,LastName" AllowNaturalSort="false">
                    <SortExpressions>
                        <telerik:GridSortExpression FieldName="FirstName" SortOrder="Ascending" />
                    </SortExpressions>
                    <RowIndicatorColumn Visible="False">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="Name" UniqueName="FullName" DataField="FullName"
                            SortExpression="FullName" HeaderButtonType="TextButton">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true">
                    <Selecting AllowRowSelect="true" />
                    <ClientEvents OnRowSelected="radGrid_RowSelected"/>
                </ClientSettings>
        </telerik:RadGrid>

        protected void Page_Load(object sender, EventArgs e)
        {
            #region InitScripts
            string script = "function InitScripts() {" + Environment.NewLine
                + "  if (!isInit) { " + Environment.NewLine
                + "modalFormUrl = \"" + SPContext.Current.Web.Url + "/Pages/modal_providerdetail.aspx?\";" + Environment.NewLine
                + string.Format("radGridProviders = $find('{0}');", radGridProviders.ClientID) + Environment.NewLine
                + "isInit = true;"
                + "}}";
            ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "InitScripts", script, true);
            #endregion

        }

        protected void radGridProviders_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            if (Session[SESSION_ProvidersList] != null)
                radGridProviders.DataSource = Session[SESSION_ProvidersList];
            else
                SetDataSource();
        }

        public void SetDataSource()
        {
            Logger.LogDebug("[ResultsUC::SetDataSource()] start", LogCategory.SHREDD);

            List<Provider> providers = null;

           ProviderClient webServiceClient = null;
            try
            {
                webServiceClient = GatewayService.getInstance();
                providers = webServiceClient.GetResultsWithLimit(MAX_PROVIDERS, SearchCriteriaConsumer);
            }
            finally
            {
                if (webServiceClient != null)GatewayService.closeInstance(webServiceClient);
            }

            if (providers != null)
            {
                radGridProviders.DataSource = providers;
                Session[SESSION_ProvidersList] = providers;// Set to Session
            }

        }



Maria Ilieva
Telerik team
 answered on 12 Feb 2013
4 answers
531 views
Hello guys, i have been having a problem with this and been on the forums all day to no avail. i have a multivew with a tree that is a usercontrol and a RadAjaxManager for link buttons. When i set enable ajax to false, it works so i know its an ajax issue. I am not using any update panels. i keep getting this error when i click my link button:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ContentPlaceHolderMain_ctl00_ContentPlaceHolderMain_ParentTreePanelPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

Snippet:

<%@ Page Language="C#" MasterPageFile="~/DEP-tree.master" AutoEventWireup="True"<br>
   Inherits="DEPSite.Management.EntityDefinitions" Title="DEP Element Definitions"<
br> 
  CodeBehind="EntityDefinitions.aspx.cs" %><
br>
<
br><%@ Register Src="~/UserControls/EntityTreeUC.ascx" TagName="EntityTree" TagPrefix="uc2" %>
<
br><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
br><br><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderSide1" runat="Server"><br>
    <
uc2:EntityTree ID="EntitySelectionTree" runat="server" ShowEntityStatus="true" SelectFirstNode="true" />
<
br></asp:Content><br><br> <telerik:RadAjaxManager runat="server" ID="AjaxManager" EnableAJAX="true">
<
br>        <AjaxSettings><br><telerik:AjaxSetting AjaxControlID="ParentLinkButton">
<
br>                <UpdatedControls>
<
br>                    <telerik:AjaxUpdatedControl ControlID="ParentTree"/>
<
br>                </UpdatedControls><br>            </telerik:AjaxSetting>
<
br></AjaxSettings><br>
<
br><asp:View ID="ParentView" runat="server">
<
br>                <uc2:EntityTree ID="ParentTree" runat="server" ShowEntityStatus="true" SelectFirstNode="true" />
<
br>        </asp:View><br>
^format code block added a bunch of 'br's

i have also tried putting the tree in a panel as suggested on some forum post already
Thanks 
Maria Ilieva
Telerik team
 answered on 12 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?