Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
304 views
HI,

i have grid with below template and i need to expand all rows in a parent & child grids. Please let me know how can do it.

  <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
        EnableRoundedCorners="false" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="mainTab">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="mainTab" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="mainTab">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="mainTabMultipages" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <div>
        <telerik:RadTabStrip runat="server" ID="mainTab" OnTabClick="mainTab_TabClick" MultiPageID="mainTabMultipages"
            SelectedIndex="0">
        
            <Tabs>
                <telerik:RadTab runat="server" Text="Code Coverage Report" PageViewID="pvCodeCoverage">
                </telerik:RadTab>
            </Tabs>
           
            
             
        </telerik:RadTabStrip>
        <div style="float: right">
            <asp:LinkButton runat="server" ID="lnkExpandAll" Text="Expand All" OnClientClick="ExpandAll(); return false;"  Enabled="<%# EnableExpandAll %>"></asp:LinkButton>
           
        </div>
    </div>


    <telerik:RadMultiPage runat="server" ID="mainTabMultipages" SelectedIndex="0" RenderSelectedPageOnly="false">
       
        <telerik:RadPageView runat="server" ID="pvCodeCoverage">
            <telerik:RadTabStrip runat="server" ID="tbCodeCoverage" MultiPageID="Multipage1"
                SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Details" PageViewID="pvCodeCoverageDetails">
                    </telerik:RadTab>
                </Tabs>
                <Tabs>
                    <telerik:RadTab runat="server" Text="Graph" PageViewID="pvCodeCoverageGraph">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                <telerik:RadPageView runat="server" ID="pvCodeCoverageDetails">
                    <telerik:RadGrid AllowSorting="True" runat="server" ID="grdCodeCoverage" OnItemCommand="grdCodeCoverage_ItemCommand"
                        AutoGenerateColumns="false" ShowFooter="true" PageSize="50" AllowMultiRowSelection="False"
                        AllowPaging="True" GridLines="None" ShowGroupPanel="true">
                        <PagerStyle Mode="NumericPages"></PagerStyle>
                        <MasterTableView DataKeyNames="ModuleName" AllowMultiColumnSorting="True" GroupLoadMode="Server">
                            <NoRecordsTemplate>
                                <asp:Label ID="Label1" runat="server" Text="There are no records" />
                            </NoRecordsTemplate>
                            <NestedViewTemplate>
                                <telerik:RadGrid AllowSorting="True" AllowPaging="true" runat="server" OnNeedDataSource="grdClassCodeCoverageDataSourceNeeded"
                                    ID="grdClassCodeCoverage" AutoGenerateColumns="false" ShowFooter="true" EnableLinqExpressions="false"
                                    OnItemCommand="grdClassCodeCoverage_ItemCommand">
                                    <MasterTableView DataKeyNames="ClassName">
                                        <NestedViewTemplate>
                                            <telerik:RadGrid AllowSorting="True" AllowPaging="true" runat="server" OnNeedDataSource="grdMethodCodeCoverageDataSourceNeeded"
                                                ID="grdMethodCodeCoverage" AutoGenerateColumns="false" ShowFooter="true" EnableLinqExpressions="false">
                                                <MasterTableView>
                                                    <Columns>
                                                        <telerik:GridBoundColumn SortExpression="MethodName" HeaderText="Method Name" HeaderButtonType="TextButton"
                                                            DataField="MethodName" UniqueName="MethodName">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="BlocksCovered" HeaderText="Covered (Blocks)"
                                                            HeaderButtonType="TextButton" DataField="BlocksCovered" UniqueName="BlocksCovered">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="BlocksNotCovered" HeaderText="Not Covered (Blocks)"
                                                            HeaderButtonType="TextButton" DataField="BlocksNotCovered" UniqueName="BlocksNotCovered">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="BlocksNotCoveredPercentage" HeaderText="Not Covered (%Blocks)"
                                                            HeaderButtonType="TextButton" DataField="BlocksNotCoveredPercentage" UniqueName="BlocksNotCoveredPercentage">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="BlocksCoveredPercentage" HeaderText="Covered (%Blocks)"
                                                            HeaderButtonType="TextButton" DataField="BlocksCoveredPercentage" UniqueName="BlocksCoveredPercentage">
                                                        </telerik:GridBoundColumn>
                                                    </Columns>
                                                </MasterTableView>
                                            </telerik:RadGrid>
                                        </NestedViewTemplate>
                                        <Columns>
                                            <telerik:GridBoundColumn SortExpression="ClassName" HeaderText="Class Name" HeaderButtonType="TextButton"
                                                DataField="ClassName" UniqueName="ClassName">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="BlocksCovered" HeaderText="Covered (Blocks)"
                                                HeaderButtonType="TextButton" DataField="BlocksCovered" UniqueName="BlocksCovered">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="BlocksNotCovered" HeaderText="Not Covered (Blocks)"
                                                HeaderButtonType="TextButton" DataField="BlocksNotCovered" UniqueName="BlocksNotCovered">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="BlocksNotCoveredPercentage" HeaderText="Not Covered (%Blocks)"
                                                HeaderButtonType="TextButton" DataField="BlocksNotCoveredPercentage" UniqueName="BlocksNotCoveredPercentage">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="BlocksCoveredPercentage" HeaderText="Covered (%Blocks)"
                                                HeaderButtonType="TextButton" DataField="BlocksCoveredPercentage" UniqueName="BlocksCoveredPercentage">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </NestedViewTemplate>
                            <Columns>
                                <telerik:GridBoundColumn SortExpression="ModuleName" HeaderText="Module name" HeaderButtonType="TextButton"
                                    DataField="ModuleName" UniqueName="ModuleName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="CoveredBlocks" HeaderText="Covered (Blocks)"
                                    HeaderButtonType="TextButton" DataField="CoveredBlocks" UniqueName="CoveredBlocks">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="NotCoveredBlocks" HeaderText="Not Covered (Blocks)"
                                    HeaderButtonType="TextButton" DataField="NotCoveredBlocks" UniqueName="NotCoveredBlocks">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="NotCoveredBlocksPercentage" HeaderText="Not Covered (%Blocks)"
                                    HeaderButtonType="TextButton" DataField="NotCoveredBlocksPercentage" UniqueName="NotCoveredBlocksPercentage">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="CoveredBlocksPercentage" HeaderText="Covered (%Blocks)"
                                    HeaderButtonType="TextButton" DataField="CoveredBlocksPercentage" UniqueName="CoveredBlocksPercentage">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="pvCodeCoverageGraph">
                    <div>
                        <telerik:RadChart ID="chtCodeCoverage" IntelligentLabelsEnabled="true" runat="server"
                            AutoLayout="true" AutoTextWrap="true">
                        </telerik:RadChart>
                    </div>
                    <div>
                        <telerik:RadChart Width="800" IntelligentLabelsEnabled="true" ID="pieCodeCoverageGraph"
                            runat="server" AutoLayout="true" AutoTextWrap="true">
                        </telerik:RadChart>
                    </div>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </telerik:RadPageView>
      
    </telerik:RadMultiPage>




 
Eyup
Telerik team
 answered on 11 Jul 2013
1 answer
96 views
Hi,

I have the scenaio in chrome and firefox:

1. insert any from element using the toolbar button, for example a button
2. the cursor is set on the button to enter a text for it
3. try to enter any text. The resulted html is:
<input type="button" style="width: 50px; height: 22px;" />button
Text is added fter the input tag.

In IE it works fine.

Is there a solution for this?
Dobromir
Telerik team
 answered on 11 Jul 2013
3 answers
169 views

Hi, anyone knows how to round the numbers on an x axis, I have values like 2, 3  4 and my a axis has 0 0.5, 1, 1.5 , 2, 2.5 etc

how do I only show 1, 2 3 4 5 etc? and hide 0.5, 1.5, 2.5

These are products sales, I cant show halves ...

thanks.

Stamo Gochev
Telerik team
 answered on 11 Jul 2013
1 answer
170 views
Instead of using just one table to bring back some data (see the following):

http://demos.telerik.com/aspnet-ajax/grid/examples/databinding/net35datasourcecontrols/defaultcs.aspx

is it possible to generate a LINQ query based on multiple entities to bring back the data?

Otherwise, just the one table is good fro DropDowns, but not for querying data against multiple entities and having it come back into the grid.
Marin
Telerik team
 answered on 11 Jul 2013
1 answer
299 views
I want to retrieve some data for a grid via client-side pagemethods via the following:
http://www.telerik.com/help/aspnet-ajax/grid-client-side-binding.html

After executing the checkbox2 clicked event, a "GetData" pagemethod is executed to retrieve results for the grid in the updategrid function.

After the results come back, instead of performing the clientside rowdatabound event, if I have a corresponding event set up on the grid at design time to execute it via server side, will it go ahead and perform that server side rowdatabound event.

Thing is getting data may be expensive depending on when you do it. If I can get the data in certain situations via a page method, I can let the server side rowdatabound event handle each row coming through and apply what is needed.

Or will it be a lot faster leaving it client side. If that's the case, why have any server side programming to begin with if it's going to take a lot longer? Do we need to do everything client side?

The above I assume would simulate CallBack events similar to what DevExpress has, I don't see any CallBack events with the Telerik controls other than this type of programming.

Any feedback would be much appreciated.
Antonio Stoilkov
Telerik team
 answered on 11 Jul 2013
1 answer
110 views
Hai
   Is it possible to show full path in textbox in client side ?
i need to select only one file and show in textbox with file name and remove file name in asyncupload control,only show button after select file in client side 

Pls reply asap
 
  Regards 
    Aravind
Peter Filipov
Telerik team
 answered on 11 Jul 2013
1 answer
73 views
while RadSocialShare is loading which takes unusual long time it expands website normally large and browser scrollbars appear. when its loaded its ok but while loading looks a lilttle ugly. how to fix this?
Danail Vasilev
Telerik team
 answered on 11 Jul 2013
3 answers
180 views
hi
i want to have 3 columns in radgrid. 1st column is gridNumericolumn and 2nd and 3th are gridButtonColumn. i want when user clicked on one of button, set a value in numeric cell (for example 600) and when clicked on another button, set another value in numeric cell (example 400) in client side.
help me please.
Princy
Top achievements
Rank 2
 answered on 11 Jul 2013
9 answers
259 views
I am getting this error: Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Type Telerik.Web.UI.ExpandDirection has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.
On all my pages that have the RadTreeView control. Everything was working until I update today through the control panel. Any Ideas?
Bozhidar
Telerik team
 answered on 11 Jul 2013
1 answer
64 views
Hi,
I am using Telerik rad scheduler in my SharePoint 2010 dev project for a school district. Requirement was to build a school scheduler with day view, school week, work week, month and timeline view.

For work week I am using multiday view and all the things are working fine. But I stuck with one things:
My requirement is all the navigation tab should be in the following order: 1. Day view, 2. work week view, 3. week, 4. month and 5. timeline.

But in my case multiday view always coming at the end. I am not able to position it in no 2. Is there a way I can change this default ordering?

Thanks in advance,
Dibyendu
Boyan Dimitrov
Telerik team
 answered on 11 Jul 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?