Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
269 views
Hi,

I'am using PageLayout and Device Detection framework, version 2014.3.1024 (just released!).

The problem is: PageLayout responds incorrectly with device screen size and viewport of browsers.

For example:

- Set HiddenLg="True" for LayoutColumn, but this column is hidden with browser viewport 1025-1280 (which is actually Medium).
- Set HiddenXl="True" for LayoutColumn, but this column is hidden with browser viewport 1281 and higher (1281-1366 is actually Large, and 1367 and higher is Extra large).

This occurs with all other options and also device screen (I have tested on some mobile phones)... It seems PageLayout is always one step higher than  DeviceScreenSize enum of Detection framework. Looking inside your DeviceScreenSize enum (as pasted below), I think the problem is obviously there (perhaps?): This enum version is without ExtraSmall while PageLayout does have ExtraSmall option (Xs). So wrong mapping of value between PageLayout and DeviceScreenSize enum might cause one step different among the two.

The enum should be:

ExtraSmall = 0,
Small = 1,
Medium = 2,
Large = 3,
ExtraLarge = 4,

Please check if this is the problem.

By the way, I would suggest the following feature:

HiddenUp, HiddenDown (or whatever the name is)

In many cases (if not to say most cases), you want to set hidden to an element from a point upward or downward.
Let's say:

- Case HiddenDown:
You want to set hidden for a div with Medium, Small and ExtraSmall (display on Large and ExtraLarge), now you have to set these:
HiddenMd="True" HiddenSm="True" HiddenXs="True"

With HiddenDown="Md" would cover them all.

- Case HiddenUp:
You want to set hidden for a div with Medium, Large and ExtraLarge (display with ExtraSmall, Small), now you have to set these:
HiddenXl="True" HiddenLg="True" HiddenMd="True"

With HiddenUp="Md" would cover them all.

Actually, I have developed these features myself as additional functions of your PageLayout and they are working well, saving time and with less code.

Hope that this will come with the next version.

Thank you.
(And sorry for my bad English :()



============= DeviceScreenSize enum of Detection framework =============================================
    // Summary:
    //     The device screen size based on the its dimensions in CSS pixels
    //
    // Remarks:
    //     The default ranges are: Small (to 600) CSS pixels Medium (601-1024) CSS pixels
    //     Large (1025 - 1366) CSS pixels ExtraLarge (over 1366) CSS pixels
    public enum DeviceScreenSize
        {
        Small = 0,
        Medium = 1,
        Large = 2,
        ExtraLarge = 3,
        }
Ivan Danchev
Telerik team
 answered on 26 Sep 2016
3 answers
173 views

I have a dynamically built page with many different controls loaded onto the page.

Tthis page could have multiple rad editor on it.

 

The problem is that the page has the focus set on to the last rad editor loading on to that page.

Which events sets the focus to the content area?

the rad editor is drawn as divs

Rumen
Telerik team
 answered on 26 Sep 2016
4 answers
93 views
Hello,

I have this scenario,

I have a page with multiple text boxes and Rad Editor is at the end of the page, If I set the EditModes property of the RadEditor to HTML then when the Page is Loaded the Rad Editor steals the Page Focus and scrolls to the end of the page, I noticed that this does Not happen in Design and Preview Modes only when I select HTML Mode, why is that? Is this a Bug? If so, is there a quick workaround to this?
Thank you.

TextBox1
TextBox2
TextBox3
.
.
.
RadEditor



---
This was tested in Firefox, Crhome and IE and they all have the same problem.
Rumen
Telerik team
 answered on 26 Sep 2016
2 answers
131 views

Hi, every one

i use tool RadCaptcha in my Project but

RadCaptcha Audio in Chrome ,FireFox is working. ----- Have sound

and RadCaptcha Audio in IE11 ,Safari is not working ------ no sound

 

How do I solve this problem?

 

Please Help.

Thank you.

Rumen
Telerik team
 answered on 26 Sep 2016
6 answers
172 views

Hi,

We are having a problem with Paste from Word & Paste from Word, Strip Font Issue. The pasted text is broken and totally different compare to the text copied from the word document. Please find the attached for the sample text in word and the result in Chrome/FireFox. It works fine with IE edge but it does not in Chrome/FireFox.

Also when we try to bullet the last paragraph it does not work as expected, it bullets as expected but it works fine with "Paste" (Ctrl V)

Here's the link of the sample page - https://www.knowledgelink.training/Edit

Hope to hear from you soon.

Regards

Dev

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

Hello to all,
since I use ASP.NET AJAX UI v 2016.2.607 I found that web controls are larger and with more padding. I thought it was due to the new Skins Bootstrap but the controls remain large even with the old skin Metro or Default. Depends on what?

This becomes a problem when I have to update a Visual Studio 2015 Project to the new version of Telerik controls 2016.2.607. The layout is compromised by the new size of the controls.

I attach a JPG that demonstrates the problem

Thanks so much

Marin Bratanov
Telerik team
 answered on 26 Sep 2016
3 answers
90 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
171 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
76 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
266 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
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
Bronze
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?