Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
410 views
Hi,

How do I collapse and expand the nested rad grid on click of the radio button onselectedindex change of the MasterGrid view of every row.
For the same I have the radio button onselectindexchange event associated in every row of the MasterGrid and find the child nested grid to bind. The Issue is that I am able to find the child grid and bind it but the child grid is not expanding and collapsing after bind.

Quick response appreciated !
Shinu
Top achievements
Rank 2
 answered on 22 Apr 2013
5 answers
373 views
Hi everyone

I am generating a pivot and need to have a row and column total.  This is dynamic, and my output looks like this:
I am using AutoGenerateColumns="True".

My output looks like this:
ZipCode       2012.01   2012.02 ... 2013.01
06477      1   7      8

I would like a total across, and full totalling on the bottom.  For now, I am doing it at the datset level, as I dont know what the cols look like.  However, I do know that any column beginning with a number needs to be totalled.

I tried a number of tricks, but I would like to get this to happen using a dynamic (calc) column and a dynamic footer item for each data column.  I tried a prerender solution, but I dont seem to have any columns available at that time.

Can anyone help?

Thanks
Radoslav
Telerik team
 answered on 22 Apr 2013
2 answers
167 views
I'm having problems on having radupload inside a radwindow.
Please refer to attached screenshot and below details:

1) I have attachment user control which has a radwindow with radupload as its content
2) This attachment user control is called anywhere so for this scenario, it was used inside another radwindow
3) Issue happens only on IE7 (not on IE8 and higher, Chrome, etc)

Attachment user control (ASCX)
<div style="display: none;">
    <asp:TextBox ID="txtId" runat="server" />
    <asp:TextBox ID="txtSecondaryId" runat="server" />
    <asp:TextBox ID="txtCategory" runat="server"/>
    <asp:TextBox ID="txtSection" runat="server"/>
    <asp:HiddenField ID="hdnIsImageOnly" runat="server" Value="" ClientIDMode="Static" />
</div>
<div id="editDiv" runat="server">
    <div id="divUploadList">
 
        <asp:GridView ID="grdAttachment" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#FFFFFF" BorderStyle="None" BorderWidth="" CellPadding="3" Width="90%"                                       
            DataKeyNames="GlobalId" onrowdatabound="grdAttachment_RowDataBound" ShowHeader="false"
            onrowcommand="grdAttachment_RowCommand" GridLines="None">
            <Columns>
                <asp:TemplateField HeaderText="File Name">
                    <ItemStyle Width="95%" />
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument='<%# Eval("GlobalId") %>' CommandName="RemoveFile" OnClientClick="return confirm('Are you sure you want to remove this attachment?');" ><img style="border:none" src="../Images/eClose.png" /></asp:LinkButton> 
                        <asp:LinkButton runat="server" ID="lnkAttachment"><%# Eval("FileName") %></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>   
        <br />
        <asp:ImageButton runat="server" ID="btnAttach" ImageUrl="~/Images/Buttons/Attachment.gif" OnClick="btnAttach_Click" />
 
    </div>
    <div id="divUploader">
        <telerik:RadWindow ID="uploadDialog" runat="server" Title="Upload Attachment" Height="400px" style="z-index: 99997;" OffsetElementID="grdAttachment"
            Width="600px" Left="150px" Behaviors="Close,Move,Resize" AutoSize="true" AutoSizeBehaviors="Height" ReloadOnShow="true" ShowContentDuringLoad="false"
            Modal="true" VisibleStatusbar="false" IconUrl="~/Images/GFLogo.png" EnableShadow="true" VisibleOnPageLoad="false">       
        <ContentTemplate>
            <span class="notes">maximum upload file size: 10MB</span>
            <br />
            <div style="text-align: center;">         
                <telerik:RadUpload ID="uploadAttachment"  MaxFileSize="300000000"
                    runat="server" ClientIDMode="Static"
                    InitialFileInputsCount="1"/>
               <%-- <telerik:RadProgressArea runat="server" id="RadProgressArea1"  OnClientProgressUpdating="checkUploadedFilesSize"  style="position: fixed; top: 50% !important; left: 50% !important; margin: -93px 0 0 -188px;"/>
                <telerik:RadProgressManager runat="server" id="RadProgressManager1" />--%>
                <br />
                <asp:LinkButton runat="server" ID="btnUpload" CssClass="button" OnClick="btnUpload_Click" OnClientClick="return validateAttachment();"><span>Upload</span></asp:LinkButton>
            </div>
        </ContentTemplate>
    </telerik:RadWindow>
    </div>
</div>
<div id="viewDiv" runat="server">
    <asp:Repeater runat="server" ID="repAttachment" OnItemDataBound="repAttachment_ItemDataBound">                                       
        <ItemTemplate>
            <asp:LinkButton CommandArgument='<%# Eval("GlobalId") %>' runat="server" ID="lnkAttachment"><%# Eval("FileName") %></asp:LinkButton><br />
        </ItemTemplate>
    </asp:Repeater>
</div>

Thanks.

Regards,
Jayzle
Jayzle
Top achievements
Rank 1
 answered on 22 Apr 2013
6 answers
904 views
Hi All,
     I need help in the radgrid Insert, Update and Delete functionalities with delete record confirmation using SqlConnection.
    Please provide me any sample code to resolve my scenario.


Thanks,
Nagendra.
Harish
Top achievements
Rank 1
 answered on 22 Apr 2013
12 answers
402 views
We currently have a problem with our application when unloading a page (Closing tab, or navigating a new url). The page can contain up to 15 Grids, if I remove some grids the problem disappear but I remove functionality so this is not the solution.

The problems occured since I came back from holiday, and I'm looking for the whole day now, after looking into the code of my colleague, and the complete site, I imagined that the problem was the 4 new grids we added to the page. So I removed some grids and the problem disappear, regardless of the grids I am disabling.

It works perfectly in Firefox, and the unload of a page is done instantly, with IE7 it takes ages, and if there is too much grids we got an error : "Script is running slow.... Blahblah.. Do you want to stop the script ?.

Is there any trick to speed up the unload of the grids ? or just to skip them ? or anything else to avoid that error and waiting time when browsing to another page or closing the tab.

Thank you

Laurent Lequenne
Brian Stanek
Top achievements
Rank 2
 answered on 22 Apr 2013
0 answers
113 views
Hi is there a way that I can use sitemap without the use of navigateurl. It will be replaced by command to call procedure to show and hide divs or part of the page. My scenario is just using sigle page and it will have this breadcrumb sitemap that when user clicks on dropdown it will show a part of the page and my breadcrumb will be updated with the clicked item on the dropdown. And when users clicks again like for instance a tab, it will be added again to my breadcrumb and so on.. I hope im making sense here.
Its just like itemcommand for grid that I can call a procedure to show hide items based on clicked node.
Thanks in advance..
Rj
RJ
Top achievements
Rank 1
 asked on 21 Apr 2013
4 answers
332 views
HI,

Using RadGrid 2008.2.723 aggregate property:

<telerik:GridBoundColumn DataField="Monday1" Aggregate="Sum" DataType="System.Decimal"  
   HeaderText="Monday1" SortExpression="Monday1" UniqueName="Monday1"> 
</telerik:GridBoundColumn> 
This will output SUM: 8.0 in the footer.

Is it possible to remove the SUM label declaratively in the footer without server-side code?  I just want the sum amount.

Thanks,
Khanh
Muhammad Aqeel
Top achievements
Rank 1
 answered on 21 Apr 2013
1 answer
103 views
Can someone tell me what is causing the images on the bottom of this window frame and how I can eliminate them?
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Apr 2013
1 answer
189 views
I have a RadDockLayout with two RadDockZones, one zone is static with a single RadDock control, the other RadDockZone is designed to be dynamic allowing the user to rearrange the orientation of the RadDock controls inside the RadDockZone. There are only two RadDock controls in the second zone. The orientation of the second zone is Horizontal.

One RadDock control width is set to 67% the other is set to 33% to fill 100% of the width of the RadDockZone. The height is set client-side to fill the available screen (these docks contain RadGrids with lots of data and scroll off the screen).

If the user attempts to move the RadDock control on the right side, to the left side, it is possible that the dock orientation changes and the controls become oriented vertically.

Also when re-orienting the RadDock controls to horizontal, they are no longer the width specified by the style. It is as if there is a hidden element taking up a percentage of the RadDockZone.

The only changes I am making to the controls is a client-side script that adjusts the height of the first child container in the RadDock control to force the RadDock height to fill the remaining portion of the screen.

Further testing indicates that some client-side scripting from the telerik client-model changes the width of the controls from a dynamic width using percentages, to a hard-coded width. Once the dock is dragged out of its location, the fixed width forces the dock to flow into another row, despite the DockZone being set to horizontal, because once the dock overflows, the scroll-bar appears and reduces the width of the parent container, thus restricting the ability to re-dock in a horizontal manner. Once this happens, it is nearly impossible to get the dock to re-orient itself in the correct location without a refresh of the page from the server.
Keith
Top achievements
Rank 2
 answered on 20 Apr 2013
1 answer
165 views
Hello everyone ,

i want to upload file word in the data base , and show it in the gird

which data type i can use ?
how to upload it throw grid ?
how to show the file in the grid and download it ?
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Apr 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?