Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 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
589 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
102 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
88 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
303 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
2 answers
188 views

Hi,

I need to select 1 row in a radgrid ( a parameter is passed in url like myPage.aspx?ID=93 )

If the row to select is in the first page displayed of the radgrid, this is OK.

However, if the row to select is, for example, in the page 5, this don't work

I do so in PreRender:

        protected void Grid_Version_PreRender(object sender, EventArgs e)
        {
            if (!IsPostBack && SelectedRecetteVersion != null)
            {
                foreach (GridDataItem item in Grid_ArticleRecette.MasterTableView.Items)
                {
                    if (item.GetDataKeyValue("RecetteID").ToString() == myID)
                    {
                        item.Selected = true;
                    }
                }
            }

 

I need to display to good page with the row selected

 

Thanks for your help please

 

 

Pierre
Top achievements
Rank 1
 answered on 30 Mar 2016
2 answers
188 views

We have a requirement where user wanted to use the up/down keys to navigate rows while the grid is in edit mode.  I was able to achieve this using the Keydown event of the RadnumericTextBox, but the edited value seems to revert back to the original value when user press the navigation keys.  We are using Batchedit mode so I would like to get to get the red mark on the edited row before it changes the focus to the next row.  Could this be achieved?  Below is the Javascript I'm calling in the Keydown event of RadnumericTextBox.


function OnKeyDown(sender, args) {
    var key = args.keyCode;
    var grid = $find("<%=grid.ClientID%>");
    var data = grid.get_batchEditingManager().get_currentlyEditedCell();
    var tableView = grid.get_masterTableView();
  
    if (key == 38) { //Up Key
        var row = grid.get_batchEditingManager().get_currentlyEditedRow();
        if (row.previousSibling) {
            grid.get_batchEditingManager().openRowForEdit(row.previousSibling);
        }
    }
    else if (key == 40) { //Down key
        var row = grid.get_batchEditingManager().get_currentlyEditedRow();
        if (row.nextSibling) {
            grid.get_batchEditingManager().openRowForEdit(row.nextSibling);
        }
    }
}
Phillip
Top achievements
Rank 1
 answered on 30 Mar 2016
2 answers
171 views

I have a chart that is getting data from a SQL database in codebehind. Everything displays correctly and the series have the correct number on hover.

It is a stacked bar with the Show totals work a round found on this site.

http://www.telerik.com/support/kb/aspnet-ajax/chart-%28html5%29/details/displaying-grand-total-in-stacked-series-labels-and-pie-series-legend

I know the data coming from SQL is a number because I'm casting it to decimal.

The gTotal shows: "TL bbl: NaN"  

Any Ideas?

code behind:

        Dim daFMChart As New SqlDataAdapter(SQLFM, Conn)
        daFMChart.Fill(DTFMChart)

        Me.ColumnChart.DataSource = DTFMChart
        Me.ColumnChart.DataBind()

 

The SQL data is this:

DateTime     TotalRed   TotalWhite       gTotal
2016-03-25    20000        3             0.0001
2016-03-24    30000        2601          0.0001
2016-03-23    50000        45626         0.0001
2016-03-22    10000        55568         0.0001
2016-03-21    30000        54098         0.0001
2016-03-20    10000        51351         0.0001
2016-03-19    20000        21973         0.0001

<telerik:RadHtmlChart runat="server" ID="ColumnChart" Transitions="true" Skin="Silk" Visible="false" Style="width: 100%; height: 100%;">
 
    <ChartTitle Text="Daily Volume Total Per Meter">
        <Appearance Align="Right" Position="Top">
            <TextStyle Color="#999999" />
        </Appearance>
    </ChartTitle>
 
    <Legend>
        <Appearance Position="Right" Visible="true">
            <TextStyle Color="#999999" />
        </Appearance>
    </Legend>
 
    <PlotArea>
        <Series>
 
            <telerik:ColumnSeries Name="FM Red" DataFieldY="TotalRed" Stacked="true">
                <LabelsAppearance Visible="false"></LabelsAppearance>
                <Appearance>
                    <FillStyle BackgroundColor="#ff1a1a"></FillStyle>
 
                </Appearance>
            </telerik:ColumnSeries>
 
            <telerik:ColumnSeries Name="FM White" DataFieldY="TotalWhite">
                <LabelsAppearance Visible="false"></LabelsAppearance>
                <Appearance>
                    <FillStyle BackgroundColor="#bfbfbf"></FillStyle>
                </Appearance>
            </telerik:ColumnSeries>
 
            <telerik:ColumnSeries DataFieldY="gTotal" Stacked="true">
                <Appearance FillStyle-BackgroundColor="#DDD9C3"></Appearance>
                <LabelsAppearance Position="OutsideEnd">
                    <TextStyle Color="#999999" />
                    <TextStyle Margin="0" />
                    <ClientTemplate>
                            TL bbls: #=dataItem.TotalRed + dataItem.TotalWhite#
                    </ClientTemplate>
                </LabelsAppearance>
 
                <TooltipsAppearance Visible="false">
                </TooltipsAppearance>
            </telerik:ColumnSeries>
 
        </Series>
        <XAxis DataLabelsField="DateTime"></XAxis>
        <XAxis>
            <MajorGridLines Visible="false" />
            <MinorGridLines Visible="false" />
            <LabelsAppearance Step="1">
                <TextStyle Color="#999999" />
            </LabelsAppearance>
        </XAxis>
 
        <YAxis>
            <MajorGridLines Visible="true" Color="#555555" />
            <MinorGridLines Visible="false" />
            <LabelsAppearance Step="1">
                <TextStyle Color="#999999" />
            </LabelsAppearance>
        </YAxis>
    </PlotArea>
 
    <ChartTitle Text=""></ChartTitle>
</telerik:RadHtmlChart>

 

Danail Vasilev
Telerik team
 answered on 30 Mar 2016
1 answer
115 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 30 Mar 2016
1 answer
57 views

I am loading dynamic resources from and entity data source but I wish to give them an individual color  how do i map a resource style dyanmcially

 

01.<asp:UpdatePanel ID="UpdatePanel1" runat="server">
02.         <ContentTemplate>
03.                         <telerik:RadScheduler OnTimeSlotCreated="apertureAppointments_TimeSlotCreated"   OverflowBehavior="Auto" runat="server" WeekView-ShowDateHeaders="true"  EnableResize="false" ID="apertureAppointments"
04.                             TimelineView-UserSelectable="false" DayView-UserSelectable="true" AgendaView-UserSelectable="True" DataKeyField="ID" DataSubjectField="Subject" AllowInsert="false" AllowDelete="false" AllowEdit="false"
05.                             DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DayView-EnableExactTimeRendering="true"  WeekView-UserSelectable="True"
06.                             DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True"  MonthView-UserSelectable="True" AgendaView-NumberOfDays="5"
07.                            RenderMode="Classic" EnableExactTimeRendering="True"  
08.                             DayStartTime="09:00:00" ShowFooter="false" DayEndTime="18:00"  FirstDayOfWeek="Monday" LastDayOfWeek="Friday" HoursPanelTimeFormat="HH:mm tt" MinutesPerRow="30" TimeLabelRowSpan="2"  OnAppointmentClick="apertureAppointments_AppointmentClick" OnTimeSlotContextMenuItemClicking="apertureAppointments_TimeSlotContextMenuItemClicking"
09.                             EnableDescriptionField="true" AppointmentStyleMode="Default" Skin="Metro"
10.                             >
11. 
12.                             <ExportSettings OpenInNewWindow="True">
13.                                 <Pdf PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" PageTopMargin="1in" />
14.                             </ExportSettings>
15.                             <AdvancedForm Modal="True" />
16. 
17.                             <TimeSlotContextMenuSettings EnableDefault="false" />
18.                             <AppointmentContextMenuSettings EnableDefault="false" />
19.                             <DayView EnableExactTimeRendering="True" />
20. 
21.                             <ResourceTypes>
22.                                 <telerik:ResourceType KeyField="lookup_code" Name="Managers" TextField="lookup_description" ForeignKeyField="managerId"
23.                                     DataSourceID="ManagersDataSource"></telerik:ResourceType>
24.                             </ResourceTypes>
25.                         </telerik:RadScheduler>            </ContentTemplate>
26.                     </asp:UpdatePanel>
27.                  
28.                     <asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=aperturenetEntities"
29.                         DefaultContainerName="aperturenetEntities" EntitySetName="Appointments" EnableDelete="true"
30.                         EnableInsert="true" EnableUpdate="true">
31.                     </asp:EntityDataSource>
32. 
33.                     <asp:SqlDataSource ID="RoomsDataSource" runat="server"
34.                         ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:aperturenetSql %>"
35.                         SelectCommand="SELECT * FROM [Rooms]"></asp:SqlDataSource>
36. 
37.                     <asp:SqlDataSource ID="ManagersDataSource" runat="server"
38.                         ConnectionString="<%$ ConnectionStrings:aperturenetSql %>" SelectCommand="SELECT * FROM [tblApertureNetLookUps] WHERE lookup_type='11787CA6-DE99-4E0E-83D2-7D96E0FD11A3'"></asp:SqlDataSource>

Plamen
Telerik team
 answered on 30 Mar 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?