Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
271 views

Recently I ran into a strange issue where my usercontrols, when there are two or more of them managed by ajaxToolkit:ModalPopupExtender nested in another usercontrol, in RadAjaxPanel would lose input values between postbacks. There is no such issue with any other controls outside or the usercontrol parenting the problematic usercontrols. 

As a revelation of my debugging attempts setting one of the problematic controls to visible false (and set it back to visible when they are supposed to appear in the modal popup) would solve this issue.

Here is my code:

Problematic controls:

01.<asp:Panel ID="FileDefinitionEdit" CssClass="sbpopup" style="display:none"  runat="server"    >
02.                                
03.              
04.                                         <div class="popupholder" style="width:1000px">
05.        <uc3:FileDefinitionEdit ID="FileDefinitionEditAscx" runat="server"  visible="false"  />
06.                                             <div class="popbuttonarea">  <asp:Button ID="Button5"  OnClick="Button5_Click" CssClass="btn btn-primary btn-sm"  runat="server" Text="Insert"  />
07.                        <asp:Button ID="Button6" CssClass="btn btn-primary btn-sm"   OnClick="Button6_Click"   runat="server" Text="Cancel" /></div>
08.                                </div>
09. 
10.                              
11.    </asp:Panel>
12. 
13. <asp:Panel ID="ConnectionStringEdit" CssClass="sbpopup"  style="display:none"  runat="server"   >
14.                                
15.                                     
16.                                         <div class="popupholder" style="width:1000px">
17.        <uc2:ConnectionStringEdit ID="ConnectionStringEditAscx" runat="server"   Visible="false"   />
18.                                             <div class="popbuttonarea">  <asp:Button ID="Button4"  OnClick="Button4_Click" CssClass="btn btn-primary btn-sm"  runat="server" Text="Insert" />
19.                        <asp:Button ID="Button3" CssClass="btn btn-primary btn-sm"   OnClick="Button6_Click"   runat="server" Text="Cancel" /></div>
20.                                </div>
21. 
22.         
23.                                         
24.    </asp:Panel>
25. 
26. 
27.    
28.    <asp:Button ID="MPECTRL_Button"  CssClass="hiddenControl"   runat="server" Text="Button" />
29. 
30.    <ajaxToolkit:ModalPopupExtender  ID="PopupInsert_ModalPopupExtender" runat="server" TargetControlID="MPECTRL_Button"    PopupControlID="ConnectionStringEdit"      /> 
31.                           

 

Parent control of the problematic controls:

1.<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProcessesControl.ascx.cs"   Inherits="BizData.Perspective.DataGovernor.Controls.ProcessesControl" %>
2.<%@ Register Src="ParametersControl.ascx" TagName="ParametersControl" TagPrefix="uc1" %>
3.<%@ Register Src="ConnectionStringEdit.ascx" TagName="ConnectionStringEdit" TagPrefix="uc2" %>
4.<%@ Register Src="FileDefinitionEdit.ascx" TagName="FileDefinitionEdit" TagPrefix="uc3" %>
5. 
6.<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit"  %>
7. 
8....

 

Master Page:

01.//Header
02....
03.<body style="margin: 0px; height: 100%; overflow: hidden;">
04.    <form id="Form1" runat="server">
05.        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
06.        </telerik:RadScriptManager>
07.        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
08.        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel2">
09.            <AjaxSettings>
10.                <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
11.                    <UpdatedControls>
12.                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel2" />
13.                    </UpdatedControls>
14.                </telerik:AjaxSetting>
15.            </AjaxSettings>
16.        </telerik:RadAjaxManager>
17.//Where all contents and controls reside:
18.        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%" Height="100%">
19. <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" BorderStyle="None"
20.                BorderSize="0" LiveResize="true" Width="100%" Height="100%" RegisterWithScriptManager="true"
21.                RenderMode="Lightweight" >
22. <telerik:RadPane ID="rpHeader" runat="server" BorderStyle="None" BorderWidth="0"
23.                    Height="45px" CssClass="visibleOverflow">
24....
25.   </telerik:RadPane>
26.            </telerik:RadSplitter>
27. 
28.        </telerik:RadAjaxPanel>
29. 
30.        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Transparency="10">
31.            <div class="loading" style="text-align: left; padding-top: 45px; padding-left: 98%">
32.                <asp:Image ID="Image2" runat="server" ImageUrl="images/loading1.gif" AlternateText="loading.."
33.                    Width="16px" Height="16px" />
34.            </div>
35.        </telerik:RadAjaxLoadingPanel>
36....
37.//Datasources and footer

My wild guess would be too many usercontrols would exceed the viewstate capacity of some sort, resulting their input values to be truncated between postbacks.

Any ideas?

Vasil
Telerik team
 answered on 09 May 2016
1 answer
201 views

I have a radgrid, whose data i am exporting to excel (xls) format using radGrid.MasterTableView.ExportToExcel(), export is working as expected, but when I open the exported xls file and click "Save as", the "Save as type:" is set to "Web Page(.htm.html)", it is expected to be "Excel Workbook(*.xlsx)". The export code is as below,

radGrid.ExportSettings.FileName = "Export";
radGrid.ExportSettings.HideStructureColumns = true;
radGrid.ExportSettings.OpenInNewWindow = true;
radGrid.ExportSettings.ExportOnlyData = true;
radGrid.MasterTableView.GroupsDefaultExpanded = true;
radGrid.MasterTableView.Caption = string.Empty;
radGrid.MasterTableView.ExportToExcel();

Please suggest.Thank you.
Eyup
Telerik team
 answered on 09 May 2016
1 answer
93 views

Hi,


I'm create diagram with custom shapes from type image.

I have one large custom image shape that look like background image and few small image shapes.

I need to allow click on diagram and drag all my custom shapes together.

I use selectAll() method on document.onmousedown.

The bug: Sometimes when I zoom out and drag right rapidly its dragging only one large custom image shape. 

How to solve it?

Or. Can I combine all custom shapes into one group or container to allow to grad them together?


2. when I use selectAll() method it also allow to resize my shapes. 
   How to cancel resize and allow drag?


Thanks!!

Tanya.

Vessy
Telerik team
 answered on 09 May 2016
1 answer
42 views

Hi Guys

I am planning to start a new web design project in July and take the opportunity to upgrade from Q2 2013 asp.net ajax toolset to Q2 2016 and move from VS 2012 to VS 2015 community edition at the same time. Production website will be running on iis 7.5. I assume this will be fine...?

However, if I have to use this development setup to maintain or extend an existing website with 2013 controls, what problems might I expect, and how should I avoid them!

 

Thanks for any insights on avoiding action that you can give me before I hit a pothole

Clive

 

Marin Bratanov
Telerik team
 answered on 09 May 2016
1 answer
66 views

I'm currently running ASP.Net AJAX RadHtmlChart control v2014.3.1209.45.  There is no setting to change the Legend orientation from horizontal to vertical.  The newer version of this control does have a means to set the orientation to either horizontal or vertical, but I am unable to upgrade the Telerik.Web.UI controls at this time.

Is there any way that I can configure the legend so that they appear vertically?  Any way with some custom css or js?

Thanks,

Scott

Stamo Gochev
Telerik team
 answered on 09 May 2016
1 answer
87 views

We submit a form with a textbox that contains text which is used to search our database for data to put in a RadTreeView control.
The text string retrieved from the database for a node sometimes contains "<B>" for bolding.
When the user then submits another search, the node with the "<B>" is submitted to the server where the standard MS XSS prevention code kicks in and flags the "<B>" as a potential XSS attack. We get a yellow-screen of annoyance. I don't have the time to implement full XSS prevention, so to avoid the yellow-screen exception, I would like to simply prevent the browser from submitting the RadTreeView control when a user submits a search. Is this possible?

Veselin Tsvetanov
Telerik team
 answered on 09 May 2016
8 answers
663 views
Hi,
Hi,
We have implemented template columns in the telerik grid
We are tryig to use export to excel functionallity, which works great, except that it doesn't export data in the template columns. The columns are in the Excel, but they are all empty.

ASPX Code As folows:

<

telerik:GridHyperLinkColumn UniqueName="IH_LOG_NUMBER" DataTextField="IH_LOG_NUMBER"

 

 

HeaderText="<%$ Resources:Multilingual, IHLogNumber %>">

 

 

</telerik:GridHyperLinkColumn>

 

 

<telerik:GridBoundColumn Visible="false" UniqueName="IH_LOG_Exp" DataField="IH_LOG_NUMBER"

 

 

HeaderText="<%$ Resources:Multilingual, IHLogNumber %>">

 

 

</telerik:GridBoundColumn>

 


 

 

 

<telerik:GridTemplateColumn AllowFiltering="False" UniqueName="Comments" HeaderText="<%$ Resources:Multilingual, Comments %>" >

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:DropDownList ID="ddlComments" CssClass="DDDW" AppendDataBoundItems="true" runat="server"

 

 

 

 

 

SelectedValue='<%# Bind("COMMENT_ID") %>' DataSourceID="SqlDataSource1" DataTextField="COMMENT_NAME"

 

 

 

 

 

DataValueField="COMMENT_ID" Style="width: 100px;">

 

 

 

 

 

<asp:ListItem Value="0" Text="Please Select" Selected="True"></asp:ListItem>

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

<HeaderStyle Width="100px" />

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:Multilingual, ApprovedInvalidateDate %>" AllowFiltering="False"

 

 

UniqueName="SAMPLE_VALIDATED_DATE">

 

 

<ItemTemplate>

 

 

<telerik:RadDatePicker ID="rdpSampleDate" DbSelectedDate='<%# Bind("SAMPLE_VALIDATED_DATE", "{0:d}") %>'

 

 

runat="server" >

 

 

 

</telerik:RadDatePicker>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="130px" />

 

 

<ItemStyle Wrap="True" />

 

 

</telerik:GridTemplateColumn>

 

Below are the lines of code that export to Excel:

private

void ConfigureExport()

 

{

rGrdSampleList.MasterTableView.GetColumn(

"ClientSelectColumn").Visible = false;

 

rGrdSampleList.MasterTableView.GetColumn(

"EQUIPMENT_ID").Visible = false;

 

rGrdSampleList.MasterTableView.GetColumn(

"IH_LOG_NUMBER").Visible = false;

 

rGrdSampleList.MasterTableView.GetColumn(

"IH_LOG_Exp").Visible = true;

 

rGrdSampleList.MasterTableView.Columns.FindByUniqueName("Comments").Visible = true; rGrdSampleList.MasterTableView.Columns.FindByUniqueName(

"SAMPLE_VALIDATED_DATE").Visible = true;

 

rGrdSampleList.ExportSettings.ExportOnlyData =

true;

 

rGrdSampleList.ExportSettings.OpenInNewWindow =

true;

 

 

//rGrdSampleList.ExportSettings.IgnorePaging = true;

 

}

 

protected void RadMenu1_ItemClick1(object sender, RadMenuEventArgs e)

 

{

 

try

 

{

ConfigureExport();

 

if (e.Item.Text == Resources.Multilingual.Word)

 

{

 

//MsgBox"1")

 

rGrdSampleList.MasterTableView.ExportToWord();

}

 

else if (e.Item.Text == Resources.Multilingual.Excel)

 

{

 

//MsgBox"2")

 

rGrdSampleList.MasterTableView.ExportToExcel();

}

 

else if (e.Item.Text == Resources.Multilingual.Pdf)

 

{

rGrdSampleList.MasterTableView.ExportToPdf();

}

}

 

catch (Exception exe)

 

{

exe.ToString();

}

}

Is this by design or are there workarounds?
I'm Waiting for reply as soon as possible

Thanks.


Kostadin
Telerik team
 answered on 09 May 2016
2 answers
113 views

Hi guys,

I have a scheduler defined like this:

<telerik:RadScheduler ID="RadScheduler1" runat="server"
            Skin="Windows7"
            AllowDelete="False"
            AllowInsert="False"
            AllowEdit="False"
            SelectedView="MonthView"
            Culture="en-GB"
            LastDayOfWeek="Friday"
            FirstDayOfWeek="Monday"
            ShowFooter="False"
            ShowAllDayRow="false"
                     
            EnableRecurrenceSupport="False"
            AdvancedForm-Enabled="False"
            OverflowBehavior="Expand"
            RowHeight="35px">
 
            <DayView UserSelectable="true" />
 
            <WeekView UserSelectable="true" ShowAllDayInsertArea="False" ShowInsertArea="False" >
            </WeekView>
 
            <MonthView UserSelectable="true" MinimumRowHeight="3" />
 
            <MultiDayView UserSelectable="false" />
            <TimelineView UserSelectable="false" />
            <YearView UserSelectable="false" />
                     
        </telerik:RadScheduler>

I bind the appointents, and with the TimeSlotCreated hook I create special days for the holidays:

Protected Sub RadScheduler1_TimeSlotCreated(sender As Object, e As TimeSlotCreatedEventArgs) Handles RadScheduler1.TimeSlotCreated
 
        Dim añoInicial As Integer = Today.Year
        Dim añoFinal As Integer = Today.Year + 2
 
        Dim dicNonLaborDays As Dictionary(Of Date, String) = clsDataBaseFunctions.GetNonLaborDays(añoInicial, añoFinal)
 
        For Each fiesta In dicNonLaborDays
 
            If DateTime.Compare(e.TimeSlot.Start.[Date], fiesta.Key) = 0 Then
                'Set the CssClass property to visually distinguish your special days.
                e.TimeSlot.CssClass = "Disabled"
 
                Dim lblNombreFiesta As New Label
                lblNombreFiesta.Text = fiesta.Value
 
 
                If Not IsNothing(e.TimeSlot.Control) Then       'Si es Nothing es porque hay un appointment en esa fecha
 
                    Select Case RadScheduler1.SelectedView
                        Case SchedulerViewType.DayView
                            e.TimeSlot.Control.Controls.AddAt(1, lblNombreFiesta)
                        Case SchedulerViewType.WeekView
                            e.TimeSlot.Control.Controls.AddAt(1, lblNombreFiesta)
                        Case SchedulerViewType.MonthView
                            e.TimeSlot.Control.Controls.AddAt(1, lblNombreFiesta)
                    End Select
                End If
            End If
        Next
 
        ' Resaltar la fecha de hoy
        If DateTime.Compare(e.TimeSlot.Start.[Date], DateTime.Now.[Date]) = 0 Then
 
            Select Case RadScheduler1.SelectedView
                Case SchedulerViewType.DayView
                    e.TimeSlot.CssClass = "CurrentDay_WeekView"
                Case SchedulerViewType.WeekView
                    e.TimeSlot.CssClass = "CurrentDay_WeekView"
                Case SchedulerViewType.MonthView
                    e.TimeSlot.CssClass = "CurrentDay_MonthView"
            End Select
 
        End If
 
    End Sub

Everything Works fine. In month view, when there are no holidays in the displayed month, the height of the days boxes is 3 lines (3 divs), as defined with:

<MonthView UserSelectable="true" MinimumRowHeight="3" />

However, if there is any holiday present in the displayed month, the height of all the displayed days boxes changes to 4.

I would like to keep the height of all the days boxes (regardless there are holidays or not present) in 3 lines. Is there any way to achieve this?

Thank you,

Joaquín

Joaquín
Top achievements
Rank 2
 answered on 08 May 2016
2 answers
48 views

My radeditor was working fine until i updated to the latest Telerik Ajax. Now I keep getting: "Object Reference not set to an instance of an object.". This error will go away if i remove the attribute toolfile in radeditor control. Please let me know why it is behaving like this. Thank you

 

Duy
Top achievements
Rank 1
 answered on 08 May 2016
0 answers
169 views

Hi ,

I am looking for Outlook integration to a web application.

Is their away that we can be in microsoft outlook or in the my web application and be able to connector pull in the email message text into our note section or attach the email? I know I have seen a system that can do this – The software was called Bull Horn staffing or something like that.

 

For example. If I got a email from one person I have to move that email from outlook to my web application. I want to show  the attachments from outlook email to web application. Is there any way we can achieve in kendo UI. Please let me know if this functionality is possible or not. Thanks in advance. 

 

I saw one functionlaity online that was released in Feb 2016. How this functionality relates to my functionality. Can I achieve that functionality in Kendo UI MVC.?

http://demos.telerik.com/aspnet-ajax/webmail/

 

 

Thanks,

Rekha

 

 

Rekha
Top achievements
Rank 1
 asked on 07 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?