Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
258 views
I am creating a grid on the back end and adding it to a RadDock, but I want the columns to be sortable on the client side.
It looks like it is working here for a hard-coded grid
http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideevents/defaultcs.aspx
However, whenever I click on my column header it does a postback (which doesn't work for me).
I am just binding to a static DataTable and the grid is non-editable.
RadGrid grid = new RadGrid(); 
grid.ID = "RadGrid1"
grid.AllowSorting = true
grid.AllowPaging = true
grid.PageSize = 5; 
grid.ClientSettings.ReorderColumnsOnClient = true
grid.ClientSettings.EnableRowHoverStyle = true
grid.ClientSettings.ClientEvents.OnColumnClick = "ColumnClick"
grid.ClientSettings.ClientEvents.OnColumnClick = "ColumnDblClick"
grid.DataSource = srts.DefaultView; // srts is the DataTable 
grid.DataBind(); 
dock.ContentContainer.Controls.Add(grid); 
The on column click and double click events do work, but don't seem to do any sorting, I am using the javascript from the link above.
Also, I am setting this up on load, in case that matters (it is dynamic because it is based on what is Posted to the page).
Is there some property I need to add or other control involved?
Thanks


Sebastian
Telerik team
 answered on 14 Jul 2009
1 answer
412 views
Hi,
I have a SPDataSource which connected to SPList with title and choice columns (choice column name - "Choice").
I'm trying to group the grid MainTableView by the column 'Choice'.
I tried to do that with the GridGroupByExpression (With the column Ctor), and I get an error: "Field Choice not found in the source table. Please check expression syntax".
here's a code snippet:
"
ridBoundColumn colToGroup = (GridBoundColumn)this.myGrid.MasterTableView.Columns.FindByDataField("Choice");
GridGroupByExpression expr = new GridGroupByExpression(colToGroup);
this.myGrid.MasterTableView.GroupByExpressions.Add(expr);
this.myGrid.MasterTableView.DataBind();
  // Here the eror thrown.
"

Furthermore, I tried to build the group expression without the Ctor and I got the same error.

I would like some direction in the issue...

Thank You,
Neta
Sebastian
Telerik team
 answered on 14 Jul 2009
4 answers
190 views
Hi,

I am using Rad Controls for AJAX Q1 2009

I have a radWindow that works ok when it is non-Modal. The problem is when I set it to modal, I receive an error when I close the window.

Then error is in the line when I run from Visual Studio:

_15.parentNode.removeChild(_15);


Outside Visual Studio the erro is:
Line: 122
Error: 'parentNode' is null or not an object

Is there any issues associated with Modal Windows. Thanks in avance
David
Top achievements
Rank 1
 answered on 14 Jul 2009
1 answer
148 views
Hello.  I am trying to follow the RadGrid Insert example on the following page:  http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

It's not exactly a walkthrough or a tutorial so I am a bit lost.  How do I duplicate the look and functionality of the that RadGrid?  I am trying to insert new records with a section at the top where you can insert a new record.  Please tell me how I can learn how to do this.  The pdf tutorial lacks instruction also.
Veli
Telerik team
 answered on 14 Jul 2009
1 answer
78 views
Hi,
I am using Radcontrols Q1 2007.

I am using 3 rad panes in 1 page say abc.aspx.
The first pane is on the left side, which contains the search criteria.
The second pane is on the right side, which contains the search results from the search criteria.
The third pane is on the bottom, which is a new page i.e. pqr.aspx which opens when we click a record to update from the second pane search results.
Now, what I want to achieve is, after I update the record in the third pane i.e. pqr.aspx, the grid containing the search results in the second pane i.e. abc.aspx should refresh with the updated records. Since, the update is done in the third pane, which is itself a seperate page, i am not able to refresh abc.aspx with the updated record.

I tried doing the following. After update, i am writing the below code in pqr.aspx page

string

sScriptlet = "<script language=\"JavaScript\">window.attachEvent(\"onload\"";

 

sScriptlet +=

",function(){doRefresh()});</script>";

 

ClientScript.RegisterStartupScript(Page.GetType(),

"onload", sScriptlet);
This calls the javascript function doRefresh(). But, inside the function,

 

window.parent. refreshView() does not work.

Please help as this needs to be resolved asap.

Thanks and Regards,
Manish Thapar

Svetlina Anati
Telerik team
 answered on 14 Jul 2009
9 answers
235 views
Hi,

Is there a known reason why a RadGrid draws at about 400px height and then once populated it goes to it's proper height (either using a figure set in the ASPX or in the codebehind).  The initial drawing of the control happens and then after about 1 second (sometimes more for a big grid) the final height is set. 

Is this a known issue or shall I try and make a basic example of this for you?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 14 Jul 2009
5 answers
120 views
Hi,

I am using RadEditor Q1 2009. It really annoys me!

Skins are all conflicting with each other! here is an example:

I am using ToolBar and RadEditor with default skin in a page, and using RadToolTip with custom skin in another page.

once I am using RadToolTip css file or adding it to the App_Themes folder, RadEditor is gone away with many error in rendering and I don't know what behavior is this! also the ToolBar is giving me weired things.

when I just remove the RadToolTip css file, everything back fine again!!!

I have read about the RadEditor CSS problems from many places but it didn't solve my problem!

If you ask me to mention the steps to reproduce the problem! I will not be able to provide you these steps! this is because it is just a weired thing no steps to reproduce it!

Thanks
Svetlina Anati
Telerik team
 answered on 14 Jul 2009
1 answer
90 views
Hi,

Is it possible to show the dirs in the FileExplorer default open instead of closed?

Thanks for the information

Marc
Rumen
Telerik team
 answered on 14 Jul 2009
1 answer
114 views
Hi,

I am having a grid with width 1000px and AllowScroll="true" (in ClientSetting Tag). Its working in Firefox and Chrome. But in IE I am getting Horizontal scroll bar for the page also. Kindly tell me how to solve this issue?

Regards,
Jones
Dimo
Telerik team
 answered on 14 Jul 2009
1 answer
90 views
Hi Folks,

I have created a sliding pane with tabs on the left that should slide the panel in when pressed. When I run it from Visual Studio 2005 the page loads up fine but the panels do not slide when pressing a tab. Also, I tried a RadPanelBar and that does not slide either when trying to view a submenu,

Here is my code:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
 
<!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"
    <center> 
        <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="800" Width="1000"
                <telerik:RadPane ID="RadPane1" runat="server" Width="22" Scrolling="None" MinWidth="22"
                    <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Width="22" ClickToOpen="true"
                        <telerik:RadSlidingPane ID="pnlDesktop" Title="Desktop" runat="server" Width="190"
                             
                        </telerik:RadSlidingPane> 
                        <telerik:RadSlidingPane ID="pnlCapture" Title="Capture" runat="server" Width="190"
 
                        </telerik:RadSlidingPane> 
                        <telerik:RadSlidingPane ID="pnlSearch" Title="Search" runat="server" Width="190"
                             
                        </telerik:RadSlidingPane> 
                        <telerik:RadSlidingPane ID="pnlReports" Title="Reports" runat="server" Width="190"
 
                        </telerik:RadSlidingPane> 
                        <telerik:RadSlidingPane ID="pnlAccount" Title="Account" runat="server" Width="190"
 
                        </telerik:RadSlidingPane> 
                    </telerik:RadSlidingZone> 
                </telerik:RadPane>      
                <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" />  
                <telerik:RadPane ID="RadPane2" runat="server"
                Desktop submenu to go here... 
                </telerik:RadPane>  
                <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Forward" />   
                <telerik:RadPane ID="RadPane3" runat="server"  Scrolling="none" Width="500"
                    <telerik:RadSplitter ID="RadSplitter2" runat="server" LiveResize="true" Orientation="Horizontal"
                        <telerik:RadPane ID="RadPane4" runat="server" Height="150" Scrolling="both"
                            <div style="height: 100%"
                                <table cellpadding="0" cellspacing="0" width="100%" style="border: 0px none;"
                                    <tr> 
                                        <td> 
                                            Data to go here 1.... 
                                        </td> 
                                        <td> 
                                            Data to go here 2.... 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td> 
                                            Data to go here 3.... 
                                        </td> 
                                        <td> 
                                            Data to go here 4.... 
                                        </td> 
                                    </tr> 
                                </table> 
                            </div> 
                        </telerik:RadPane>                     
                    </telerik:RadSplitter> 
                </telerik:RadPane>  
            </telerik:RadSplitter> 
    </div> 
    </center> 
    </form> 
</body> 
</html> 
 


Cheers,
IW
Svetlina Anati
Telerik team
 answered on 14 Jul 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?