Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
164 views
Hi:

Just struggling tog et a very simple RadTabStrip POC working, am now getting an error:

Control 'ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server.

However when I look at the code (pasted below) it seems to me the Scriptmanager tag is very clearly inside the form tag with the runat=server tag. Can anyone offer any suggestions?

John.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   </head>
<body>
    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div style="z-index: 102; left: 0px; width: 800px; position: absolute; top: 0px; height: 1000px">
      <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="692px" Width="798px">
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0">
          <Tabs>
            <telerik:RadTab runat="server" Selected="True" Text="Store Information" PageViewID="RadPageView1">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="General Information" PageViewID="RadPageView2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" BackColor="#CCC0DA" Text="Fruits">
            </telerik:RadTab>
            <telerik:RadTab runat="server" BackColor="#C4BD97" Text="Nuts &amp; Ginseng">
            </telerik:RadTab>
            <telerik:RadTab runat="server" BackColor="#C4D79B" Text="Vegetables">
            </telerik:RadTab>
            <telerik:RadTab runat="server" BackColor="#B7DEE8" Text="Fish &amp; Shell Fish">
            </telerik:RadTab>
            <telerik:RadTab runat="server" BackColor="#E6B8B7" Text="Beef &amp; Veal">
            </telerik:RadTab>
          </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Height="365px" SelectedIndex="0">
          <telerik:RadPageView ID="RadPageView1" runat="server" Height="360px" Width="787px">
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Store Information"></asp:Label>
            <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Store Name:"></asp:Label><asp:TextBox ID="txtStoreName" runat="server"></asp:TextBox>
            <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Store ID Number:"></asp:Label><asp:TextBox ID="txtStoreID" runat="server"></asp:TextBox>
            <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Corporate Name:"></asp:Label><asp:TextBox ID="txtCorpName" runat="server"></asp:TextBox>
            <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="Store Address:"></asp:Label><asp:TextBox ID="txtAddress1" runat="server"></asp:TextBox>
            <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="City, State, Zip:"></asp:Label><asp:TextBox ID="txtCityStateZip" runat="server"></asp:TextBox>
            <asp:Label ID="Label7" runat="server" Font-Bold="True" Text="Store Phone Number:"></asp:Label><asp:TextBox ID="txtStorePhone" runat="server"></asp:TextBox>
            <asp:Label ID="Label8" runat="server" Font-Bold="True" Text="PACA License #:"></asp:Label><asp:TextBox ID="txtPACA" runat="server"></asp:TextBox>
          </telerik:RadPageView>
          <telerik:RadPageView ID="RadPageView2" runat="server" Height="360px" Width="787px">
          </telerik:RadPageView>
        </telerik:RadMultiPage>      
      </telerik:RadAjaxPanel>


    </div>
    </form>
</body>
</html>
Hristo Valyavicharski
Telerik team
 answered on 24 Dec 2014
5 answers
119 views
Not sure where to post this but I'm having a simple question please.

I'm using a RadMultiPage control with a few RadPageViews. Inside one of the pages, I would like to have a footer section at the bottom of the page. On the telerik help pages, it says header and footers are possible but I don't see the tag for it.

Here is an example of what I've got:

<telerik:RadMultiPage ID="RadMultiPage1" SelectedIndex="0" runat="server" >

<telerik:RadPageView ID="RadTabDetails" runat="server">
// some code here

// I want a footer here:
<footer> ... </footer>

</telerik:RadPageView>

...

 

 

 

 

 

 

 

 

="server">

<telerik:RadMultiPage ID="RadMultiPage1" SelectedIndex="0" runat="server" BorderStyle="Solid" BorderWidth="1" Width="800px" Height="600px">

<telerik:RadPageView ID="RadTabDetails" runat="server">

 

 

 

Ben
Top achievements
Rank 1
 answered on 23 Dec 2014
3 answers
538 views
I have the following scenario: 

<%-- UF --%>
    <tr>
        <td>
            <label>UF</label>
            <br />
            <telerik:RadComboBox ID="rcbUF" runat="server" CheckBoxes="True" EnableCheckAllItemsCheckBox="True" CausesValidation="false"
                Culture="pt-BR" CssClass="lt-width-10" MaxHeight="250" OnItemChecked="rcbUF_ItemChecked" AutoPostBack="true">
            </telerik:RadComboBox>
        </td>
    </tr>
    <%-- Rodovia --%>
        <tr>
            <td>
                <label>Rodovia</label>
                <br />
                <asp:UpdatePanel runat="server" ID="uppRodovia">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="rcbUF" />
                    </Triggers>
                    <ContentTemplate>
                        <telerik:RadComboBox ID="rcbRodovia" runat="server" CheckBoxes="True" EnableCheckAllItemsCheckBox="True" Culture="pt-BR" MaxHeight="250" CssClass="lt-width-10" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>


When an item is checked on rcbUF, the following method is called (something like that):

protected void rcbUF_ItemChecked(object sender, RadComboBoxItemEventArgs e)
    {
    if (rcbUF.HasSelectedValue())
    {
        var _listaUF = rcbUF.Items.Where(x => x.Checked).Select(x => x.Value).ToList();
        var _rodovias = Repositorio<Rodovia>.GetAll.Where(x => x.ListaUF.Any(y=>_listaUF.Contains(y.UF.Id))).Select(x => x.Id).ToArray();
         
        if (_listaUF.Count > 0)
        {
            rcbRodovia.Carregar<Rodovia>(x => x.Numero, x => x.Id,
                Constantes.TextoVazioEspaco,
                true,
                x => _rodovias.Contains(x.Id),
                x => x.Numero);
        }
        else
        {
            rcbRodovia.Carregar<Rodovia>(x => x.Numero, x => x.Id,
                Constantes.TextoVazioEspaco,
                true,
                x => x.Numero);
        }
         
        rcbRodovia.Items.Distinct();
        rcbRodovia.Enabled = true;
    }
    }

My problem is that everytime I click on the item instead of the checkbox, it triggers a postback (much on the OnItemSelected way), and I really don't want it to occur.

Later I tried setting the rcbUF OnClientSelectedIndexChanging event to trigger this function:

function OnClientSelectedIndexChanging(sender, args)
{
    args.set_cancel(true);
}

But the event never fires, like it does fire the codebehind event but not the client-side one.

Boyan Dimitrov
Telerik team
 answered on 23 Dec 2014
1 answer
50 views
I have several different pageviews within a multipage control that is within a tabstrip. My first tab/pageview contains fields that the each of the following pageviews needs access to. This is a multi-step, complex form that is not saved until the last step so I need to know what the values of the fields are currently on the unsaved form instead of say pulling them from a database.

I can find no way to access the field values before the form is submitted. I cannot read the values client-side (using jQuery) for tabs/pageviews that are not active as the fields are not in the DOM.  I cannot get any data from the viewstate as it is encrypted no matter what my web.config says to the contrary.  I can get data from Request.Form, but only for the fields that are on the tab that immediately precedes the current one, not from the whole form.

Is there some shadow copy of the DOM that is persisting the data across page loads? Or, better yet, some way to access the current form field values sever-side when the page reloads? 
 
I cannot be the first person to encounter this issue....
Hristo Valyavicharski
Telerik team
 answered on 23 Dec 2014
2 answers
319 views
Hi,

i am populating dropdownlists in a grid and want to export in excel as it is with data. how can i do this.
please help

With Regards,

Faisal
Gangyada
Top achievements
Rank 1
 answered on 23 Dec 2014
1 answer
187 views
Hello,
         I used the Rad Scheduler For selection of Etc Date in calendar. Example - If "Phase Start Date" is 2014-11-28 and "Phase End Date" is 2014-12-04 in "Development" then in Calender should show the Selection (11/28) to (12/04). But In my application, show the selection 1 day less in calendar. Means selection show (11/28) to (12/03) in Calender, It is wrong. But My database is correct. Its get correct data  like Phase_Start_Date = 2014-11-28 12:00:00.000 and Phase_End_Date = 2014-12-04 12:00:00.000.
         So I don't know why its show the 1 less day selection in calendar. Attach the screen shot of Database and Application. Please see it.

I using Rad Scheduler coding like-

 <telerik:RadScheduler runat="server" ID="rscCalender" GroupBy="ProjectID" GroupingDirection="Vertical" 
            AppointmentStyleMode="Default" DataSourceID="EventsDataSource" DataKeyField="ProjectID" Width=" "  CssClass="rshcCalender"
            DataSubjectField="Stage" FirstDayOfWeek="Monday" LastDayOfWeek="Friday"  ShowFullTime="false" 
            DataStartField="Phase_Start_Date" DataEndField="Phase_End_Date" ShowAllDayRow="true" WeekView-ShowAllDayInsertArea="false" WeekView-ShowHoursColumn="false" WeekView-DayStartTime="9:00:00" WeekView-DayEndTime="9:00:00" 
            SelectedView="WeekView" thView-ReadOnly="true" DayView-ReadOnly="true" TimelineView-ReadOnly="true" TimelineView-UserSelectable="false"
            OnResourceHeaderCreated="rscCalender_ResourceHeaderCreated" AllowDelete="false" AllowEdit="false" AllowInsert="false" OverflowBehavior="Scroll">

            <WeekView ColumnHeaderDateFormat="ddd(M/d)"  HeaderDateFormat="MM/dd" />
      
            <AdvancedForm Modal="false"></AdvancedForm>
           
            <ResourceHeaderTemplate >
                <asp:Panel ID="ResourceImageWrapper" runat="server">               
                    <asp:LinkButton ID="lnkProjectName" runat="server" ></asp:LinkButton>
                </asp:Panel>
            </ResourceHeaderTemplate>
            <ResourceTypes>
                <telerik:ResourceType KeyField="ProjectIDs" Name="ProjectID" TextField="ProjectName" ForeignKeyField="ProjectIDs"
                 DataSourceID="ProjectSource"  ></telerik:ResourceType>
            </ResourceTypes>
          <DayView  UserSelectable="false"/>
    <MonthView  UserSelectable="false"/>
    <TimelineView  UserSelectable="false"/>
        </telerik:RadScheduler>

         <asp:ObjectDataSource ID="EventsDataSource" runat="server" SelectMethod="GetETCDates" TypeName="ProjectTrakObjects.DO_GetData">
               <SelectParameters>
                <asp:Parameter Name="ProjectID"   Type="Int32" DefaultValue="0" />
            </SelectParameters>
                </asp:ObjectDataSource>
           <asp:ObjectDataSource ID="ProjectSource" runat="server" SelectMethod="GetCalanderProjects" TypeName="ProjectTrakObjects.DO_GetData">
               <SelectParameters>
                <asp:Parameter Name="ProjectID"   Type="Int32" DefaultValue="0" />
            </SelectParameters>
                </asp:ObjectDataSource>
Boyan Dimitrov
Telerik team
 answered on 23 Dec 2014
8 answers
104 views
I'm using the file explorer with the demonstration CustomFileSystem provider. I have only one root folder and this always displays correctly.

When clicking on a sub folder, file explorer will quite often display its busy overlay and fail to update to display the new folder and the busy overlay remains.  The only way to resolve this is to reset the service / close the browser start a new session.

I'm using IE11 but can see the same behaviour in Chrome.

As far as I can tell the CustomFileSystem provider is returning lists of folders and files when the click happens.

Any ideas what may be causing this or what else I can check?

TIA

Nic


Nic
Top achievements
Rank 1
 answered on 23 Dec 2014
1 answer
97 views
Hello Telerik Community,

The project that I am working on has following requirement and I need a suggestion on the best way to utilize Telerik controls like RecurrenceEditor or any other Telerik classes to achieve this functionality.
 

There are recurring batch of tasks (appointments) called turnarounds. The end user treats them as a single group of tasks at the time of creation. Each task happens in one 12 hours shift. The creation process should create individual tasks within a turnaround with proper recurrence rule.

I can easily calculate start and end date of individual tasks but I need advice on keeping recurrence incremented for a given duration.

Is there any option in  RecurrenceEditor or any other Telerik control which give me a recurrence rule as if it was shifted by a given duration. e.g. for a weekly recurring task, I add a day and it give me a recurring  rule happening for Tuesday?

Thanks,

Kapil
Bozhidar
Telerik team
 answered on 23 Dec 2014
1 answer
148 views
Hi All brothers,
                      I'm new user for Telerik tool . May I know how can I set the pencil tool with specific color & line size during  asp page start? I found that the thread below to set the pencil tool as default tool  during page start , but how about the default pencil color size & line size?

http://www.telerik.com/forums/imageeditor-starting-the-editor-with-only-pencil-command-active

For you guys information , I'm using latest telerik version :2014.2.724.35



thanks
regards
William
Niko
Telerik team
 answered on 23 Dec 2014
2 answers
75 views
Hello,

I want to create a new appointment in the calendar does not display the inline editor and advanced form opens directly and do not know how to do it.

I need help.

Thank you.

Encarna
Top achievements
Rank 1
 answered on 23 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?