Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Good afternoon,
In my Web Application I do have searching criteria with RadComboBox on it.RadComboBox consist of 2 values.Based on these value I am displaying RadGrid on the screen.
If value 'A' - all 4 Grids are displaying
if value 'P' - only 2 Grids are displaying.
My question is:If user select  value 'A' I need to display only 2 Grids and these grids are described in aspx page two bottom grids.How to display these 2 grids on the top of the screen like overlayed first two.
Because if I make first two visible=false then 2 other grids will display on the bottom of the page.

Thanks so much for your help
Shinu
Top achievements
Rank 2
 answered on 16 Oct 2013
2 answers
131 views
I have several Rad Textboxes with client side scripts attached to ClientEvent OnBlur. This script does two things checks to see that the box has text and changed the case of the text to Proper Case. 

My mark-up for the Textbox is.... 
<telerik:RadTextBox ID="RadTextBox1" runat="server" EmptyMessage="Please Enter" SelectionOnFocus="SelectAll" Width="100%">
    <ClientEvents OnBlur="function(sender,args){checkCap(sender, args, 'lb_RadTextBox1');}" />
</telerik:RadTextBox>
<asp:Label ID="lb_RadTextBox1" runat="server" CssClass="error"></asp:Label>


My hideError function is
function checkCap(sender, args, label) {
 
    var tb = $('#' + sender._clientID);
    var lb = document.getElementById(label);
 
   if ($.trim(tb[0].value) == "") {
       lb.innerHTML = " Mandatory Field";
   } else {
       var pc = pCase($.trim(tb[0].value));
       tb[0].value = pc;
         lb.innerHTML = "";
   }
}

The pCase function just goes through the text and capitalises only certain characters. This functions correctly and once a textbox has lost focus either a lable is populated with Mandatory Field if the box is empty or the text is properly capitalised if it contains any text.

My problem is on the server-side if I try to use the value of RadTextBox1.Text I get the text as it was originally typed not the capitalised version that is displayed. What am I doing wrong?
Mych
Top achievements
Rank 1
 answered on 16 Oct 2013
1 answer
82 views
In ASP.NET, I have a webpage that uses a RadGrid (v.2013.2.717.40 Dev). The RadGrid has AllowPaging="true" and it uses OnPageIndexChanged. When I browse the webpage, the RadGrid has about 20 pages of data (with like 10 rows per page). When I click any of the page buttons below the grid (First Page, Previous Page, Next Page, or Last Page), the PageIndexChanged event will execute as expected. But if I first select one of the rows in the grid before clicking a page button, the PageIndexChanged will not execute.

For example, when I first browse my webpage, the grid is on page 1 of 20. If I click the Next Page button until I get to, let's say, page 3 of 20, the PageIndexChanged will execute each time I click the Next Page button. If I were to then select one of the rows within the grid, and click the Next Page button, the grid will navigate to the next page, but it will not execute the PageIndexChanged event. Once I am at the next page, if I click the Next Page button again (with no rows selected), the PageIndexChanged event will fire, unless I first select one of the rows in the grid; in which case, once a row is selected, the PageIndexChanged will not fire.

When I google on this, I find others having a similar problem, but not quite the same as I describe here. How do I make sure that PageIndexChanged will fire every time, regardless of whether I have (or don't have) a row selected in the grid?

Thank you
Princy
Top achievements
Rank 2
 answered on 16 Oct 2013
1 answer
90 views
Hi,
I have a radChart with some filters at the top that resubmit the database query to redraw the chart. Some of the filters produce no results from the database which means the chart stays the same. I thought clearing the series would solve it so I do this

rcBubble.Series.Clear();

But I get an error when there are no results and I try to do this. Can someone please tell me how I reset the chart if there are no results.

It's similair to this problem but this is for WPF -http://www.telerik.com/community/forums/wpf/chart/chart-is-not-reset-when-i-clear-series-and-do-not-add-new.aspx


The error incidentally doesn't occur within the actual radChart code but I see from the stack trace it's something to do with the chart:
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Charting.RenderedObject.GetOrder() +6
   Telerik.Charting.MapAreaBuilderBase.GetPath(IOrdering element, ArrayList list) +44
   Telerik.Charting.MapAreaBuilderBase.AddImageMap(IOrdering elem, StringBuilder html, Boolean makeTooltipOnly) +239
   Telerik.Charting.MapAreaBuilderBase.GenerateImageMap(IContainer container) +2274
   Telerik.Web.UI.RadChart.RenderClassic(HtmlTextWriter writer) +1133
   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +387
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +126
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
   ASP._masterpages_masterpage_master.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:\Projects\LogIT\_masterpages\MasterPage.master:27
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +314
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +245
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5289
Petar Kirov
Telerik team
 answered on 16 Oct 2013
3 answers
74 views
Hello,

When is RadChart  likely to support Step Line Series?

Is there any work around whereby we could get the same result just with a line series?

Best regards.
Zhijie
Petar Kirov
Telerik team
 answered on 16 Oct 2013
1 answer
137 views
Hi

I wanted to set NavigateUrl values in my RadMenu in the markup in the following manner, but the click event never seem to happen.  Is this method not permissible for some reason?

Thanks

<telerik:RadMenuItem runat="server" Text="Current Campaign Home"  NavigateUrl='<%#  String.Format("~/childCampaignHome.aspx?campaignID={0}", Request.Params["CampaignID"]) %>' >
</telerik:RadMenuItem>


Dimitar Terziev
Telerik team
 answered on 16 Oct 2013
1 answer
61 views
Hello,

We have a three-level menu using RadMenu v2013.2.717:

<telerik:RadMenu BorderStyle="None" ExpandMode="ClientSide" Flow="Vertical"
         ID="mnuWhiteButton" runat="server" Skin="Default"
         EnableScreenBoundaryDetection="true" AutoScrollMinimumHeight="500"
         EnableAutoScroll="true" Width="18em">
    <Items>
        <telerik:RadMenuItem Text="Webcasts">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Periodicals">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Research Packages">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Top 15 Lists">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

Levels two and three are created from code.
The skin is specified via web.config as being Windows7:

<appSettings>
    [...]
    <add key="Telerik.Skin" value="Windows7" />
</appSettings>

In IE8 and Chrome, when hovering the mouse over an item on level one, only a part of the item is selected, instead of the entire item. This applies to skins Windows7, Outlook, Office2010Blue and Silver, Office2007 to name a few, but not to Default, Metro, Silk, etc.
Also, the selection is fine in levels two and three of the menu.

We would prefer to use the Windows7 skin -- is there a way to fix the issue in this skin?

Thank you.
Kate
Telerik team
 answered on 16 Oct 2013
1 answer
296 views
Hey there, 

I have a question as the following: 

I have a RadGrid which have a column InstallDate that is DateTime Type. 

and for example here is the data: 

11/10/2013
10/10/2013
9/10/2013
Not install

because I have a string inside that column, so how can I sort this kind of Column from this Grid. 

it is Urgent for me. 

Thanks,T
Kostadin
Telerik team
 answered on 16 Oct 2013
4 answers
134 views
Hi,

I'm using the asp Grid to bring back some very simple data using Telerik.Web.UI 2013.1.403.40

I have a problem where if I enable MasterTableView's CommandItemDisplay to anything other than None, it displays two header rows.

(I've attached a screenshot to demonstrate my issue.)


Here's my markup:

<rad:RadGrid runat="server" ID="grdGroupLeaderReport" AutoGenerateColumns="False">
    <MasterTableView CommandItemDisplay="Top">
        <CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False" ShowExportToExcelButton="True" />
        <Columns>
            <rad:RadGridBoundColumn DataField="Id" UniqueName="Id" HeaderText="Booking Id">
                <HeaderStyle Width="110px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right"></ItemStyle>
            </rad:RadGridBoundColumn>
                <rad:RadGridBoundColumn DataField="FirstName" UniqueName="FirstName" HeaderText="First Name">
                <HeaderStyle Width="150px"></HeaderStyle>
            </rad:RadGridBoundColumn>
        </Columns>
    </MasterTableView>
</rad:RadGrid>


And here's code behind to bind it (the data source is a DataTable):

grdGroupLeaderReport.DataSource = rc.GroupLeaderReport();
grdGroupLeaderReport.DataBind();

I need to display the Export to Excel button - and each time I enable that toolbar it shows up twice. Where am I going wrong? Please help! (See attached screenshot at bottom of post for an example.)



Also - this is less important - with the BoundColumn the header text is never picked up. I have to set it programmatically in the ItemDataBound event  this is quit annoying however, I can live with this, but why does it happen, am I missing something here too?

void grdGroupLeaderReport_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridHeaderItem)
            {
                var header = (GridHeaderItem)e.Item;
                header["Id"].Text = @"Booking No.";
                header["FirstName"].Text = @"First Name";
            }
        }

Thank you in advance for taking the time to look at this.
Pavlina
Telerik team
 answered on 16 Oct 2013
1 answer
37 views
It seems that the the barcode control can not output vml.
Pavlina
Telerik team
 answered on 16 Oct 2013
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?