Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
746 views
In the documentation (http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/security) you can read "In order to encrypt the configuration in a secure way, we strongly recommend to set the custom encryption key in the web config using the following app setting -Telerik.AsyncUpload.ConfigurationEncryptionKey".

 

What kind of value can I set for the Telerik.AsyncUpload.ConfigurationEncryptionKey. Is it a random string? If yes how long it should be.

Hristo Valyavicharski
Telerik team
 answered on 10 May 2016
1 answer
69 views
Hi, i am populating data using telerik radgrid in my project 
and trying to filter columns, intially i am not getting all the filter conditons[few are showing],and when i set 
datatype to system.string i got all the filter conditions but not able to get the result[i am binding numeric values] when i try to filter with 
'greaterthan' for above 2 digit values and if i take datatype as system.int32 its fine but not showing all the filter conditions
.How to get the results with all the filter conditions .thanks 
Viktor Tachev
Telerik team
 answered on 10 May 2016
1 answer
192 views

HI,

I have added a Radwindow to my aspx page as below.

 <telerik:RadWindow ID="rdWin" runat="server" Behaviors="None" AutoSize="false"
            Width="500px" Height="300px" Top="80px" Left="100px" Modal="true" OnClientShow="RadWindowAddOthers_Show" >

 

My AutoSize attribute is false. Inside my "RadWindowAddOthers_Show" method i am resetting few textboxes.

I am using ie11 in Ie9 mode.

<meta http-equiv="X-UA-Compatible" content="IE=9" />

<html class="t-ie t-ie9 _Telerik_IE9">

The above renders as below:

 

<div class="RadWindow RadWindow_Default rwNormalWindow rwTransparentWindow" id="RadWindowWrapper_ctl00_MainPageContentPlaceHolder_rdWin" style="top:770px;left: 433px; width: 500px; height: 300px; visibility: visible; position: absolute; z-index: 3002; transform: none;" unselectable="on"><table class="rwTable" style="height: 300px;" cellSpacing="0" cellPadding="0">

 

The top and left attributes are not as per the given values.

Also in the content template i have a div as follows which encloses all the content:

<div class="RadGrid RadGrid_Default" style="width: 500px;">

As an attempt to fix i have modified it to the following to make sure my content height is calculated properly:

<telerik:RadWindow ID="rdWin" runat="server" Behaviors="None" AutoSize="true"
            Width="500px" Height="300px" Top="80px" Left="100px" Modal="true" OnClientShow="RadWindowAddOthers_Show" OnClientAutoSizeEnd="OnClientAutoSizeEnd">

        function OnClientAutoSizeEnd(sender) {
            if ($telerik.isIE9) {
                setTimeout(function () {
                    sender.set_height(sender.get_height());
                }, 0);
            }
        }

I see that the radwindow is still positioned wrongly(i mean the top and left attributes are wrong). Can anyone suggest a fix to this issue?

Marin Bratanov
Telerik team
 answered on 10 May 2016
4 answers
267 views
Hi,
I am using radconfirm dialog box to show a confirmation if user wants to remove the records with OK button and cancel link.
Now I am trying to implement radconfirm dialog box to show a confirmation to user when he click on open button; then a confirmation popup should open which will say "Hey, do you want to save it". it will have 2 buttons - yes, no. here cancel link will not come.

Please suggest How I can implement 2 radconfirm on single page or I can reuse the existing radconfirm dialog box and how?

thanks
Marin Bratanov
Telerik team
 answered on 10 May 2016
6 answers
2.4K+ views
Hi all,

I'm getting this error when loading my grid. I'm using ItemDataBound to replace numbers in the grid with names. what could be the problem.

Thanks,

Hamda
Sk
Top achievements
Rank 1
 answered on 09 May 2016
3 answers
757 views

All my telerik controls are not working when deploy to server. 

the screenshot 1.jpg shows the telerik control that I deploy on Live, the screenshot 2.jpg shows the telerik control that is my development laptop and it working perfectly. 

Question

Kindly help me if I need to register the dll link in the server?  

Thanks in advance

Vessy
Telerik team
 answered on 09 May 2016
2 answers
132 views

Telerik Team,
We are using ASP.NET Telerik RadTextBox controls in our application. Lets say I entered some text of 10 characters long and click on search button.
After the page postbacks(ajax postabck) we are seeing the search text entered in the textbox getting trimmed off from the right side.
This is only happening in if I enable Enterprise Mode internet explorer Version 11. By going into Tools > Enterprise Mode
Any help would be really appreciated.

Thanks,

Nishith Ghoshal


Maria Ilieva
Telerik team
 answered on 09 May 2016
3 answers
155 views

Hi,

 

I don't have really problem, my code work fine but I have got some questions about  SaveImageOnServer of RadImageEditor.

First question:

What is the protocol used to save the picture on the server used by SaveImageOnServer ?

Second question:

What about the transferring security? I must do something to secure transfert or telerik takes charge of the security?

 

Thanks to spend time for me :)

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

Hi Folks,

I having an issue when i set some rows ClientSelectColumn checkboxes to checked server side, but when i access them client side in the RowCreated event I get the wrong answer. 

function RowCreated(sender, args) {
                    
 
        var ID = args.getDataKeyValue("InstrumentID");
        if (selected[ID]) {
           args.get_gridDataItem().set_selected(true);
           ExpandGroups(args);
         }
         if (args.get_gridDataItem().get_selected()) { //Always False!
             RowSelected(sender, args);
         }
         else
             RowDeselected(sender, args);
      
 }

 

The Server side is setting the checkbox like:

            //load the Grid
            foreach (GridDataItem gdi in _GrdFunds.MasterTableView.Items)
            {
                if (gdi["selectColumn"] != null)
                {
                    CheckBox gdiCheckbox = (CheckBox)gdi["selectColumn"].Controls[0];
                    if (isInstrumentSaved(gdi["InstrumentId"].Text, report))
                    {
                        gdiCheckbox.Checked = true;
                        gdi.Selected = true;


                    }
                    else
                    {
                        gdiCheckbox.Checked = false;
                        gdi.Selected = false;

                    }
                }
            }

 

 

And Grid is defined as:


                        <telerik:RadGrid ID="_GrdFunds"
                            runat="server"
                            AllowMultiRowSelection="True"
                            AllowFilteringByColumn="True"
                            CellSpacing="0"
                            GridLines="None"
                            ShowGroupPanel="True"
                            Skin="Metro"
                            DataSourceID="FundsList"
                            Style="margin-top: 5px;"
                            OnColumnCreated="_GrdFunds_ColumnCreated"
                            OnItemCreated="_GrdFunds_ItemCreated"
                            OnItemDataBound="_GrdFunds_ItemDataBound"
                            OnGroupsChanging="_GrdFunds_GroupsChanging" AllowSorting="True" Font-Size="X-Small" Height="100%">
                            <GroupingSettings CaseSensitive="False" ShowUnGroupButton="True" />
                            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                <Selecting AllowRowSelect="True"></Selecting>

                                <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowResizeToFit="True" ShowRowIndicatorColumn="True"></Resizing>
                                <ClientEvents OnRowCreated="RowCreated" OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" OnGridCreated="GridCreated"
                                    OnColumnCreated="_GrdFunds_OnColumnCreated" OnMasterTableViewCreated="_GrdFunds_OnMasterTableViewCreated" />
                                <Animation AllowColumnReorderAnimation="True" />
                            </ClientSettings>

                            <MasterTableView AutoGenerateColumns="True" ClientDataKeyNames="InstrumentID" DataKeyNames="InstrumentID" DataSourceID="FundsList" GroupLoadMode="Client" GroupsDefaultExpanded="False" TableLayout="Fixed">
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="False">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridClientSelectColumn DataType="System.Boolean" Reorderable="False" Resizable="False" UniqueName="selectColumn">
                                        <HeaderStyle Width="36px" />
                                        <ItemStyle Width="36px" />
                                    </telerik:GridClientSelectColumn>
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>

                            </MasterTableView>

                            <FilterMenu EnableImageSprites="False"></FilterMenu>
                        </telerik:RadGrid>

 

 

Eyup
Telerik team
 answered on 09 May 2016
4 answers
295 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?