Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
150 views
This can be demonstrated on your demo page at

http://demos.telerik.com/aspnet-ajax/window/examples/radwindowandmdi/defaultvb.aspx

If you keep adding windows, which causes new tabs to be added, you end up with a single tab in a second row.  The scroll bars work, but you still end up with the second row.

Can you advise?

Thanks.
Evtim
Top achievements
Rank 1
 answered on 11 Nov 2011
1 answer
87 views
Hi,

Was wondering if anyone else has seen this and maybe fixed it:

I have a RadGrid inside a panel - it basically shows email headers in the grid and a panel below show the email details when a row is clicked - similar to a WebMail / Outlook type thing. Splitterbar between them.

The Grid has 50 items per page and many pages. If I click on a row that is visible without scrolling the grid e.g. Row 5 - it is selected and the ajax JS fires to load in the email detail fine. If I scroll the grid, even by 1 row and then click a row (any row) - the grid scrolls back to the top and no row is selected.

This only happens in IE9 and only if EnableDragToSelectRows=False

If I set EnableDragToSelectRows=True then I can scroll down and select one or more rows without issue. However, if I then set AllowRowsDragDrop to true, I can select the row but if I right click the selectewd row to show a context menu - this then scrolls back to the top of the grid. If I set AllowRowsDragDrop=False then I can select the row after scroll and show the context menu fine but obviously I can't then drag this row to a tree etc.

I am unable to reproduce this in a simple test to provide code, so I am guessing it is something I have done with some setting/JS etc but just hoping someone else may have done the same and fixed it.....

AllowKeyboardNavigation is turned on as I need this too. But this doesn't seem to change the behavour of the problem.

Thanks in advance.

Ro
Rohan
Top achievements
Rank 1
 answered on 11 Nov 2011
3 answers
101 views
Hi,
I have a program to export content of radgrid to excel file as follows:
RadGrid1.ExportSettings.IgnorePaging = true; (or false)
RadGrid1.ExportSettings.OpenInNewWindow = false;
RadGrid1.ExportSettings.ExportOnlyData = true;
 
RadGrid1.MasterTableView.ShowFooter = false;
RadGrid1.MasterTableView.AllowFilteringByColumn = true;
RadGrid1.ExportSettings.FileName = "FPG_Orders_All_Pages";
 
RadGrid1.MasterTableView.ExportToExcel();
It worked fine before. But recently it is very slow to open file dialogbox. Once clicking on open or save, it displays a box shown in image and seems downloading the current webpage containing the radgrid. I have to click on cancel and then it will popup excel windows. I want to know what causes this problem. Is there a upgrade of telerik for that?

Thanks.
Daniel
Telerik team
 answered on 11 Nov 2011
3 answers
485 views
ASP.net has had a bug with the RadioButton controls running inside of templates since 1.0. I wanted to use the RadButton as a replacement for the standard RadioButton. I have multiple Radbuttons (in Radio mode) being built by a RadListView. When the result is rendered, I get radio buttons that don't participate as if in a Group ( You can select all the radio buttons ).

Same thing happens to ASP.net RadioButtons. In the past I've hacked around this with custom RadioButton classes that handle outputting the propert ID to the client with respect the GroupName property. Also, I've done the client side javascript hack.

This is such a common hack in ASP.net I was hoping the Telerik RadButton would just work in this situation. 

Here's an example of me using the Radbutton in a template:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CheckListInputGroupView.ascx.cs" Inherits="ProjectCold.RadTest.WebApplication.Views.CheckListInputGroupView" %>
<%@ Import Namespace="ProjectCold.RadTest.WebApplication.Model" %>
<%@ Import Namespace="Telerik.Web.UI" %>
 
<telerik:RadListView ID="RadListView" runat="server"
    DataSource='<%#Bind("GroupItems")%>'
    ItemPlaceholderID="GroupItemsHolder"
    DataKeyNames="GroupItemID">
    <LayoutTemplate>
        <fieldset title='<%#Eval("ToolTip")%>'>
            <legend><%#Eval("Caption")%></legend>
            <asp:Panel ID="GroupItemsHolder" runat="server" />
        </fieldset>
    </LayoutTemplate>
    <ItemTemplate>
        <telerik:RadButton
            runat="server"
            GroupName='<%#Eval("FK_CheckListInputID", "InputGroup{0}")%>'
            Text='<%#Eval("Text")%>'
            ButtonType="ToggleButton"
            ToggleType='<%# ( (CheckListInputGroup.InputGroupTypes)Eval("CheckListInputGroup.InputGroupType") == CheckListInputGroup.InputGroupTypes.Radio ? ButtonToggleType.Radio : ButtonToggleType.CheckBox) %>'
             />
    </ItemTemplate>
    <ItemSeparatorTemplate>
        <br />
    </ItemSeparatorTemplate>
</telerik:RadListView>

What's the best way to get my RadButton's to act like proper RadioButton's (mutually exclusive selection)?

Also, this is .Net 4, so I have access to the new ClientIDMode. I tried switching it to static, and using a static ID, but it caused a JSON error later when i click on a button.

Kevin
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
99 views
Hi ,
          I want to implement sub grouping for radscheduler by using multiple Resources. For example i have two multi select drop down lists with names State and City. If the user selects multiple values from both State and City in this senario i have to do main group based on State and sub group based on City. From your live demo links i am attaching sample image please find. From the below attached file, i want to show the State in the place of Date after that i have to do sub group based on respective cities under that state.
 
        Kindly help me out from this. Thanks in advance.
Thanks,
Maddela.
Plamen
Telerik team
 answered on 11 Nov 2011
4 answers
131 views
Hi,

I've a master page that contains RadScriptManager, a default.aspx page that contains a RadTabStrip and a RadMultiPage. I've an Xml file that defines a collection of user controls with each element defining attributes of the control. In the Page_Load method of Default.aspx.cs, I'm dynamically generating a RadTab and and a PageView for each control definition in the Xml file (controls are exactly same except that they are bound to different server/databases to support various groups). I'm able to succesfully generate RadTab for each control. However when I click any of the controls in the loaded user control (e.g. a ListBox selection change), I end up getting a Jscript error in VS 2010 that says:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null.
Parameter name: source

I've tried everything that I could think of such as loading the controls on Page_Load (outside and inside !IsPostBack), setting autopostback of TabStrip to true, to no avail. I'm not able to hit the code in the project at all since the JScript error is thrown before that. BTW if I use an asp:placeholder and generate the controls inside a table and add them to placeholder everything works fine. This has something to do with RadTabStrip and RadMultiPage combination.

Could you please suggest what could be the reason for seeing this issue?

Thanks,
Kirpa
Peter
Telerik team
 answered on 11 Nov 2011
2 answers
65 views
Hi,
Sorry for the second post.  If the features I have listed are not available out-of-the-box, can we purchase your source code and modify that to achieve results?  If so, please  let us know the cost of purchase.

Thanks,
Shefali

 

Plamen
Telerik team
 answered on 11 Nov 2011
2 answers
50 views
I have combobox that is EnableAutomaticLoadOnDemand=true
It is not in a grid or a form, and the object and events for the combo are available via the .NET code pickboxes.
Every so often the Selection out of range Parameter name: value  exception will rear it's ugly head.
I was driving three other radgrid on my page without problem. This exception will show weather the combo is part of hte ajaxmanager or not. I read that clearing the combo will solve this, but all this is set to automatic.
See combo config below:

<telerik:RadComboBox runat="server" ID="ddlEmployee" DataSourceID="dsEmployeeID"
                            EmptyMessage="Select an Employee"
                            skin="Vista" 
                            DataTextField="txt"
                            DataValueField="EmpID"
                            Width="300px"
                            DropDownWidth="350px"
                            CausesValidation="false"
                            AutoPostBack="True"
                            EnableVirtualScrolling="true"
                            Filter="Contains"
                            EnableAutomaticLoadOnDemand="true"
                            HighlightTemplatedItems="true"
                            ShowMoreResultsBox="true"
                            AllowCustomText="true"
                            MarkFirstMatch="true" 
                            SortCaseSensitive="False"
                            ItemsPerRequest="20">
                            <HeaderTemplate>
                                <table style="width: 350px; text-align: left">
                                    <tr>
                                        <td style="width: 110px;">Last Name</td>
                                        <td style="width: 110px;">First Name</td>
                                        <td style="width: 130px;">Employee ID</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 315px; text-align: left">
                                    <tr>
                                        <td style="width: 125px;">
                                            <%#DataBinder.Eval(Container.DataItem, "LName")%>
                                        </td>
                                        <td style="width: 125px;">
                                            <%#DataBinder.Eval(Container.DataItem, "FName")%>
                                        </td>
                                        <td style="width: 100px;">
                                            <%#DataBinder.Eval(Container.DataItem, "EmpID")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>
Patrice
Top achievements
Rank 1
 answered on 11 Nov 2011
1 answer
142 views

I want to get the client Id of grid cell with the help of cleint side.

Please find the client side code which I am using to get

function handleRowClick(sender, args)

{

var masterTable = sender.get_masterTableView();

var cellIndex = args.get_domEvent().target.cellIndex;

var cellText = args.get_domEvent().target.innerHTML;

var colName = masterTable.getColumnUniqueNameByCellIndex(getHeaderRow(sender), cellIndex) ;
var cellID=???;

}

function getHeaderRow(sender)

{

var masterTable = sender.get_masterTableView();

return masterTable.HeaderRow == null ? sender.get_masterTableViewHeader().get_element() : masterTable.HeaderRow;

}

and use this line of code within grid for clientevents

 

<ClientEvents OnFilterMenuShowing="filterMenuShowing" OnRowClick="handleRowClick" />

Please suggest on it .

Thanks
Shimab


Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
152 views
Hi,

I want to call a javascript function just before the click event of filterMenu for "Equals" option.
How can I achieve this?

TIA.
Princy
Top achievements
Rank 2
 answered on 11 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?