Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
Although this property is set to HierarchyLoadMode="ServerOnDemand" it behaves like some mixed mode. 
Actually, everything is work just as should be work by documentation, but when I expand for the first time any of child levels, grid tries to Bind all the child tables.
I have considered this in SqlProfiler, when you expand some level but only for the very first time, you can see database calls for every parent row.

If it can help you in answering my problem I have used SessionDataSource.     

Thanks in advance.
Pavlina
Telerik team
 answered on 23 Sep 2009
2 answers
117 views
Hi ,

I am using a radgrid in a radwindow,i am populating the grid dynamically code given below.

Now i want to select a grid row and pass some values in the rows to the parent page as i am using radwindow.
Radwindow is containing for E.g. SaveParameters.aspx page
Now when i click on grid row i want to pass a value in the row to parent page i.e MyReports.aspx
Only Select Column is in MasterTableView as this

 

<MasterTableView>   
<Columns>   
        <telerik:GridButtonColumn ButtonType="LinkButton" Text="Select"   CommandName="Select">   
        </telerik:GridButtonColumn>   
</Columns>    
</MasterTableView>   
   
 
 
 

 

 

 

How can i do this as i am binding everything(columns also) dynamically?

 

 for(int i=0;i<=dstParam.Tables[0].Rows.Count-1;i++)  
            {  
                  
                DataColumn dc;  
                DataRow dr;  
                dr = dt.NewRow();  
                  
                             
                strParamListName = dstParam.Tables[0].Rows[i]["Param_List_Name"].ToString();  
                strParamlist = "Param List Name " + "="+ strParamListName + "&"+ dstParam.Tables[0].Rows[i]["Actual_Contents"].ToString();  
 
                string[] strColumns = strParamlist.Split('&');  
                for (int j = 0; j <= strColumns.Length - 1; j++)  
                {  
                      
                    dc = new DataColumn();  
 
                    strColumnName = strParamListName;  
                    if (strColumns[j].IndexOf(':') != -1)  
                    {  
                        strColumnName = strColumns[j].Substring(strColumns[j].IndexOf('_')+1).Remove(strColumns[j].IndexOf(':')-1).ToUpper();  
                        dc.ColumnName = strColumns[j].Substring(strColumns[j].IndexOf('_') + 1).Remove(strColumns[j].IndexOf(':')-1).ToUpper();  
                    }  
                    else 
                    {  
                        strColumnName = strColumns[j].Substring(0,strColumns[j].IndexOf('=') - 1);  
                        dc.ColumnName = strColumns[j].Substring(0, strColumns[j].IndexOf('=') - 1);  
                    }  
                      
                    strRowValues = strColumns[j].Substring(strColumns[j].IndexOf('=')+1);  
 
                    chkColFlag = ColumnExists(dt, strColumnName);  
 
                    if (!chkColFlag)  
                    {  
                        dt.Columns.Add(dc);  
                    }  
 
                    dr[strColumnName] = strRowValues;  
                      
                }  
 
                dt.Rows.Add(dr);  
            }  
 
            rgdParamlist.DataSource = dt;  
            rgdParamlist.DataBind();  
        } 

 

 

 

 

 

Kiran
Top achievements
Rank 1
 answered on 23 Sep 2009
3 answers
170 views
Hello All,

I'm relatevely new to these suite of controls which are pretty cool.currently I'm facing a problem

I have a page that works normally however I just try to add a loading message everytime a code behind action is done, but now it is not fired :( .. I may not configure it well.

This is part of the code:
<telerik:RadStyleSheetManager ID="rssFileUpload" runat="server">  
</telerik:RadStyleSheetManager> 
      
<telerik:RadScriptManager ID="rsmFileUpload" runat="server">  
</telerik:RadScriptManager> 
      
<telerik:RadAjaxManager ID="ramFileUpload" runat="server">  
  <AjaxSettings> 
     <telerik:AjaxSetting AjaxControlID="btnNext">  
       <UpdatedControls> 
         <telerik:AjaxUpdatedControl ControlID="pnUploadGeneral" LoadingPanelID="ralFileUpload" /> 
       </UpdatedControls> 
     </telerik:AjaxSetting>              
  </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadWindowManager   ID="rwmFileUpload" 
                            runat="server" 
                            Skin="Web20" 
                            VisibleStatusbar="false" 
                            > 
</telerik:RadWindowManager>      
 
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">  
        <tr style="width:100%">  
            <td style="width:100%">  
                <asp:Panel ID="pnUploadGeneral" runat="server" Width="100%" /> 
            </td> 
        </tr> 
        <tr style="width:100%">  
            <td align="right">                  
                <asp:Button ID="btnBack" runat="server" Text="Back" Width="100px"   
                    onclick="btnBack_Click" /> 
                <asp:Button ID="btnNext" runat="server" Text="Next"   
                    onclick="btnSubmit_Click" Width="100px" CausesValidation="true"/>  
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="100px" />                  
            </td> 
        </tr> 
    </table> 
 
<telerik:RadAjaxLoadingPanel ID="ralFileUpload" runat="server" Height="75px" Width="75px">  
        Loading  
</telerik:RadAjaxLoadingPanel>     
 

but every time I click btnNext, no code behid is executed, am I missing any configuration ?

Regards



Pavlina
Telerik team
 answered on 23 Sep 2009
1 answer
132 views
I have a navigational RadTreeView which is built based on various DB calls for each branch, and was thinking it would be ideal if I could build them once, and then stick RadTree.Nodes into a cache object, which I can later re-use without needing to hit the database again.

Unfortunately RadTree.Nodes is Get only, and doesn't allow me to write the cached NodeCollection back to the Tree on the next load.

Is there any way to do something like this?


Yana
Telerik team
 answered on 23 Sep 2009
1 answer
99 views
is it realy works client side? with number of 40 000 rows it is just killing IIS server, do you have any tricks to solve it?
Shinu
Top achievements
Rank 2
 answered on 23 Sep 2009
1 answer
121 views
I have a youtube video insdie the RadToolTip.  When I close the tooltip, you can still hear the audio in the background.  When I mouse back over the tooltip, the video is still playing.  How do I essentially destroy the tooltip?

Georgi Tunev
Telerik team
 answered on 23 Sep 2009
1 answer
90 views
On every RadGrid in my web application, I am having an issue where the pager is not displaying on the initial page load.  After doing a post back, and rebinding the data, the pager shows up.  Code for one of my grids is below:

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  
            DataSourceID="SqlDataSource1" GridLines="None" AllowPaging="True"  
            Skin="Black"
            <MasterTableView DataSourceID="SqlDataSource1" PageSize="15"
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name"  
                        SortExpression="Name" UniqueName="columnName"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Address1" HeaderText="Address1"  
                        SortExpression="Address1" UniqueName="columnAddress1"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Address2" HeaderText="Address2"  
                        SortExpression="Address2" UniqueName="columnAddress2"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="City" HeaderText="City"  
                        SortExpression="City" UniqueName="columnCity"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="State" HeaderText="State"  
                        SortExpression="State" UniqueName="columnState"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Zip" HeaderText="Zip"  
                        SortExpression="Zip" UniqueName="columnZip"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone"  
                        SortExpression="Phone" UniqueName="columnPhone"
                    </telerik:GridBoundColumn> 
                </Columns> 
                <PagerStyle Mode="NumericPages" /> 
            </MasterTableView> 
        </telerik:RadGrid> 
         
        <asp:SqlDataSource ID="SqlDataSource1" 
            ConnectionString="<%$ ConnectionStrings:TLRGCPortal %>" 
            ProviderName="System.Data.SqlClient" SelectCommand="spGetLocations"  
            runat="server" SelectCommandType="StoredProcedure"></asp:SqlDataSource> 

An example of a rebinding that makes the pager display is below:

        protected void btnClear_Click(object sender, EventArgs e) 
        { 
            txtSearch.Text = ""
            SqlDataSource1.SelectCommand = "spGetEmployeeDirectory"
            SqlDataSource1.SelectCommandType =  SqlDataSourceCommandType.StoredProcedure; 
            SqlDataSource1.SelectParameters.Clear(); 
            SqlDataSource1.DataBind(); 
        } 

Does anyone have an idea as to what might be causing this?  It is happening on every single RadGrid in my application.  As I didn't have much data in the database through development, I never noticed the issue before.  Now that we are beginning to populate, it is becoming a problem.  Thank you for any help you can provide
Pavlina
Telerik team
 answered on 23 Sep 2009
1 answer
126 views
Hello,

I think I saw in an earlier thread that the current export functions don't allow you to specify things like the location and a description. There was a mention in there that it would be forwarded to the request to do so to the development team - I was wondering if anybody knows if that's still in process, or if there's a work-around other than writing my own export function...

Thanks,

Mike
Peter
Telerik team
 answered on 23 Sep 2009
1 answer
89 views
Hi,

If I execute this code in the OnCommand client-side event :

var elems = sender.get_masterTableView().get_dataItems();
for(var i=0;i<elems.length;i++)
{
  elems[i].set_selected(false);
}
           
or this code : sender.get_masterTableView().clearSelectedItems()

it seems to unselect the dataitem in memory but not uncheck the checkbox html control.

If i get the html checkbox with get_element() and I unselect him,  I also have a problem when the user want to click a chekbox previously selected on a other page : he need to click twice on an unchecked checkbox to check ...

Is there a way to simple solve this problem ?

I need to clear all checked checkbox when paging (full ajax), and keep the item checked in memory. When the user return on a page where checkbox are previously checked, I need to check them automatically.

thanks for you help !

Jérôme


Pavlina
Telerik team
 answered on 23 Sep 2009
16 answers
1.4K+ views
My ASPX looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <div> 
            <asp:ScriptManager runat="server" ID="ScriptManager">  
            </asp:ScriptManager> 
            <telerik:RadDockLayout runat="server" ID="MainRadDockLayout">  
                <table width="100%" border="1">  
                    <tr> 
                        <td style="height: 500px; vertical-align: top">  
                            ... left column ...  
                            <telerik:RadDockZone runat="server" ID="LeftZoneRadDockZone">  
                                <telerik:RadDock runat="server" ID="Control1RadDock" DockMode="Docked" AutoPostBack="true" 
                                    CommandsAutoPostBack="true">  
                                    <TitlebarTemplate> 
                                        <div> 
                                            Control 1</div> 
                                    </TitlebarTemplate> 
                                    <ContentTemplate> 
                                        ... some control ...  
                                    </ContentTemplate> 
                                </telerik:RadDock> 
                                <telerik:RadDock runat="server" ID="Control2RadDock" DockMode="Docked" AutoPostBack="true" 
                                    CommandsAutoPostBack="true">  
                                    <TitlebarTemplate> 
                                        <div> 
                                            Control 2</div> 
                                    </TitlebarTemplate> 
                                    <ContentTemplate> 
                                        ... some control ...  
                                    </ContentTemplate> 
                                </telerik:RadDock> 
                            </telerik:RadDockZone> 
                        </td> 
                        <td style="height: 500px; vertical-align: top">  
                            ... center column ...  
                        </td> 
                        <td style="height: 500px; vertical-align: top" runat="server" id="RightColumnTD">  
                            ... right column ...  
                            <telerik:RadDockZone runat="server" ID="RightZoneRadDockZone">  
                                <telerik:RadDock runat="server" ID="Control3RadDock" DockMode="Docked" AutoPostBack="true" 
                                    CommandsAutoPostBack="true">  
                                    <TitlebarTemplate> 
                                        <div> 
                                            Control 3</div> 
                                    </TitlebarTemplate> 
                                    <ContentTemplate> 
                                        ... some control ...  
                                    </ContentTemplate> 
                                </telerik:RadDock> 
                                <telerik:RadDock runat="server" ID="Control4RadDock" DockMode="Docked" AutoPostBack="true" 
                                    CommandsAutoPostBack="true">  
                                    <TitlebarTemplate> 
                                        <div> 
                                            Control 4</div> 
                                    </TitlebarTemplate> 
                                    <ContentTemplate> 
                                        ... some control ...  
                                    </ContentTemplate> 
                                </telerik:RadDock> 
                            </telerik:RadDockZone> 
                        </td> 
                    </tr> 
                </table> 
            </telerik:RadDockLayout> 
            <div style="display: none">  
                <asp:UpdatePanel runat="server" ID="MainUpdatePanel">  
                    <Triggers> 
                        <asp:AsyncPostBackTrigger ControlID="Control1RadDock" EventName="DockPositionChanged" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control1RadDock" EventName="Command" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control2RadDock" EventName="DockPositionChanged" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control2RadDock" EventName="Command" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control3RadDock" EventName="DockPositionChanged" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control3RadDock" EventName="Command" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control4RadDock" EventName="DockPositionChanged" /> 
                        <asp:AsyncPostBackTrigger ControlID="Control4RadDock" EventName="Command" /> 
                    </Triggers> 
                </asp:UpdatePanel> 
            </div> 
            <asp:Button runat="server" ID="HideButton" Text="Hide right column" OnClick="HideButton_Click" /> 
        </div> 
    </form> 
</body> 
</html> 
 

The codebehind:

using System;  
using System.Data;  
using System.Configuration;  
using System.Collections;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
 
public partial class Portal : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        //  
    }  
 
    protected void HideButton_Click(object sender, EventArgs e)  
    {  
        RightColumnTD.Visible = false;  
    }  
}  
 

Then I drag "Control3" to the left column and drop it into the "LeftZoneRadDockZone" zone. When I click on the "HideButton" afterwards, an System.ArgumentException is raised: "Script control 'Control3RadDock' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl".

Please advice on this.

Kind Regards,
Ramon
Jim
Top achievements
Rank 1
 answered on 23 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?