Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
345 views

Ok I know this is a Telerik issue and I should had not posted it here. But I trust guys over here.

I am having problem with RadMultipage contentUrl property. It is not loading the pages. All other radPageViews work fine.
Code is below.

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" AutoPostBack="true"
    Skin="Office2007" MultiPageID="RadMultiPage1">
    <Tabs>
        <telerik:RadTab runat="server" Text="Calender" PerTabScrolling="true" Selected="True" PageViewID="tab1">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Google" PageViewID="tab2">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Quote" PageViewID="tab3">
        </telerik:RadTab>
        
    </Tabs>
</telerik:RadTabStrip>
 
 
 
 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" EnableEmbeddedScripts="true" SelectedIndex="0">
    <telerik:RadPageView ID="tab1" runat="server">
         
        <telerik:RadCalendar ID="calender" Runat="server" Skin="Office2007">
            <WeekendDayStyle CssClass="rcWeekend" />
            <CalendarTableStyle CssClass="rcMainTable" />
            <OtherMonthDayStyle CssClass="rcOtherMonth" />
            <OutOfRangeDayStyle CssClass="rcOutOfRange" />
            <DisabledDayStyle CssClass="rcDisabled" />
            <SelectedDayStyle CssClass="rcSelected" />
            <DayOverStyle CssClass="rcHover" />
            <FastNavigationStyle CssClass="RadCalendarMonthView RadCalendarMonthView_Office2007 RadCalendarMonthView " />
            <ViewSelectorStyle CssClass="rcViewSel" />
        </telerik:RadCalendar>
    </telerik:RadPageView>
    <telerik:RadPageView ID="tab2" runat="server" ContentUrl="http://www.google.com">
    </telerik:RadPageView>
    <telerik:RadPageView ID="tab3" runat="server">
      Anything....
    </telerik:RadPageView>
</telerik:RadMultiPage>
Princy
Top achievements
Rank 2
 answered on 16 Jan 2013
2 answers
238 views
This error pop-up message keeps appearing whenever I enter a text.
I've tried searching for solutions and examples but I get the "Sorry, we couldn't find the page you're looking for." whenever I click on the "Launch ASP.NET AJAX Demos" link (http://demos.telerik.com/ErrorPageResources/error.aspx?aspxerrorpath=/aspnet-ajax/default.aspx).

My code is something like this:

<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server"></telerik:RadAutoCompleteBox>


protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {     
 
                RadAutoCompleteBox1.DataSource = GetData();
                RadAutoCompleteBox1.DataTextField = "Item_Desc";
                RadAutoCompleteBox1.DataValueField = "Item_Code";
 
            }
        }
 
private static DataTable GetData()
        {
            DataTable dt = new DataTable();
            //Set the datafield name
            DataColumn cl = new DataColumn("status");
            dt.Columns.Add(cl);
            cl = new DataColumn("Item_Code");
            dt.Columns.Add(cl);
            cl = new DataColumn("Item_Desc");
            dt.Columns.Add(cl);
            cl = new DataColumn("Vendor_Name");
            dt.Columns.Add(cl);
            cl = new DataColumn("Uom");
            dt.Columns.Add(cl);
            cl = new DataColumn("Moq");
            dt.Columns.Add(cl);
            cl = new DataColumn("Qty");
            dt.Columns.Add(cl);
            cl = new DataColumn("Cur");
            dt.Columns.Add(cl);
            cl = new DataColumn("Price");
            dt.Columns.Add(cl);
            cl = new DataColumn("Total");
            dt.Columns.Add(cl);
            cl = new DataColumn("Type");
            dt.Columns.Add(cl);
 
 
            //Set the static data for row 1
            DataRow dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "07-11-017";
            dr[2] = "PAPER PUNCHER (3 HOLES)";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "130.00";
            dr[9] = "130.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
 
 
            //Set the static data for row 2
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "07-09-069";
            dr[2] = "BINDING STRIPS A4 (MULTI-COLOUR) (LOT OF 100/50PC) ";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "60.00";
            dr[9] = "60.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
 
            //Set the static data for row 3
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "01-38-002";
            dr[2] = "LAMINATING MACHINE A4, LMA400";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "1";
            dr[6] = "1";
            dr[7] = "SGD";
            dr[8] = "160.00";
            dr[9] = "160.00";
            dr[10] = "NS";
            dt.Rows.Add(dr);
 
            //Set the static data for row 4
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-09-901";
            dr[2] = "BOLTED CONNECTOR";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "10";
            dr[6] = "10";
            dr[7] = "SGD";
            dr[8] = "1.50";
            dr[9] = "15.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
 
            //Set the static data for row 5
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-07-905";
            dr[2] = "GUY STRAIN INSULATOR";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "100";
            dr[6] = "100";
            dr[7] = "SGD";
            dr[8] = "1.00";
            dr[9] = "100.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
 
            //Set the static data for row 6
            dr = dt.NewRow();
            dr[0] = "";
            dr[1] = "99-01-505";
            dr[2] = "HOT LINE CLAMP";
            dr[3] = "Internal";
            dr[4] = "PC";
            dr[5] = "500";
            dr[6] = "500";
            dr[7] = "SGD";
            dr[8] = "2.00";
            dr[9] = "1000.00";
            dr[10] = "ST";
            dt.Rows.Add(dr);
 
            return dt;
        }
Benjamin
Top achievements
Rank 1
 answered on 16 Jan 2013
3 answers
90 views
Hi,
I have a button added in commanditemtemplate.

<MasterTableView DataKeyNames="ProductNumber" ShowHeadersWhenNoRecords="true" CommandItemDisplay="Bottom" EnableNoRecordsTemplate="false" AutoGenerateColumns="false" EditMode="InPlace" CommandItemSettings-ShowRefreshButton="false" >
                  <CommandItemTemplate>                    
                        <asp:Button ID="btnAddItem" Text="Add New Item" runat="server" CommandName="InitInsert">
                        </asp:Button>
                    </CommandItemTemplate>
<columns>
</columns>

How to add the code behind for the btnAddItem?

Thanks
Shinu
Top achievements
Rank 2
 answered on 16 Jan 2013
3 answers
149 views
Hi,
Is it possible to use the radgrid insert,edit options without using the tick mark..

when the user clicks on "Add new item" a new row is shown( editmode is inplace). after inputting data, i dont want the user to click on tick mark(insert) . Is it possible to avoid using the tick mark and still do the insert and update.

If yes, please provide a sample code for the same.

Thanks
Shinu
Top achievements
Rank 2
 answered on 16 Jan 2013
2 answers
153 views
Hello, 
I have customized the appointment editing window to show in a RadDock as a pop-up. When I double click on an appointment, my customized form will be show. The application is running on SharePoint 2010

Heres the c# code..

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatingEventArgs e)
        {
            appointmentRecurrenceEditor.ResetLayout();
 
            if (e.Mode == SchedulerFormMode.Insert || e.Mode == SchedulerFormMode.Edit)
            {
                e.Cancel = true;
            }
 
            Telerik.Web.UI.Appointment appointmentToEdit = RadScheduler1.PrepareToEdit(e.Appointment, RadScheduler1.EditingRecurringSeries);
 
            ScriptManager.RegisterClientScriptBlock(Page, GetType(), "formScript", "Sys.Application.add_load(openDoubleClickForm);", true);
            PopulateEditForm(appointmentToEdit);
 
        }
 
        private void PopulateEditForm(Telerik.Web.UI.Appointment editedAppointment)
        {
            Telerik.Web.UI.Appointment appointmentToEdit = RadScheduler1.PrepareToEdit(editedAppointment, RadScheduler1.EditingRecurringSeries);
            radPopSplitDuration.Value = appointmentToEdit.Duration.TotalHours;
            RecurrenceRule parsedRule;
            RecurrenceRule.TryParse(appointmentToEdit.RecurrenceRule, out parsedRule);
            appointmentRecurrenceEditor.RecurrenceRule = parsedRule;
 
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(this.RadScheduler1, radPopSplitDuration);
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(this.RadScheduler1, appointmentRecurrenceEditor);
        }

Ajax Manager in my page...
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="radPopSplitDuration">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radPopSplitDuration" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="appointmentRecurrenceEditor">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="appointmentRecurrenceEditor" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

RadDock
<asp:Panel runat="server" ID="DockPanel">
        <telerik:RadDock runat="server" ID="RadDock1" Width="650px" Height="530px" Closed="true"
            Style="z-index: 2000;" Title="<%$Resources:MyResources, SplitDetailsTitle%>">
            <Commands>
                <telerik:DockExpandCollapseCommand />
            </Commands>
            <ContentTemplate>
                <div>
                                <telerik:RadNumericTextBox ID="radPopSplitDuration" runat="server" Width="80">
                                </telerik:RadNumericTextBox>
                    <telerik:RadSchedulerRecurrenceEditor runat="server" ID="appointmentRecurrenceEditor" />
                </div>
            </ContentTemplate>
        </telerik:RadDock>
    </asp:Panel>


ScriptManager in my master page
<telerik:RadScriptManager runat="server" ID="ScriptManager" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />

Problem...
When I double click, A script error comes as 'Component 'SharedCalendar' was not found' . 

If I were to  remove the recurrence editor from the ajax manager in the aspx page and the ajax settings in the c# code, It will not give any error. It will update other controls such as 'radPopSplitDuration' but not the recurrence editor.

Any help would be gladly appreciated.
Hemika
Top achievements
Rank 1
 answered on 16 Jan 2013
6 answers
150 views
I have a page with a NumericTextBox with EmptyMessage set. This works and the EmptyMessage text is shown when the page loads. There is a problem when you go to a different page and then click the browser back button to return to the original page. In this case the EmptyMessage text is not shown. I tried this in IE8 and Chrome and get the same results in both. Is there a way to make this work?

Here is the code:
<asp:TextBox ID="textExistingAssets" MaxLength="10" Width="100" runat="server" />
<asp:RequiredFieldValidator ErrorMessage="Field is required" ControlToValidate="textExistingAssets" Display="Dynamic"
                        EnableClientScript="False" runat="server" />
 
<telerik:RadInputManager runat="server">
        <telerik:NumericTextBoxSetting Type="Currency" DecimalDigits="0" MinValue="0" MaxValue="2000000000" EmptyMessage="$">
            <TargetControls>
                <telerik:TargetInput ControlID="textExistingAssets" />
            </TargetControls>
            <Validation IsRequired="false" />
        </telerik:TextBoxSetting>
    </telerik:RadInputManager>
Patrick
Top achievements
Rank 1
 answered on 15 Jan 2013
1 answer
112 views
Hello,

I have a 3-tier hierarchy grid that, currently, displays great.  However, I run into problems when I start trying to export the data to PDF/Export.  Because it'd be a ton of code if I tried to post everything, I'll do my best using pseudocode.  Currently, my report hierarchy goes like this:

<radgrid1>
   <mastertableview>
      <detailtables>
         <gridtableview>
            <nestedviewtemplate>
               <radgrid2></radgrid2>
               <radgrid3></radgrid3>
               <radlistview></radlistview>
            </nestedviewtemplate>
         </gridtableview>
         <columns>
         ...
         ...
         ...
         </columns>
      </detailtables>
   </mastertableview>
   <columns>
   ...
   ...
   ...
   </columns>
</radgrid1>


Let's say radgrid1 holds customer names, and its one detail table holds product names, so that all the information in nestedviewtemplate holds production descriptions and such.

With the exception of of radgrid1, everything is databinded via the needdatasource event.  When i go to export to excel, my code looks something like this:

radgrid1.ExportSettings.OpenInNewWindow = true;
radgrid1.ExportSettings.ExportOnlyData = true;
foreach (GridDataItem i in radgrid1.MasterTableView.Items)
{
     i.expanded = true;
     foreach (GridDataItem j in i.ChildItem.NestedTableViews[0].Items)
          j.expanded = true;
}
radgrid1.MasterTableView.ExportToPdf();

The resulting PDF/Excel has all of the data from RadGrid1 and its child table exported, but nothing from the nestedviewtemplate.  Essentially, all I am getting is a list of Customer Names and Product names under them in my report, with no product description data.

Any advice would be great.

Thank you,
Pavlina
Telerik team
 answered on 15 Jan 2013
6 answers
153 views
Hi All,
I am encountering this issue with the radgrid enableheadercontextmenu, When I click one of the columns on my radgrid, the column on the right of my grid are getting hidden too. So it's hiding two columns at the same time. I can't find any settings that is allowing this. I already tried Tablelayout = "fixed" but still got the same problem. Below is the setting of my radgrid.

 

<telerik:RadGrid ID="grid" runat="server" Skin="Office2007"

 

AllowPaging="true" AllowSorting="true"  

 

 

 

 

 

PageSize="20" AutoGenerateColumns="false" 

 

 

 

ShowStatusBar="true" GridLines="None" Width="99%" 

 

 

 

OnNeedDataSource="grid_NeedDataSource"

 

OnItemCreated ="grid_ItemCreated"  

 

SelectedItemStyle-BackColor="LightSteelBlue"

 

 

 

AllowMultiRowSelection="False"

 

<SelectedItemStyle BackColor="LightSteelBlue"></SelectedItemStyle>

 

<HeaderStyle Font-Names="Verdana, Century Gothic" Font-Bold="true" Font-Size="8" ForeColor

="Navy"/> 

 

<ItemStyle Font-Names="Verdana, Century Gothic" Font-Size="8" Wrap

="false"/>

 

<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />

 

 

 

<AlternatingItemStyle BackColor="AliceBlue" Font-Names="Verdana, Century Gothic" Font-Size="8" Wrap="false" />

 

<MasterTableView Width="100%" AllowMultiColumnSorting="true" TableLayout="Auto"

 

 

 

AllowFilteringByColumn="true" IsFilterItemExpanded="false" EnableHeaderContextFilterMenu="true" EnableHeaderContextMenu ="true">

 

 

 

<GroupByExpressions 

 

<telerik:GridGroupByExpression 

 

<SelectFields 

 

<telerik:GridGroupByField FieldAlias="Week" FieldName="Rotation" FormatString

="{0 : S}"

HeaderValueSeparator = " : " />

 

 

 

</SelectFields 

 

<GroupByFields>

<telerik:GridGroupByField FieldName="Rotation" SortOrder="Ascending"/>

 

</GroupByFields>
</telerik:GridGroupByExpression> 

 

</GroupByExpressions>

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn UniqueName="CategoryName" DataField="Categoryname" HeaderText

="Category">

 

<ItemStyle Wrap="true" Width="130" Font-Names

="Verdana"/>

 

 

<HeaderStyle Width="130" Wrap="true" />

 

<ItemTemplate>
<asp:Label ID="lblCategoryName" runat="server" Text='<%#Eval("CategoryName") %>' Width="130"></asp:Label>

 

 

</ItemTemplate 

 

</telerik:GridTemplateColumn 

 

<telerik:GridBoundColumn UniqueName="Status" DataField="Status" HeaderText

="Status">

<ItemStyle Wrap="true" Width="150" Font-Names

="Verdana"/> 

 

<HeaderStyle Width="150" Wrap="true" />

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="EventName" DataField="Eventname" HeaderText

="Event Name">

 

<ItemStyle Wrap="true" Width="150" Font-Names

="Verdana"/> 

 

<HeaderStyle Width="150" Wrap="true" />  

 

<ItemTemplate>

 

<asp:Label ID="lblEventName" runat="server" Text='<%#Eval("EventName") %>' Width="150"></asp:Label>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="EventDetails" DataField="EventDetails" HeaderText

="EventDetails">

 

<ItemStyle Wrap="true" Width="200" Font-Names

="Verdana"/>

 

<HeaderStyle Width="200" Wrap="true" />  

 

<ItemTemplate>

 

<asp:Label ID="lblDetails" runat="server" Text='<%#Eval("EventDetails") %>' Width="200px"></asp:Label> 

 

</ItemTemplate>

 

</telerik:GridTemplateColumn> 

 

<telerik:GridBoundColumn UniqueName="BrandFl" DataField="CompanyEvent" HeaderText="Priority Brand" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

<NoRecordsTemplate></NoRecordsTemplate>

 

</MasterTableView>

 

 

 

<FilterMenu EnableImageSprites="False"></FilterMenu>

 

<ClientSettings AllowColumnsReorder="true">

 

 

 

</ClientSettings>

 

</telerik:RadGrid>

 

 

Pavlina
Telerik team
 answered on 15 Jan 2013
2 answers
127 views

Hi, I just wanted to know if it's normal that the client-side function findItemByAttribute() cant find any items when we use "ID" (Capitalization doesnt matter) as the Attribute name? If it is, any references that documents this?

this works:
var foundItem = menu.findItemByAttribute("MenuID", "1");

but not this:
var foundItem = menu.findItemByAttribute("ID", "1");


TIA


Martin




Martin Roussel
Top achievements
Rank 1
 answered on 15 Jan 2013
3 answers
260 views
Hi!

We are using a RadComboBox with filter="contains" with a webservice supplying results on demand. All is working well. However, lately, we have changed our search to use Lucene.NET indexing and not Database queries.
Now. Lucene.NET allows wildcards in queries, and this is where problems begin. Webservice returns a set of results, but RadComboBox doesn't display them due to Filter being set to Contains. If I remove Filter property, results are displayed, but not highlighted.
Also, Lucene.NET has it's own highlighter, which I tried to use mimicking what RadComboBox does, when filter is set, but to no avail, as em tag is apparently stripped form RadComboBoxDropDown when filter is not set. I also tried to use custom html tag, but that then gets displayed in combobox input field, which I don't want.

Is there a way of either implementing wildcards in RadComboBox filter or a way to override em stripping so that I can use Lucene.Net highlighter.
Vlad
Top achievements
Rank 1
 answered on 15 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?