Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
226 views

I have broken down the site I am developing into multiple files developed as user controls. It makes more sense to simply add a single usercontrol than to add half a dozen or more other controls to multiple pages, plus when I need to edit the item it gets applied site-wide. However, there seems to be an issue that I am not sure how to handle.

I have a user control "header.ascx" that is included on several webpages.

<%@ Register Src="menu.ascx" TagName="menu" TagPrefix="uc1" %>
<div id="header">

    <div id="orgname" class="headerinfo" style="position: relative; z-index: 1500; text-align: right">
        <asp:Label ID="lblOrganizationName" runat="server" Font-Names="Arial Black" ForeColor="Gray" Text="Organization Name"
            Font-Size="Large"></asp:Label>
    </div>
    <div id="logindetails" class="headerinfo" style="text-align: right; position: relative;
        z-index: 1500; top: 0px; left: 0px;">
        <asp:Label ID="lblUser" runat="server" Font-Names="Arial" ForeColor="Gray" Text="User Name"
            Font-Size="Small"></asp:Label
        <asp:LoginStatus ID="LoginStatus1" runat="server" Font-Names="Tahoma,Arial" ForeColor="#FF6600" />
           
        <asp:Label ID="lblPage" runat="server" Font-Names="Arial Black" ForeColor="Gray"
            Text="" Font-Size="Small"></asp:Label>   
        <uc1:menu ID="menu1" runat="server" />
    </div>
</div>

As you can see, I have also included a user control "menu.ascx" that is part of the header as well as part of other pages that don't include the full header.

When I view menu.ascx in the IDE, the menu is rendered correctly. If I view header.ascx in the IDE the menu is rendered correctly, however, whenever I view any page in the IDE that has a header user control, I get an error "Unknown server tag 'telerik:RadMenu'" and the menu isn't rendered.

When the menu isn't nested in another user control, it displays correctly. However, when it is included as part of a larger user control, it does not.

I can build the site and it renders correctly in the browser, however, I cannot see how it interacts with the design when it will not show on the main page.

Am I missing a directive or something so this will display?

Boyan Dimitrov
Telerik team
 answered on 06 Jun 2013
1 answer
60 views

Hello, I have some content which needs to be extracted as a PDF and right now I'm able to achieve this by Using RadEditor Export to PDF functionality.

Today We have observed that the extracted PDF is not getting displayed in Windows 8 PDF reader. Is it anything that can be fixed from the Editor itself ?

Danail Vasilev
Telerik team
 answered on 06 Jun 2013
2 answers
56 views
Hello all,

I have the ASP.NET Telerik controls and would like to do something using the AJAX controls, but I need some direction to get started.  I have a RadGrid that's pulling back data from a database.  In each row, there's an asp.net checkbox control and a text box (both within separate GridTemplateColumn rows).  Outside of the grid there is an asp.net label that contains the sum of each text box.  (This was a requirement of the solution).  What I'd like to have happen is, whenever a user checks/unchecks the checkbox, the value within the text box of that row toggles between 0 and the value of another gridrow.  At the same time, the label displays the updated total of all textboxes within the grid.

I know this can be done through javascript, but I was hoping I could take advantage of Telerik controls and the AJAX capabilities to do this without having to write code.  Is this possible with, say, Telerik update panels, Ajax Manager and other controls?

Thank you in advance.
Eyup
Telerik team
 answered on 06 Jun 2013
1 answer
286 views
Hello ,

I want to change mouse cursor when i perform drag and drop functionality in radtreeview control ,
actually i show validation image  with cursor that this is valid drag and drop or not 
Please give solution as soon as 

Thanks Regards
Rakesh Jogani
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2013
25 answers
2.0K+ views
Hey,

Here is what I got:

<asp:RadGrid id="r1" runat="server"..>
  <MasterTableView ..>
    <Columns>
      <tel:GridTemplateColumn ..>
         <asp:Label id="l1" runat="server" Text='<%# Eval("Name") %>' />
       </tel:GridTemplateColumn>
      <tel:GridTemplateColumn ..>
         <asp:Label id="l2" runat="server" Text='<%# Eval("Address") %>' />
       </tel:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</asp:RadGrid>

JS Scripts for binding.

//Loading script - this works in that it binds the objects

var

 

radGrid = $find("<%= rg.ClientID %>");

 

 

var view = radGrid.get_masterTableView();

 

view.set_dataSource(results);

view.dataBind();

I tapped into RowDataBound client event so that I may be able to bind it, but I don't know how I can bind to the label in the template.  The issue is, on the server side, I bind an empty array on load server side, so that the mastertableview gets created:

rg.DataSource = new object[] { };
rg.DataBind();

BUt, the no records template appears, and not my template, so I don't know how to bind to the labels....

Any advice would help.

Thanks.

Pavlina
Telerik team
 answered on 06 Jun 2013
5 answers
697 views
Hello,

I have a GridDateTimeColumn in a radgrid that displays the date in yyyyMMdd format. In my SQL Server db the format is in yyyy-mm-dd. 
This is my current aspx on that column:

<telerik:GridDateTimeColumn DataField="DateCode" DataType="System.DateTime" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="true" DataFormatString="{0:yyyyMMdd}" FilterControlWidth="70%" AllowSorting="true"  AutoPostBackOnFilter="true" HeaderText="DateCode" SortExpression="DateCode"  UniqueName="DateCode"  FilterListOptions="AllowAllFilters" PickerType="None" AllowFiltering="true" FilterDateFormat="yyyyMMdd">
 </telerik:GridDateTimeColumn>

This one is commented out, but I tried this as well:
<%--    <telerik:GridBoundColumn DataField="DateCode" DataType="System.Datetime" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="true" DataFormatString="{0:yyyyMMdd}"  FilterControlWidth="70%" AllowSorting="true"  AutoPostBackOnFilter="true" HeaderText="DateCode" SortExpression="DateCode" AllowFiltering="true"  UniqueName="DateCode">
             </telerik:GridBoundColumn>--%>

And when I try to filter the column, the filter control gets highlighted in red and a warning sign appear inside of it, but does not have any message. Do you know what is going on? Is it because the format is different from how it is in SQL db? If so, what else do I need to add/change/remove for it to work?

Attached is an image of what I get when I use the filter control.
Vasil
Telerik team
 answered on 06 Jun 2013
4 answers
66 views
Hi,

when a Grid is configured with the AllowKeyboardNavigationSettings="true", AllowMultiRowSelection="true" and AllowScroll="true" the Select All button of the GridClientSelectColumn behaves oddly in Internet Explorer. It seems that each row is checked/unchecked individually and the grid is scrolled to show the row that is being checked.

I made a screencast of the odd behavior: http://screencast.com/t/GkyzR8ACa

To reproduce configure a Grid with the above mentioned settings, klick inside the grid and use the arrow keys to navigate between rows, then click on the Select All Button in the Grid Header.

The problem probably exists in other browsers as well. In Chrome the grid ends up being scrolled all the way to the bottom after Selecting/Deselecting All, but the effect is less visible probably because Chrome's Javascript performance is better.


Constantin
Top achievements
Rank 1
 answered on 06 Jun 2013
11 answers
348 views
Hello,

I want to change the default button with a RadButton.  This button opens a RadWindow.

My previous code was:
<asp:ImageButton ID="btnFunctie" runat="server" onclientclick="ShowDialog();return false;" CssClass="imgbtn" Height="16px" Width="16px"/>

New code:
<telerik:RadButton ID="btnFunctie" runat="server" onclientclicking="ShowDialog();return false;"></telerik:RadButton>

The new code gives a Javascript error and its definetly with the  -- onclientclicking="ShowDialog();return false;" --

Can you help me out with this?  I have no knowledge with Java.

Kind Regards,
Kris

Danail Vasilev
Telerik team
 answered on 06 Jun 2013
2 answers
120 views
Hi ,

I am having issue with RadRating control , It renders fine if the browser is zoomed to 100 %. But in chrome if the browser is zoomed 90 % or below 1 out of 5 stars will go missing. 

I can see that the 5th start is there in source code but pushed to a new line and goes hidden, I checked Demo page of RadRating control  (http://demos.telerik.com/aspnet-ajax/rating/examples/gridrating/defaultcs.aspx) and this issue is there as well. 

It will be very rare someone zooming their browser to 90 % but it will be better to make sure even when that happens control will be  rendered fine. 

Steps to reproduce the issue:

1. Take the demo page in chrome
2. Set zoom to 90% 
3. Reload the page

I tried setting CSS zoom on both control and the whole body but it is not helping. Setting a CSS zoom  of 50 % on control will show all 5 stars  but then the stars will be too small. It will be great if someone can suggest me a workaround to fix this. 

Thanks,
Rahul

UPDATE:

I manage to hack the code by setting width of RadRating div from 104px to 112px using jQuery on page load. Still it will be great to know a nice and neat way to fix this.
Rahul
Top achievements
Rank 1
 answered on 06 Jun 2013
3 answers
177 views
Hello,

On page load I want to give a RadComboBox focus but still display the emptymessage. When I start typing, I want the emptymessage to disappear. Is this possible?
Nencho
Telerik team
 answered on 06 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?