Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hi I have a RadGrid control showing three levels of detail  ie a RadGrid with two detail tables

Level One --> account, name
Level Two ----> service, details
Level Three ------> service item, usage, date...

I need to allow download of just the selected detail level from the RadGrid.

I can Export either the entire Level One Grid or all the expanded grid fields but not the selected data. Exporting the etire grid gives me an Out of Memory Error with 4Gb RAM

Here's my ASPX
<mastertableview autogeneratecolumns="False" datakeynames="AccountId" datasourceid="SqlDataSource1"
        groupsdefaultexpanded="False"><telerik:CommandItemSettings ShowExportToExcelButton="true" />
         
        <DetailTables>
            <telerik:GridTableView runat="server" DataKeyNames="StatementId" DataSourceID="SqlDataSource2"
                Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                Font-Underline="False" >
                <DetailTables>
                    <telerik:GridTableView runat="server" DataSourceID="SqlDataSource3" Font-Bold="False"
                        Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                        GroupsDefaultExpanded="False" ShowFooter="True" ShowGroupFooter="True" AllowMultiColumnSorting="True"
                        GridLines="None">
                         
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="StatementId" MasterKeyField="StatementId" />
                        </ParentTableRelation>
                        
                        <AlternatingItemStyle BackColor="White" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                            Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" Wrap="True" />
                        <FooterStyle BackColor="Yellow" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                            Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                    </telerik:GridTableView>
                </DetailTables>
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="AccountId" MasterKeyField="AccountId" />
                </ParentTableRelation>
                <CommandItemSettings ExportToPdfText="Export to Pdf" />
                <ExpandCollapseColumn Visible="True">
                </ExpandCollapseColumn>
            </telerik:GridTableView>
        </DetailTables>
        <ParentTableRelation>
            <telerik:GridRelationFields DetailKeyField="AccountId" MasterKeyField="AccountId" />
        </ParentTableRelation>
         
        <ExpandCollapseColumn Visible="True">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="ACCOUNTID" DataType="System.Int32" HeaderText="ACCOUNTID"
                SortExpression="ACCOUNTID" UniqueName="ACCOUNTID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ACCOUNTREF" HeaderText="ACCOUNTREF" SortExpression="ACCOUNTREF"
                UniqueName="ACCOUNTREF">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CUSTOMERID" DataType="System.Int32" HeaderText="CUSTOMERID"
                SortExpression="CUSTOMERID" UniqueName="CUSTOMERID">
            </telerik:GridBoundColumn>
        </Columns>
    </mastertableview>

Here's the export code on the button.

protected void Button4_Click(object sender, System.EventArgs e)
        {
            //ConfigureExport();
            RadGrid1.Rebind();
            RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;
            //RadGrid1.MasterTableView.DetailTables[0].HierarchyDefaultExpanded = true;
            RadGrid1.ExportSettings.IgnorePaging = true;
            RadGrid1.ExportSettings.ExportOnlyData = true;
            RadGrid1.ExportSettings.FileName = "RadGridExportToCSV";
            RadGrid1.ExportSettings.OpenInNewWindow = true;
 
            RadGrid1.MasterTableView.ExportToCSV();
        }


I've seen a post of someone who had a similar issue but I've not seen a solution anywhere. I'm assuming I might have to use some sort of event capture and loop accordingly?

Thanks
Daniel
Telerik team
 answered on 11 Jan 2011
2 answers
169 views
Hi,

I need to find the column index in the RadGrid that was clicked for sorting. I should be able to have my logic under radGrid_ItemComand when e.CommandName = "Sort"

The reason is my grid is dynamically created and i dont know what my colums are. So at least if I can find the clicked column number then I can implement the rest of the logic.

Thanks!
Duneel
Duneel
Top achievements
Rank 2
 answered on 11 Jan 2011
3 answers
163 views
Hi,

We are building a site using sitefinity.

We store all the user credentials and access rights in SAP currently, how can I use it with new sitefinity site, so that we do not have to create new users in sitefinity and provide them permissions to view pages/content and the existing users can login to sitefinity site and access the site according to their defined permissions in SAP.

Can I please get a starting guidance on this?

Thank you,
Jay Mehta.
Ivan Dimitrov
Telerik team
 answered on 11 Jan 2011
2 answers
90 views
I'm using RadMenu in DNN and am looking for some help on implementing related menus:
http://demos.telerik.com/aspnet-ajax/menu/examples/relatedmenus/defaultcs.aspx

The site is running DotNetNuke Community Edition v 5.02.01.

Thank you!
Jon
Top achievements
Rank 1
 answered on 11 Jan 2011
2 answers
173 views
Has anyone had any success or experience with integrating the Calendar control with Microsoft Exchange?  Any pointers or info, examples would be very well received.  Thanks in advance!
Jonathan
Top achievements
Rank 2
 answered on 11 Jan 2011
5 answers
286 views

Hi,
I am having issue with having tooltip only for disabled item in a list of radmenuitem.
Basically I have say A, B, C, D as items and lets say B  is disabled. So when the user (mouseover/click is also fine) on B, a tooltip should come with the text.
Thanks in advance,
Sreenivas.

<

 

telerik:RadMenu ID="CleasActionMenuControl" EnableEmbeddedSkins="true" Skin="Vista"

 

 

CausesValidation="false" Flow="Horizontal" Width="185px" ClickToOpen="false"

 

 

runat="server">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

<Items>

 

 

<telerik:RadMenuItem Enabled="true" Text="Select Action">

 

 

<GroupSettings ExpandDirection="Down" Flow="Vertical" OffsetX="0" Width="185px" />

 

 

<Items>

 

 

<telerik:RadMenuItem Enabled="true" Text="A" ToolTip="" />

 

 

<telerik:RadMenuItem Enabled="false" Text="B" ToolTip="You cannot perform this action because there is a reason you can't. \nOtherwise, \nyou'll just see a really long message here in the tooltip. Unless, of course, you can't. In this case, you won't see a really long tooltip, just this." />

 

 

<telerik:RadMenuItem Enabled="true" Text="C" ToolTip="" />

 

 

<telerik:RadMenuItem Enabled="true" Text="D" ToolTip="" />

 

 

</Items>

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenu>

 

Sreenivas
Top achievements
Rank 1
 answered on 11 Jan 2011
4 answers
83 views
I have a RadGrid  with <EditFormSettings>  and <EditColumn> which the ComandItemDisplay="Top" to get the Insert Section,  which works fine normally.

I have a particular GridBoundCoumn 

When in Edit Mode,  I don't not want this row to show up.

However in Insert Mode,  I do want it to show up.  Whenever I affect the visibility of this GridEditableItem in the ItemDataBound it seems to also affect that item in the Insert mode as well.   And I have trouble accessing their Header Labels as well.

How can I achieve this.
Chris
Top achievements
Rank 1
 answered on 11 Jan 2011
1 answer
115 views

I am using RadSplitter with two pans. The following is my code

<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="600px" VisibleDuringInit="false">
     <telerik:RadPane ID="MainPane" runat="server" Width="100%" Height="600px">
          Main content
     </telerik:RadPane>

     <telerik:RadSplitBar ID="RadSplitbar1" runat="server">
     </telerik:RadSplitBar>

     <telerik:RadPane ID="RightPane" runat="server" Width="30" Scrolling="Both" Height="600px">
          Menu content
     </telerik:RadPane>

</telerik:RadSplitter>

However, I don’t want to specify the height. I would like it to auto expand based on the content of the MainPane so I can avoid the scroll bars.
Currently, if I don’t specify the height, it is taking default of 400px.

Any suggestions??

Thanks in advance.

Dobromir
Telerik team
 answered on 11 Jan 2011
5 answers
127 views
I've purchased and implemented the 2010.Q3 controls.  Everything seems to be working fine in my project except for one thing:

I've implemented a RadSlidingPane in this fashion in a User Control:

<asp:Panel ID="panelMain" runat="server" style="padding-top:10px"><br>  <telerik:RadSplitter ID="radSplitter" runat="server" LiveResize="false" Height="449" OnClientLoaded="radSplitter_Load"><br>    <telerik:RadPane ID="radPaneLeft" runat="server" Scrolling="None"><br>      <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" Height="0" ClickToOpen="true" DockedPaneId="radSlidingPane"><br>        <telerik:RadSlidingPane ID="radSlidingPane" runat="server" Width="240" BackColor="#F0F8FF" CssClass="slidingPane" TabView="TextAndImage" IconUrl="~/Images/hierarchy.gif" <br>                                DockOnOpen="true" OnClientBeforeExpand="radSlidingPane_BeforeExpand" OnClientUndocked="radSlidingPane_Undocked"><br>          <asp:Panel ID="panelTree" runat="server" Width="90%" Height="400px" BorderColor="DarkGray" BorderStyle="Groove" BorderWidth="1" style="margin-left:10px; margin-top:10px"><br>            <asp:PlaceHolder ID="placeHolderHierarchy" runat="server" /><br>          </asp:Panel><br>        </telerik:RadSlidingPane><br>      </telerik:RadSlidingZone><br>    </telerik:RadPane>

But when my code tries to load the user control, I get this error message:

Microsoft JScript runtime error: 'radSlidingPane_BeforeExpand' is undefined

I assure you that this Javascript function does exist!  A further clue is that if I remove OnClientBeforeExpand="radSlidingPane_BeforeExpand" then I get an error informing me that 'radSlidingPane_Undocked' is undefined .  It's as if these Javascript functions are somehow not yet loaded at the time they're needed.

What's even more frustrating is that all of this code used to work perfectly!  But clearly I've changed something [somewhere] and only now am discovering that this bug has arisen.

I'm hoping that I've given you enough info to help me pinpoint what the issue is here.  Any help you could provide would be much appreciated!

Sincerely,

Robert Werner
Vancouver, BC
Dobromir
Telerik team
 answered on 11 Jan 2011
2 answers
135 views
I am using a RadGrid and doing group by with jobstateName but when I bind the data my last stage comes first with users.
For example:

I have four stages (stage1, stage2, stage3, stage4)
and i want that when i bind the data my stage1 appears first with their respective users but right now it is appearing in the descending order like
stage4, stage3, stage2 and stage1

I also don't want that my jobStateName appears at the header of the grid  ....

  <telerik:RadGrid ID="gvUserJobMapping" runat="server" PageSize="10" AllowSorting="True"
            GroupingEnabled="true" AllowPaging="True" ShowGroupPanel="True" AutoGenerateColumns="False"
            GridLines="None" CssClass="gridviewSpacing gvJobStates">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView Width="50%" GroupLoadMode="Client" TableLayout="Fixed">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="JobStateName" FieldAlias="JobStateName" HeaderText="Job Stages"
                                FormatString="{0:D}"></telerik:GridGroupByField>
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="JobStateName" FieldAlias="JobStateName" HeaderText="Job Stages"
                                ></telerik:GridGroupByField>
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="JobID" HeaderText="JobID" HeaderButtonType="TextButton"
                        DataField="JobID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="JobStateID" HeaderText="JobStateID" HeaderButtonType="TextButton"
                        DataField="JobStateID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="JobID" HeaderText="JobID" HeaderButtonType="TextButton"
                        DataField="JobID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="UserID" HeaderText="UserID" HeaderButtonType="TextButton"
                        DataField="UserID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="RoleID" HeaderText="RoleID" HeaderButtonType="TextButton"
                        DataField="RoleID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="UserName" HeaderText="User Name" HeaderButtonType="TextButton"
                        DataField="UserName">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSendEmail" runat="server"></asp:CheckBox>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowDragToGroup="False"
                AllowColumnsReorder="True">
            </ClientSettings>
        </telerik:RadGrid>
Muhammad
Top achievements
Rank 1
 answered on 11 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?