Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
365 views
I have a RadGrid and a Panel which has the visibility = false (as default).

I need to click a Row or a button to send that Rows ID to that panel and make that Panel visible in server side

<form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function RowDblClick(sender, eventArgs) {               
                //alert("Chosen Row ID: " + eventArgs.getDataKeyValue("ID"));
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" Width="97%" CellSpacing="0"
        GridLines="None" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" ClientDataKeyNames="ID"
            Width="100%" CommandItemDisplay="Top" PageSize="5">
            <Columns>
                <telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID" UniqueName="ID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="TesisatNo" HeaderText="Tesisat No" SortExpression="TesisatNo"
                    UniqueName="TesisatNo">
                </telerik:GridBoundColumn>                             
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="true"></Selecting>
            <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
        </ClientSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>       
    </telerik:RadGrid>
    <asp:Panel ID="PanelDetails" runat="server" Visible="false">
        THIS BECOMES VISIBLE ON DOUBLE CLICK OR ON BUTTON CLICK
           ALSO THE SELECTED ROW ID MUST BE RECEIVED HERE
    </asp:Panel>
    </form>
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Jan 2013
2 answers
219 views
Hi, 

Have a RadGrid inside a RadPane. Have also enabled RowSelect service. When I preview the page, and on selecting the row it expands.
How can I stop it from expanding. Have turned on AutoPostBack, it also behaves as a master row to a detail grid.

Part of the Code:

<telerik:RadPane ID="RadPaneLocations" runat="server" Height="15%" MinHeight="15" MinWidth="15" Scrolling="None">
                        <asp:Label ID="LabelLocations" runat="server" Text="Locations: " BackColor="#EFEFF2" Width="100%" Height="18px"></asp:Label>
                        <telerik:RadGrid ID="RadGridLocationList" runat="server" CellSpacing="0" GridLines="None" DataSourceID="ODSLocationList" AllowSorting="True" Skin="Default">
                            <ClientSettings EnablePostBackOnRowClick="True">
                                <Selecting AllowRowSelect="True" />
                                <Scrolling UseStaticHeaders="true" FrozenColumnsCount="1" ScrollHeight="100" AllowScroll="True"></Scrolling>
                            </ClientSettings>
                            <MasterTableView AutoGenerateColumns="False" DataKeyNames="lead_id,location_id" DataSourceID="ODSLocationList">
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="lead_id" DataType="System.Int32" FilterControlAltText="Filter lead_id column" HeaderText="lead_id" ReadOnly="True" SortExpression="lead_id" UniqueName="lead_id" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="location_id" DataType="System.Int32" FilterControlAltText="Filter location_id column" HeaderText="location_id" ReadOnly="True" SortExpression="location_id" UniqueName="location_id" Visible="false">
                                    </telerik:GridBoundColumn>




Any help is appreciated.
Rektile
Top achievements
Rank 1
 answered on 28 Jan 2013
6 answers
211 views
Hi,
I have a page with RadAjaxpanels, ajaxmanager and scriptmanager.
what is happening is, if I make a request and while this request goes on, if I open a new browser page and make another request to the same page, it just hangs until the first request on the other browser window finishes.
I tried this in IE, FF and Chrome, all the same.
But if I open a browser in IE and another one in FF and do subsequent requests, everything is fine, they don't wait for each other.
And finally, this doesn't happen in asp.net development server, just working fine. This only happens in IIS6 when I push it to production.
I tried to change RequestQueueSize with no help.
Any ideas?
Thanks.
Craig A
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
74 views
I'm not exactly a CSS expert (or styling expert). 

I have a 4.0 web app with two master pages and a system-wide css file.  The master pages both have SkinManagers set to Transparent.  All the grids (and most other Telerik controls have their skin set to default.) 

Each master page has a reference to the system css:   <link href="../Content/CSS1.css" rel="stylesheet" />

The problem is this.  I want all grids to have a alternating row back color of Alice Blue. I have a declaration: 
div.RadGrid .rgAltRow {  background: AliceBlue; }

If I put this in the main CSS file, nothing happens.  If I put this in the master pages, within a <style> block, it works fine.

What am I doing wrong?
Maria Ilieva
Telerik team
 answered on 28 Jan 2013
1 answer
127 views
Hai,

 I have attached Telerik Rad chart image. I need series color with out shadow ( Highlighted Colors in the attached image). Please reply asap.

Regards
Palani
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
90 views
Hello

I have a problem when try to export Content of the radEditor to pdf file using ExportContent event. When there is a cyrilic symbols in the content, in the generated pdf file they appears as follows:

############

the Language property of the editor is set to 'bg-BG' and SpellCheckSettings-Dictionarylangugae is also set to 'bg-BG'
Rumen
Telerik team
 answered on 28 Jan 2013
3 answers
168 views
I have a problem with dotted border, which appears when I click on a table footer (only in Firefox). You can see this behavior for example on online demos of Telerik RadGrid (http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/WebGrid/DefaultCS.aspx). In Firefox, click somewhere near word Ready in table footer, then a dotted border around table appears.

Can somebody help, please?
Sophie
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
1.0K+ views

My Combobox has an ItemTemplate consisting of a label and 2 Radbuttons (Checkbox Toggletype) on each row.  The combox is loaded using a Datatable for now.  Everything works fine, except that when a user clicks on a Row instead of in an ectual checkbox, the dropdown closes gracefully but now says System.Data.DataRowView instead of EmptyMessage="- Select -"

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        If Not Page.IsPostBack Then
           
            DisplayPrintOptions.DataSource = GetPrintDisplayProfile()
            DisplayPrintOptions.DataBind()
 
        end if
 
Private Function GetPrintDisplayProfile() As DataTable
 
        'Get users Preferred Layout
        Dim dt As New DataTable()
        dt.Columns.Add(New DataColumn("ColumnDisplayName", GetType(String)))
        dt.Columns.Add(New DataColumn("Column", GetType(String)))
        dt.Columns.Add(New DataColumn("Display", GetType(Boolean)))
        dt.Columns.Add(New DataColumn("Print", GetType(Boolean)))
 
etc..



<telerik:RadComboBox ID="DisplayPrintOptions" runat="server" HighlightTemplatedItems="true" Width="100px" AutoPostBack="false"
                        Label="Display & Print Options:"
                        LabelCssClass="DisplayPrint-label" DropDownWidth="400" EmptyMessage="- Select -">
                     <HeaderTemplate>
                           <div style="width:305px;height:15px;">
                               <div style="display:block;float:right;color: rgb(0, 21, 110) !important;">
                                   Show in
                               </div>
                           </div>
                           <div style="width:350px;">
                               <div style="width:210px;float:left;padding:0 11px 0 11px;color: rgb(0, 21, 110) !important;">
                                   Name of Column
                               </div>
                               <div style="width:50px;float:right;margin-right:5px;color: rgb(0, 21, 110) !important;">
                                   Report
                               </div>
                               <div style="width:40px;float:right;color: rgb(0, 21, 110) !important;">
                                   Grid
                               </div>
                           </div>
                     </HeaderTemplate>
                     <ItemTemplate>
                        <ul id="DisplayPrint">
                            <li> <!-- Row -->
                                <ul>
                                    <li id="col1"><%# Eval("ColumnDisplayName")%></li>
                                    <li id="col3">
                                        <telerik:RadButton ID="ColReports" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox"
                                                Checked='<%# DataBinder.Eval(Container.DataItem, "Display").ToString()%>' AutoPostBack="false"
                                                CommandName='<%# DataBinder.Eval(Container.DataItem, "Column").ToString()%>'>
                                        </telerik:RadButton>
                                    </li>
                                    <li id="col2">
                                        <telerik:RadButton ID="ColGrid" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox"
                                                Checked='<%# DataBinder.Eval(Container.DataItem, "Print").ToString()%>' AutoPostBack="false"
                                                CommandName='<%# DataBinder.Eval(Container.DataItem, "Column").ToString()%>'>
                                        </telerik:RadButton>
                                    </li>
                                </ul>
                            </li> <!-- End of row -->                          
                        </ul>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div style="float:right;"><telerik:RadButton ID="SubmitColumns" runat="server" Text="Submit" CausesValidation="false" OnClick="BuildGridColumns" /></div>                    
                    </FooterTemplate>
                    </telerik:RadComboBox>


Hristo Valyavicharski
Telerik team
 answered on 28 Jan 2013
3 answers
256 views
Hello all

Please forgive if this is the incorrect forum for such a query, but I have an inkling that this problem reflects a change in the way Telerik.Web.UI works with System.Web.Extensions, from the .NET 2.0-3.5 versions compared with the .NET 4.0 versions.

I have a site being upgraded to .NET 4.0, using Telerik.Web.UI Q3 2012 - the issue is that $find no longer works, it always returns null, when it features in my client-side Javascript. This issue did not arise in .NET 2.0 versions, so I believe it is a consequence of the upgrade to .NET 4.0 versions of Telerik.Web.UI.dll and the underlying MicrosoftAjax.js from within System.Web.Extensions.dll.

The code in question runs as a consequence of the $.ready function of jQuery 1.9, but as I need to emphasise, the issue was not previously evident with the.NET 2.0 versions of the dlls in question.

The exact symptom can be traced by debugging in Firefox with Firebug, where the call to $find can be seen to enter the MicrosoftAjax.js script file, but then immediately quit from the file evidently without running the $find function within the file.

I am not sure if this is the expected behaviour, as I have never encountered a problem with $find before. Am I right in understanding that there is a Telerik wrapper for $find in Telerik.Web.UI, that uses the version in MicrosoftAjax.js? In other words, is this likely to be a problem with the way that the MicrosoftAjax.js function is called, and is this call being made from the Telerik.Web.UI script resources? I am using the radScriptManager to control these WebResource.axd script resources.

I am not sure how to troubleshoot this problem, because the general explanations for looking into it are based around the issue of the function being called before the DOM is ready - however, in this case I am not sure this assumption is applicable, as the function used to work before in .NET 2.0, and also the fact that the $find function in MicrosoftAjax.js does not appear to run, and therefore does not get a chance to look for the DOM element in question.

If anybody could give me a pointer about a good way to proceed, I would be really grateful.

Thanks.

Dimitar Terziev
Telerik team
 answered on 28 Jan 2013
1 answer
70 views
hello,

attach are the two files of radmenu on IE9 with Compatibility View on and off.
please suggest the solution.

thanks.
Kate
Telerik team
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?