Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
389 views

     Hi, I am having strange behavior. When grid displays edit popup window and only one numeric field is changed Ok button closes the window. But if before changing the value of the box, I change different item from dropdown, database is updated but window stays open.

<telerik:RadGrid runat="server" ID="gvBudget" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" Skin="Office2010Blue" AutoGenerateColumns="False"
    OnNeedDataSource="gvBudget_NeedDataSource" OnInsertCommand="gvBudget_InsertCommand" OnUpdateCommand="gvBudget_UpdateCommand" OnDeleteCommand="gvBudget_DeleteCommand"
    OnItemDataBound="gvBudget_ItemDataBound" OnItemCommand="gvBudget_ItemCommand" OnBatchEditCommand="gvBudget_BatchEditCommand"
    ShowGroupPanel="true" ShowFooter="true">
    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
    <GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" />
    <ClientSettings ReorderColumnsOnClient="true" AllowDragToGroup="true">
        <%--<Scrolling AllowScroll="True" UseStaticHeaders="True" />--%>
    </ClientSettings>
    <MasterTableView DataKeyNames="ItemID" ShowFooter="false" CommandItemDisplay="Top" PageSize="20" EditMode="PopUp"
        ItemStyle-HorizontalAlign="Left" AlternatingItemStyle-HorizontalAlign="Left" AllowFilteringByColumn="true"
        AllowMultiColumnSorting="true" ShowGroupFooter="true">
        <AlternatingItemStyle BackColor="AliceBlue" BorderColor="Red" />
        <BatchEditingSettings EditType="Cell"></BatchEditingSettings>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldAlias="TeamName" FieldName="TeamName" />
                    <telerik:GridGroupByField FieldAlias="BudgetType" FieldName="BudgetTypeDescription" />
                    <telerik:GridGroupByField FieldAlias="YearlyBudget" FieldName="YearlyBudget" Aggregate="Sum" HeaderText="Total" FormatString="{0:C}" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="TeamName" FieldAlias="teamName" />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="editColumn"  ItemStyle-Width="30px">
                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
            </telerik:GridEditCommandColumn>
<EditFormSettings InsertCaption="Add New Budget Item" CaptionFormatString="Edit Budget Item: {0}" CaptionDataField="BudgetTypeDescription" EditFormType="WebUserControl">
    <PopUpSettings Modal="True"></PopUpSettings>
</EditFormSettings>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CCBABudgetCtrlUpdate.ascx.cs" Inherits="ReportDriver.Controls.CCBABudgetCtrlUpdate" %>
<div class="grid_4 alpha">
    <div class="dockContent">
        <label>Year:</label>
        <div class="float-right">
            <telerik:RadNumericTextBox runat="server" ID="txtCurYear" ReadOnly="True" Enabled="False" Width="100px">
                <NumberFormat GroupSeparator="" DecimalDigits="0" />
            </telerik:RadNumericTextBox>
        </div>
    </div>
    <div class="dockContent">
        <label>Provider:</label>
        <div class="float-right">
            <telerik:RadComboBox runat="server" ID="ddlDoctor" DataSource='<%#CrossCurrent.Components.DoctorController.GetAllDoctors() %>' DataValueField="DoctorID" DataTextField="FullName" SelectedValue='<%# Bind("DoctorID")%>'
                EmptyMessage="Select Doctor/Facility" MarkFirstMatch="True" Width="280px" AutoPostBack="True" OnSelectedIndexChanged="ddlDoctor_OnSelectedIndexChanged">                                       
            </telerik:RadComboBox>
        </div>
    </div>
    <div class="dockContent">
        <label>Budget Type:</label>
        <div class="float-right">
            <telerik:RadComboBox runat="server" ID="ddlBudgetType" DataValueField="BudgetTypeID" DataTextField="BudgetTypeDescription"
                EmptyMessage="Select Budget Type" MarkFirstMatch="True" Width="280px" AutoPostBack="True" OnSelectedIndexChanged="ddlBudgetType_OnSelectedIndexChanged">                                       
            </telerik:RadComboBox>
        </div>
    </div>
    <div class="dockContent">
        <label>Annual Budget:</label>
        <div class="float-right">
            <telerik:RadNumericTextBox runat="server" ID="txtBudgetAmount" MinValue="0" EmptyMessage="Budget" Type="Currency" DbValue='<%# Bind("YearlyBudget")%>'></telerik:RadNumericTextBox>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="float-right">
    <asp:Button runat="server" ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CssClass="button"/>
    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" CssClass="button"></asp:Button>
</div>

 

 

Eyup
Telerik team
 answered on 29 Jan 2019
5 answers
328 views

     Hi,

I need to disable the tooltip on an appointment when I drop a  row on top of it.  Currently, if I do this, and remain atop the appointment (my cursor that is), it will bring up the tooltip and cancel my row drop if the background execution takes too long (which it does because this is a very busy calendar).

 

It would also help to disable it temporarily after a context menu selection.

 

Any help would be appreciated.

 

Thanks!

Attila Antal
Telerik team
 answered on 28 Jan 2019
0 answers
125 views

I am working with RadPanelBar and RadPanelItem objects.   On page load, I have anIEnumberable of a type that I iterate over to build my 1st and 2nd layers of PanelItems.   Iam using the ItemTemplate features and setting those to each object.   The issue I'm encountering is that when I postback to update some information,  The ItemTemplate for each PanelItem and it's children is null.   Below is a snippet of how i'm building out the PanelBar.  I need to be able to access the user controls inside each template to update some data.

 

foreach (var integration in integrations)
           {
               RadPanelItem integrationGroup = new RadPanelItem(integration.Name);
               integrationGroup.ItemTemplate = new IntegrationItemEnabledTemplate(integration.UniqueId, integration.IsActive);
               foreach (var param in integration.Parameters)
               {
                   if (!string.IsNullOrEmpty(param.Key))
                   {
                       var pnlItem = new RadPanelItem();
                        
                       pnlItem.ItemTemplate = new IntegrationItemTemplate(param.Integration, param.Key, param.Value);
                       integrationGroup.Items.Add(pnlItem);
                   }
               }
 
               integrationsPanel.Items.Add(integrationGroup);
 
           }
           integrationsPanel.DataBind();
Taylor
Top achievements
Rank 1
 asked on 28 Jan 2019
4 answers
266 views
Dears,

I am having problem with Legend when I have item (series) more than 5 then it will repeat from the first color. I am using the multi series which generated dynamically so I can't set the specific color each series.

Example:
series1: Red
series2: Blue
......
series6: Red


it makes the chart messy and can't be understood as the color are same.

I appreciate your comments and advice. Thanks.
Marin Bratanov
Telerik team
 answered on 28 Jan 2019
9 answers
146 views

Hi,

 

On the demo page: https://demos.telerik.com/aspnet-ajax/editor/examples/toolbarmode/defaultcs.aspx

 

The PageTop toolbar sticks under the top part of the page.

In Chrome, FF and Edge all the same.

 

Marc

Rumen
Telerik team
 answered on 28 Jan 2019
3 answers
514 views
Hello Telerik,

I use the RadEditor control to display html pages with embedded images, like so:

<img width="436" height="184" alt="" id="Bild_x0020_1" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg" />

This works fine as long as the image is small (enough). When it gets larger, the data seems to be truncated, so that the image becomes invalid. Note that the resulting html code is not truncated, only the value of the source attribute is truncated.

Is there any limitation in the size of embedded images? How can I override any limitation?

Thanks for your appreciated help!
Roland
Rumen
Telerik team
 answered on 28 Jan 2019
2 answers
206 views

I have a web form master page that has a menu across the top, then I have 3 RAD Dropdown lists.

When I access the menu, the menu items are displaying BEHIND the drop down lists, not in front of them.

I am using "default" code from Microsoft for the contents of the master page, and I added the telerik items to that page.

Here is a snippet of the code:

I know it probably has something to do with CSS, but I am not sure where to look?

<form id="form1" runat="server">
    <div class="page">
        <div class="header">
            <div class="title">
                <h1>GLISA Score Entry and Report Processor</h1>
            </div>
            <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                </asp:Menu>
            </div>
        </div>
        <div class="main">
            <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
            </telerik:RadStyleSheetManager>
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
                    <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>
            <telerik:RadDropDownList
                AppendDataBoundItems="true"
                AutoPostBack="true"
                Width="300px"
                ID="ddl_Season"
                runat="server"
                SelectedText="Please select Season"
                DataSourceID="dsSeasonName"
                DataTextField="SeasonName"
                DataValueField="ID">

 

Marin Bratanov
Telerik team
 answered on 25 Jan 2019
1 answer
146 views

hi

i want to create a webform for entering orders in raddataform as master table and order details in radgrid as detail table

please help me

Marin Bratanov
Telerik team
 answered on 25 Jan 2019
5 answers
1.7K+ views
hi all

I have  problem using RadComboBox, I want set item  when my page is load, dependig current month.

I tried use selected item but this action give me a mistake, don't let me add a string.

How can i do this?

help me please 

thank you for you attention 

Good day.
Marin Bratanov
Telerik team
 answered on 25 Jan 2019
3 answers
103 views

I am using WebUserControl as the editform of radgrid and setting usercontrol fields with e.Item.DataItem values in ItemDataBound. If the validation fails on performInsert or Update ItemCommand, I am setting e.Cancel to true. Since, I am setting the DataItem values in the ItemDataBound, I am loosing my changes in the user control. Is there any way, I can check validation failure in the ItemDataBound before setting the values of usercontrol?

Eyup
Telerik team
 answered on 25 Jan 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?