Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
132 views
I am doing manual editing. How can I close the insert template if I select edit and close the edit template if I select insert?

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 19 May 2013
5 answers
614 views
Hello Everyone!

I have a radtreeview which I want to select/highlight Parent when child node is clicked. It doesn't mater if it's going to be done via client-side (JS and change the parent's css and highlight it?) or server-side (select the parent node which in effect highlights it)

Is it possible?

Thanks!
abdulmajeed
Top achievements
Rank 1
 answered on 19 May 2013
4 answers
567 views
Hi,

Please help me in achieving following

1) I need to automatically sum some columns in the footer row of the exported grid.

2) Need to add some text to the exported report in the form of notes which are passed in.(Excel.pdf,word)

Is there any ways to do these.
(Also, in my radgrid pdf export is not working. The exported pdf contains no data.All the other exporting is perfectly working.)

Thanks in advance
Ajith.
Kvasov Dmitry
Top achievements
Rank 1
 answered on 19 May 2013
1 answer
306 views
I am having a problem with my RadDatePicker on my page.  Seems to be consistent across all browsers.  The problem is this; it works fine the first time.  However, if i immediately select the RadDatePicker again, without refreshing the page or navigating to another page and then coming back, it disables all of the previous dates from the date i had picked.  So for example, if I pick todays date in the date picker 5/17/2013..... and then run my report ( my page runs a report) and then i immediately go and try to pick another date off of the date picker, all of the dates previous to 5/17/2013 are grayed out and disabled.   Please any help would be great!!!  This is frustrating.  I have not set the minimum date, seems to me it should work "out of the box" so to speak.  I have attached some screen shots too.. also below is my code.... thanks

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
    
        <br />
        <br />
    
    </div>
    <table style="width:100%;">
        <tr>
            <td colspan="3" style="text-align: center">
    
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                </telerik:RadWindowManager>
    
        <asp:Label ID="lblHeader" runat="server" 
            Text="Show all batches from given recipe by Make Date" 
                    style="text-align: center; font-size: xx-large"></asp:Label>
    
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: center">
    
                   <uc1:hdrMenu ID="hdrMenu1" runat="server" />

            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="77px" 
                    style="margin-top: 0px" width="568px">
                    <telerik:RadComboBox ID="cbxRecipe" Runat="server" DataSourceID="dsRecipe" 
                   Height="600px" Width="250px" EnableLoadOnDemand="true"
                            DropDownWidth="249px" 
    EmptyMessage="Select a Recipe" HighlightTemplatedItems="true"
                 EnableAutomaticLoadOnDemand="True" 
                    DataTextField="RecipeCode" DataValueField="RecipeCode" 
                    AutoPostBack="True"  >
                        <HeaderTemplate>
                            <table style="width: 249px" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td style="width: 40px;">
                                        Recipe</td>
                                    <td style="width: 149px;">
                                        Description</td>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <table style="width: 249px" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td style="width: 40px;">
                                        <%# DataBinder.Eval(Container.DataItem, "RecipeCode")%>
                                    </td>
                                    <td style="width: 149px;">
                                        <%# DataBinder.Eval(Container.DataItem, "Recipe")%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:RadComboBox>
                    <asp:SqlDataSource ID="dsRecipe" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:oCon_Riverside %>" SelectCommand="select RecipeCode, Recipe
from [dbo].[CCFIProduction_recipe]
Order by RecipeCode "></asp:SqlDataSource>
                    <br />
                    <br />
                    <asp:Label ID="LblMkDate" runat="server" Text="Select Make Date:"></asp:Label>
                    <telerik:RadDatePicker ID="RadDatePicker1" Runat="server" AutoPostBack="True" 
                        Culture="en-US">
                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
                        </Calendar>
                        <DateInput AutoPostBack="True" DateFormat="M/d/yyyy" 
                            DisplayDateFormat="M/d/yyyy" LabelWidth="40%">
                        </DateInput>
                        <DatePopupButton HoverImageUrl="" ImageUrl="" />
                    </telerik:RadDatePicker>
                </telerik:RadAjaxPanel>

Edward
Top achievements
Rank 1
 answered on 19 May 2013
1 answer
64 views
Hi

I have problem in internet explorer 7
I have  RadAjaxManagerProxy on my page 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSearch">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="updPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

and i have 
<asp:Panel ID="updPanel" runat="server">
......
........
</asp:Panel>

In chrome, firefox, ie9,8 works fine but in ie7 it block internet explorer for few minutes. After that it show results and page is extended after results for some blank empty content.




Edward
Top achievements
Rank 1
 answered on 19 May 2013
1 answer
291 views
I came across an issue with the Dock control.  Our company website has a dock containing 5 Rad Ajax panels.  The Ajax panels contain RadGrids.  If a user clicks on the Expand / Collapse button before the panel has opened or closed, other panels can disappear.  The dock is created Dynamically in a control:

// Create/Configure dock
RadDock radDock = new RadDock();
radDock.DockMode = DockMode.Docked;
radDock.ID = defWidget.DashboardDefinitionWidgetId.ToString();
 
 
radDock.Title = dashboardWidget.WidgetName;
 
// Set various state information
if (firstLoad && !String.IsNullOrEmpty(defWidget.DockState))
{
    DockState state = DockState.Deserialize(defWidget.DockState);
 
    radDock.Closed = state.Closed;
    radDock.Collapsed = state.Collapsed;
}

The panels and grid live in markup:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewResults.ascx.cs" Inherits="Wachter.ETHOS.Web.Search.ViewResults" %>
 
<div style="width:100%;height:26px" id="divSearchHeader" runat="server" visible="false">
</div>
 
<telerik:RadToolTipManager runat="server" ID="rtmManager" Position="Center" RelativeTo="Mouse" Width="600px" Height="225px" ShowEvent="OnMouseOver" HideEvent="LeaveTargetAndToolTip" />
 
<telerik:RadAjaxPanel id="rudPanel" runat="server" EnableAJAX="True" LoadingPanelID="rlPanel">
    <telerik:RadGrid ID="rgrdResults" runat="server" />
</telerik:RadAjaxPanel>
 
<telerik:RadAjaxLoadingPanel runat="server" ID="rlPanel" />
 
<asp:textBox ID="txtSQL" runat="server" Rows="10" Columns="100" TextMode="MultiLine" Visible="false"/>
 
<asp:textBox ID="txtViewCustomizer" runat="server" Rows="5" Columns="100" TextMode="MultiLine" Visible="false"/>


I've searched the forums and found similar issues, but I have not been able to identify this particular problem.  

Does anyone have any suggestions?
Slav
Telerik team
 answered on 18 May 2013
1 answer
105 views

Hello,

I am using Telerik Version: 2009.3.1208.35 and .net framework 2.0. Please note that we cannot upgrade to 3.5 or 4.0 .net framework at this moment.

The RadEditor’s features Font color, size, Type, Background color and Find/Replace are not working in chrome. These are working in IE and Firefox.

I saw on telerik site, the latest version Q1 2013 is supporting the features in Chrome. Is this known issue with the version I am using? Can you please suggest me that what should I do in order to fix the issue without impacting much to my site and altering .net version?

 

Thanks

Stanimir
Telerik team
 answered on 18 May 2013
7 answers
255 views
Hi All,

I am working on upgrading from older version of RadEditor and have a problem with image uploading.

The way it used to work in old version, once the image is uploaded, it would always end up first on the top of the file list and editors would have no problem selecting it.
In new version of RadEditor, images are sorted by file name by default and also paged. Problem is, with many images in the folder, the uploaded image would end up on some random page in file list and is hard to find.

Is there any way around it?

Thanks,

Andrey
Stanimir
Telerik team
 answered on 18 May 2013
1 answer
124 views
Hi there,

Very simple example of wht I'm trying to create here. It's so simple I can't figure out what am I doing wrong.
This is based on this example from Telerik. Basically I just wanna edit some text in my dynamically created dock.

Here's the code of the usercontrol I'm loading within my dock :
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="widgetTemplate.ascx.cs" Inherits="NRP.Monitors.usercontrols.widgetTemplate" %>
<div class="widget">
    <table>
        <tr>
            <td rowspan="2" class="wicon">
                <asp:Image ID="Wicon" runat="server" />
            </td>
            <td class="wtitle">
                <asp:TextBox ID="TbTitle" runat="server" Visible="false"></asp:TextBox>
                <asp:LinkButton ID="LbWtitle" runat="server" OnClick="LbWtitle_Click"></asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td class="wsubtitle">
                <asp:TextBox ID="TbSubtitle" runat="server" Visible="false"></asp:TextBox>
                <asp:LinkButton ID="LbSubtitle" runat="server" OnClick="LbSubtitle_Click"></asp:LinkButton>
            </td>
        </tr>
    </table>
</div>

And the code behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace NRP.Monitors.usercontrols
{
    public partial class widgetTemplate : System.Web.UI.UserControl
    {
        public string Wtitle;
        public string WSubtitle;
        public string IconUrl;
 
        public widgetTemplate()
        {
        }
        public widgetTemplate(string wtitle, string wsubtitle, string iconUrl)
        {
            Wtitle = wtitle;
            WSubtitle = wsubtitle;
            IconUrl = "../" + iconUrl;
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            LbWtitle.Text = Wtitle;
            LbSubtitle.Text = WSubtitle;
            Wicon.ImageUrl = IconUrl;
        }
 
        protected void LbWtitle_Click(object sender, EventArgs e)
        {
            if (TbTitle.Visible)
            {
                LbWtitle.Text = TbTitle.Text;
                Wtitle = TbTitle.Text;
                TbTitle.Visible = false;
                ScriptManager.RegisterStartupScript(this, this.GetType(), "enabledrag", "enableDockDrag(true);", true);
            }
            else
            {
                TbTitle.Text = LbWtitle.Text;
                LbWtitle.Text = "OK";
                TbTitle.Visible = true;
                ScriptManager.RegisterStartupScript(this, this.GetType(), "enabledrag", "enableDockDrag(false);", true);
            }
        }
 
        protected void LbSubtitle_Click(object sender, EventArgs e)
        {
            if (TbSubtitle.Visible)
            {
                LbSubtitle.Text = TbSubtitle.Text;
                WSubtitle = TbSubtitle.Text;
                TbSubtitle.Visible = false;
            }
            else
            {
                TbSubtitle.Text = LbSubtitle.Text;
                LbSubtitle.Text = "OK";
                TbSubtitle.Visible = true;
            }
        }
    }

Everything works perfectly except that I can't change the content of the textboxes. Their value are set properly, but it looks like I can't access them to edit the text.
As I said this is not rocket science but I can't figure out what's going on here.

Anyone have some idea ?

Thanks

Slav
Telerik team
 answered on 18 May 2013
17 answers
1.2K+ views
Is there a way to suppress the validation fired by RadDatePicker when an invalid date(13/13/2001) is entered and display the error message from a custom validator? Basically, I just want to show the error message from custom validator and don't want to show the information icon that RadDatePicker usually shows when an invalid date is entered.
Martin
Telerik team
 answered on 18 May 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?