Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi i am Akhtar Abbas i am using telerik controls in my ASP.NET web application. I am currently designig a login page i am using RadStyleSheetManager, RadAjaxManager, RadAjaxLoadingPanel and RadCodeBlock. the HTML for the page is below

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="AccessCenter.Login" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8">

    <title>Log In</title>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
      <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
<body>
    <div class="wrapper">
        <div class="back1">

            <p class="title">Evac</p>
            <form runat="server" id="form1" class="login">
                <asp:ScriptManager runat="server" ID="smLogin"></asp:ScriptManager>
                
                <telerik:RadStyleSheetManager runat="server">
                    <StyleSheets>                        
                        <telerik:StyleSheetReference Path="css/normalize.css" />
                        <telerik:StyleSheetReference Path="css/login.css" />
                    </StyleSheets>
                </telerik:RadStyleSheetManager>


                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="btnLogin">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="form1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                                <telerik:AjaxUpdatedControl ControlID="txtUserName"></telerik:AjaxUpdatedControl>
                                <telerik:AjaxUpdatedControl ControlID="txtPassword"></telerik:AjaxUpdatedControl>
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>

                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
                </telerik:RadAjaxLoadingPanel>

                <asp:TextBox runat="server" ID="txtUserName" placeholder="Username" autofocus></asp:TextBox>

                <asp:TextBox runat="server" ID="txtPassword" placeholder="Password"></asp:TextBox>

                <asp:TextBox runat="server" ID="txtCaptcha" CssClass="captcha-fld"></asp:TextBox>

                <asp:TextBox runat="server" ID="txtCaptchaText" CssClass="captcha-fld-type"></asp:TextBox>

                <button>
                    <i class="spinner"></i>
                    <asp:Button runat="server" ID="btnLogin" CssClass="login-submit" OnClick="btnLogin_Click" />
                </button>
                <asp:Label ID="lblError" runat="server" ForeColor="Red" Visible="false"></asp:Label>
                <a href="#">Forgot your password?</a>
                <a class="right2" href="#">Sign Up</a>
                
                <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                    <script src="js/index.js" type="text/javascript"></script>
                </telerik:RadCodeBlock>
            </form>
        </div>
        <footer></footer>
    </div>
    <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>


I also have added settings in web.config.

<appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
    <add key="Telerik.Web.UI.StyleSheetFolders" value="~/css" />
  </appSettings>
<system.web>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
    </httpHandlers>
    
  </system.web>
<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ApplicationInsightsWebTracking"/>
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
    </modules>
    <handlers>
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
    </handlers>
  </system.webServer>

when i load my page then i have got the following error on the page

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

How to resolve this?
Note: These controls are purchased controls
I neet urgent responce please reply me as fast as possible because i have deadline of the project
Maria Ilieva
Telerik team
 answered on 31 Mar 2016
5 answers
481 views

I am trying to open the Raddataform which is in Editform control of Rad Grid in the insert mode ,and as there are no items in the grid it goes to exception  as above users,I tried the solution from Ole  like inserting an empty template but dint work out. when I have data in the grid it works fine for the new grid to add a record using the dataform it fails.pls suggest.Here is sample.

I also Tried All options mentioned in the other Threads

 //   gridDataform.DataForm.IsItemInserted = true;
                  //  gridDataform.DataForm.Rebind();
                    // gridDataform.DataForm.Items[0].FireCommandEvent("InitInsert", "");
                    gridDataform.DataForm.ShowInsertItem();
 

gridDataform is the instance of the usercontrol which has Raddataform and this code is beign used in the grid itemcommand.

 

                    if (gridDataform == null)
                    { throw new Exception("No Grid Found"); }

                    log.logDebug(logMessage: "Fire Insert Mode for DataForm");


                   gridDataform.DataForm.Items[0].FireCommandEvent("InitInsert", "");
Also my add buttons are on the mastertableview of the grid

 

 <MasterTableView Width="100%" CommandItemDisplay="Top" ShowGroupFooter="true" AllowFilteringByColumn="true">
            <EditFormSettings EditFormType="Template">
                <EditColumn UniqueName="EditCommandColumn1" />
                <FormTemplate>
                    <uc1:PageUIControl IsBoundToGrid="true" runat="server" ID="EditFormControl"  />
                </FormTemplate>
                <PopUpSettings ScrollBars="None" />
            </EditFormSettings>

            <CommandItemTemplate>


                <div style="color:black!important;" >

                    <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGridUI.EditIndexes.Count == 0 %>'><i class="fa fa-pencil fa-lg"></i></asp:LinkButton>
                        <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# RadGridUI.EditIndexes.Count > 0 %>'><i class="fa fa-pencil fa-lg"></i></asp:LinkButton>
                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGridUI.EditIndexes.Count > 0 || RadGridUI.MasterTableView.IsItemInserted %>'><i class="fa fa-ban fa-lg"></i></asp:LinkButton>&nbsp;&nbsp;
                       <asp:LinkButton ID="btnNew" runat="server" CommandName="InitInsert" Visible='<%# !RadGridUI.MasterTableView.IsItemInserted %>'><i class="fa fa-plus-square fa-lg"></i></asp:LinkButton>
                        <asp:LinkButton ID="btnInsert" runat="server" CommandName="PerformInsert" Visible='<%# RadGridUI.MasterTableView.IsItemInserted %>'><i class="fa fa-plus-square fa-lg"></i></asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="btnDelete" OnClientClick="javascript:return confirm('Delete all selected customers?')" runat="server" CommandName="DeleteSelected"><i class="fa fa-trash fa-lg"></i></asp:LinkButton>&nbsp;&nbsp;

                </div>

            </CommandItemTemplate>
        </MasterTableView>

Maria Ilieva
Telerik team
 answered on 31 Mar 2016
1 answer
170 views

Please,

I need a way to make RadDropDownList ReadOnly. I Do not want to disable it, just disable iteration. (or I could use "disabled back color" or something...)

How Could I do it?

Thanks in advance.

Eyup
Telerik team
 answered on 31 Mar 2016
1 answer
120 views

Hi Team,

I am using RadListBox and attaching 6000 values to it.  When user clicks on select all option of the check box in RadListBox, it takes around 50 sec to check all the items in IE11 and in chrome it takes 4 sec. Can anyone suggest, how to improve the performance of RadListBox?

Regards,

Somnath

Veselin Tsvetanov
Telerik team
 answered on 31 Mar 2016
3 answers
222 views
I'm interested in creating an application that allows a user to click a button, select multiple files, send them to an ftp server. I'm looking at the async upload control as a starting point. Is this possible?

I saw another post on this but the solution contained a dead link.

If not, Is there a another control i can use to simply select a bunch of files on the users machine?



Hristo Valyavicharski
Telerik team
 answered on 31 Mar 2016
1 answer
88 views

hi,

i check if it possible to create asp .net ribbon bar component within HTML page in iframe tag

while i'm trying to create a single page with ribbon component, and call him from another HTML page 

i have a access problem at the HTML page call to the ribbon with (jquery) -> $("#ribbon");

how to get the original object like in the asp page but in the HTML page, with javascript ?

(Pictures attached)

thanks.

 

 

Veselin Tsvetanov
Telerik team
 answered on 31 Mar 2016
3 answers
686 views

I am using Kenod Treelist to display the hierarchical data and its working fine.
I have placed the edit option to update/delete each row.
Now I am facing issue, how to add new row to each level:
My Treelist is having the hierarchy like below:
--Main Node

   -----Parent Node1

             ------Child Node1

             ------Child Node2

  -----Parent Node2
I should be able to add Main node/Parent Node/Child Node.
I have tried with toolbar: ["create"] which will give me the option to add the main node.
Any other way I can achieve this with Kendo Tree List?
Or any other control I can opt to achieve the Add/Edit/Delete functionality with hierarchical node.
Any help is highly appreciable.
Thanks

Nikolay Rusev
Telerik team
 answered on 31 Mar 2016
0 answers
138 views

Hi 

I am trying to use share point's PeopleEditor control in Edit Template in Batch Edit Mode of RadGrid.

RadGrid is not saving the data and  not highlighting the editied cell.

Please provide some sample of using People Editor control in Edit Template in Batch Edit Mode of RadGrid.

 

Thanks

Abhishek

Abhishek
Top achievements
Rank 1
 asked on 31 Mar 2016
6 answers
126 views

We use the Scheduler control with Exchange to list known service outages. We show three different schedulers, all linked to the same provider, to show last week, this week and next week.

We have recently found that scheduler is not showing new appointments, although creating new appointments in scheduler does push them back to Exchange. Deleting old appointments (which is something we don't want to do) allows the requisite number of future appointments to show, so it would appear that:

1.) ExchangeSchedulerProvider is always retrieving appointments from the beginning of time

2.) There is a limit to the number of appointments retrieved that is too low for our requirements.

So my questions are:

1.) Can I set the provider to only retrieve appointments from a certain date?

2.) If not, can I increase the number of appointments retrieved (far from ideal).

Thanks.

jwhitley
Top achievements
Rank 1
 answered on 31 Mar 2016
6 answers
393 views

I am facing a problem regarding RadAjaxLoadingPanel.

I am saving records to one table in sql server database. First few seconds, RadAjaxLoadingPanel works fine but after 90 seconds(Approx) it goes off and does not show any progress while data in saving in table.

Can you tell whether is there any way to make it visible all the times till the query finishes. My query takes around 5 minutes to complete.

I tried Explicit Hide/Show way also but still i am getting same result.

 

Please advise.

Sumit
Top achievements
Rank 1
 answered on 31 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?