Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
93 views
We have a content editor that uses the RadEditor for edit and display of HTML. Recent versions of the ASP.NET AJAX have caused this display problem for content blocks that contain a tag like <title /> instead of the correct <title></title>. Edge and Chrome do not like the <title /> and suppress the remainder of the page.

 

The sample test case content is simply

   <html>
   <head>
   <title />
   </head>
  </html>

 

 Older versions of the RadEditor modify the title to prevent the issue:

   <textarea id="ctl00_AdminContent_ContentEditor1_RadEditor1ContentHiddenTextarea" name="ctl00$AdminContent$ContentEditor1$RadEditor1" rows="4" cols="20" style="display:none;">

   %3chtml%3e
   %3chead%3e
   %3ctitle /%3e
   %3c/head%3e
   %3c/html%3e

   </textarea>

The current RadEditor versions emit a div instead of a textarea:

   <div id="ctl00_AdminContent_ContentEditor1_RadEditor1" class="RadEditor Web20 reWrapper" style="height:400px;width:680px;">
   <html>
   <head>
   <title />
   </head>
   </html>
   </div>

The working version is 2015.3.930 and failing versions are 2016.2.607 and 2016.3.914.

Regarding the <title /> issue, please see http://stackoverflow.com/a/196249

Thanks,

Gary Davis

 

Rumen
Telerik team
 answered on 26 Sep 2016
1 answer
174 views

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState="false">
       <Windows>
           <telerik:RadWindow runat="server" ID="rdWindowMessage" InitialBehaviors="Resize" Width="700px" Height="400px" Behaviors="None" EnableShadow="true" Modal="true"
               DestroyOnClose="true">
               <ContentTemplate>
                   <asp:Panel ID="pnlEventMessage" runat="server">
                       <br />
                       <div class="container">
                           <div class="row">
                               <div class="col-md-12 text-center">
 
                                   <asp:Image runat="server" ID="imgMessageInfo" Visible="true" ImageUrl="/_layouts/images/mewa_infob.gif" />
                                   <asp:Image runat="server" ID="imgMessageCritical" Visible="false" ImageUrl="/_layouts/images/CRIT_32.GIF" />
                               </div>
                           </div>
                           <div class="row">
                               <div class="col-md-12 text-center">
                                   <asp:Label runat="server" ID="lblMessage" />
                               </div>
                           </div>
                           <div class="row">
                               <div class="col-md-12 text-center">
                                   <telerik:RadButton ID="rdBtnMessageOk" runat="server" Text="Ok" OnClick="rdBtnMessageOk_Click"/>
                               </div>
                           </div>
                       </div>
                   </asp:Panel>
               </ContentTemplate>
           </telerik:RadWindow>
       </Windows>
   </telerik:RadWindowManager>

Hi, 

I have implement a RadWindow to display the outcome of a process and there is a "ok" button in RadWindow to close it. 

When i click on the browser back button, the previous RadWindow  message will show out.

I like to know is there anyway to stop the RadWindow showing when users click on the browser 'back' button? 

How should i handle it?

Thank,

 

Marin Bratanov
Telerik team
 answered on 26 Sep 2016
3 answers
79 views
Hi
Is it possible  RadScheduler works with RadControls for ASP.NET (2006 Q4) on FRAMEWORK 2.0 in same projects ? 
Can you send me an basic example ?
Thanks
Marin Bratanov
Telerik team
 answered on 26 Sep 2016
3 answers
271 views

I have a RadGrid with a DetailTableView. I populate a detail table in the OnDetailTableDataBind handler when the node is expanded.
However, when I postback the page, the DetailTableViews data will be empty.
Is there a way to persist the data?
I have tried to set ViewStateMode="Enabled" on the GridTableView.
The attached screenshot1.png depicts the grid after I have populated the detail table:

When I have changed the starttime for the RadGrid table item, the detail table is now emptied.

The attached screenshot2.png shows what it will look like.

Here is the declaration of the RadGrid:

<telerik:RadGrid ID="grd" AutoGenerateColumns="False"
  OnDetailTableDataBind="grdActivitiesToCopy_OnDetailTableDataBind"
  AllowMultiRowSelection="True" runat="server" ViewStateMode="Enabled">
  <MasterTableView>
    <Columns>
      <telerik:GridClientSelectColumn UniqueName="DetailCheckColumn" />
      <telerik:GridBoundColumn HeaderText="Date" DataField="StartDay"/>
      <telerik:GridBoundColumn HeaderText="Time" DataField="TimeInterval"/>
      <telerik:GridBoundColumn DataField="EventName" HeaderText="Activity"/>
      <telerik:GridTemplateColumn HeaderText="New starttime">
        <ItemTemplate>
          <telerik:RadDateTimePicker runat="server" SelectedDate='<%#Eval("DateStart") %>'
            AutoPostBackControl="Both"
            OnSelectedDateChanged="GrdActivities_OnStartDateChanged"/>
        </ItemTemplate>
      </telerik:GridTemplateColumn>
      <telerik:GridTemplateColumn HeaderText="New endtime">
        <ItemTemplate>
          <telerik:RadDateTimePicker ID="endDateTime" runat="server"
            SelectedDate='<%#Eval("DateEnd") %>'/>
        </ItemTemplate>                       
      </telerik:GridTemplateColumn>
    </Columns>
    <DetailTables>
      <telerik:GridTableView ShowHeadersWhenNoRecords="True" Name="Child"/>
    </DetailTables>
  </MasterTableView>
  <ClientSettings
    <Selecting AllowRowSelect="true"/> 
  </ClientSettings
</telerik:RadGrid>

grdActivitiesToCopy_OnDetailTableDataBind is called when the item is expanded (every time). I would prefer to have the detail tables populated in the Page_Load event.
Is that possible?

 

Eyup
Telerik team
 answered on 23 Sep 2016
2 answers
74 views

I may be configured something wrong, but after enabling ARIA support on the RadPanelBar all I can see is that the items are rendered with a role="tab".

Shouldn't the RadPanelBar itself be rendered with a role="tabstrip" attribute?

Actually, in the project I'm assigned to, the RadPanelBar is used as a means of navigation - it's bound to the SiteMapDataSource. So I'd like to change the RadPanelBar's role to "navigation". How can I do this?

Your answers are appreciated.

A
Top achievements
Rank 1
 answered on 23 Sep 2016
2 answers
73 views
See the two images? Two radwindows in the same application, opened the same way. Two different "styles"? What's the deal with this? What controls it? I think they both look ok, but it would be sort of awesome if I could pick just one!
Paul
Top achievements
Rank 1
 answered on 23 Sep 2016
4 answers
99 views

HI

What would cause this line to return Undefined. This was working in the VB version, but I'm redoing it in C# binding to an oData webservice deserialised using NewtonSoft.json library.

function OnClientAppointmentClick(sender, eventArgs) {
var booking_id = eventArgs.get_appointment().get_attributes().getAttribute("Id");
alert(booking_id);

I have the id in the datasource and the following markin in the control.

DataKeyField="Id"
CustomAttributeNames="Id"
DataSubjectField="Descrption"
DataStartField="SlotStart"
DataEndField="SlotEnd"

Andy Green
Top achievements
Rank 2
 answered on 23 Sep 2016
9 answers
255 views
I have a RadComboBox with multiple columns of text shown, I have not found a solution to the virtual scrolling duplicating all items in the combo.

Here is the code - aspx:

<telerik:RadComboBox ID="radcmbProduct" runat="server" Width="400px" Height="200px" AllowCustomText="false"
                            EmptyMessage="Select a Product" EnableLoadOnDemand="True" ShowMoreResultsBox="true" DropDownWidth="600px"
                            EnableVirtualScrolling="true" HighlightTemplatedItems="true" MarkFirstMatch="true" ItemsPerRequest="60"
                            NoWrap="true" OnItemsRequested="radcmbProduct_ItemsRequested" OnItemDataBound="radcmbProduct_ItemDataBound">
                            <HeaderTemplate>
                                <ul>
                                    <li class="col1">Title</li>
                                    <li class="col2">System</li>
                                    <li class="col3">Price</li>
                                </ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <ul>
                                    <li class="col1">
                                        <%# DataBinder.Eval(Container.DataItem, "Title") %></li>
                                    <li class="col2">
                                        <%# DataBinder.Eval(Container.DataItem, "GameSystemName")%></li>
                                    <li class="col3">
                                        <%# DataBinder.Eval(Container.DataItem, "DisplayPrice")%></li>
                                </ul>
                            </ItemTemplate>
                        </telerik:RadComboBox>

and here is the code behind:

private DataSet GetProductDataSet(string productText)
        {
            string errorMsg = string.Empty;
            DataSet DS = new DataSet();
            Product.GetByName(FacilityID, productText, ref DS, ref errorMsg);
            return DS;
        }
 
        protected void radcmbProduct_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            DataSet data = GetProductDataSet(e.Text);
            radcmbProduct.DataSource = data;
            radcmbProduct.DataBind();
        }
 
        protected void radcmbProduct_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
        {
            e.Item.Text = ((DataRowView)e.Item.DataItem)["Title"].ToString() + " | " + ((DataRowView)e.Item.DataItem)["GameSystemName"].ToString() + " | " + ((DataRowView)e.Item.DataItem)["DisplayPrice"].ToString();
            e.Item.Value = ((DataRowView)e.Item.DataItem)["ProductID"].ToString();
        }


So I need to find a way to prevent the items duplicating on scrolling, while maintaining the multiple column text capability.   I have tried adding radcmbProduct.Items.Clear()  prior to the DataBind() in the Items Requested method, however, this had no effect.

I have tried using the attributes as suggested in a previous post however, there were issues with that where the multi-column would only populate the first column.  

I have not found a working solution.

joseph
Top achievements
Rank 1
 answered on 22 Sep 2016
3 answers
157 views

Hi

is it possible to show custom images / image files in the chart, over the scatterlineseries?

 

If possible, could you provide some examples

 

Regards,

Auvo

 

Vessy
Telerik team
 answered on 22 Sep 2016
2 answers
154 views
I am using Telerik RadGrid for AJAX UI. The grid is being used in batch edit mode. Grid has a column which needs to display dropdown in edit mode. In telerik forums, the approach is used by using SQLDatasource. But I wish to populate the dropdown when the the cell is clicked. I guess the only way to achieve is to use the client side api. Can somebody guide me on how to achieve this.
Shridhar
Top achievements
Rank 1
 answered on 22 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?