Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
I want to bind datas from 2 tables in one RadGrid.
When I use Gridiview, i realise it by the code in the file cs by using LinqToSql.
But I can't find example from the demos, they are all written in the page file
Is there anyone can give me some advices?
Martin
Telerik team
 answered on 26 Oct 2010
1 answer
237 views

Hi,

I want to get column name while user double clicking on the column header & Change the color of the Column header just to indicate that the currenet selected column.
I have to remove the selected column from the grid.

Thanks & Regards
Kaushal.
Radoslav
Telerik team
 answered on 26 Oct 2010
7 answers
285 views
i am using rad grid and in the rad grid last column(total) sorting is not happening correctly. it is sorting from second record. for ex the output should be
$989.23
 $1099.81
$1799.12
$1988.45

but it is showing

 $1099.81
$1799.12
$1988.45
$989.23

I have added sort expression and also in page load i have given in page_load, all other columns sorting is working fine and this result is coming from database

            GridSortExpression expression = new GridSortExpression();
            expression.FieldName = "total";
            expression.SortOrder = GridSortOrder.Ascending;
            grdResults.MasterTableView.SortExpressions.AddSortExpression(expression);
            grdResults.MasterTableView.Rebind();
            this.grdResults.AllowSorting = true;

Nikolay Rusev
Telerik team
 answered on 26 Oct 2010
1 answer
89 views
Hi,

I developed a code to display Radconextmenu on my rad grid. Its working fine for all other browser(IE6,Safari,Chrome etc) but when I am trying it on Mozilla Firefox the Radcontextmenu is not displaying, instead of this normal windows context menu is appearing.
I tried lot to understand it but finally i give up. So could you please help me into that.

Nitin 
Yana
Telerik team
 answered on 26 Oct 2010
7 answers
261 views
Hi,
I have created two radgrid as drag and drop radgrid telerik demo. I am able to drag and drop rows from grdPendingOrders to grdShippedOrders and drag drop from grdShippedOrders to RecycleBin. I want to get drag and drop in both direction. I mean, reverse direction too: drag and drop from grdShippedOrder to grdPendingOrder and drop to Recycle Bin from grdPendingOrder. Any body can help me to complete this task.
Iana Tsolova
Telerik team
 answered on 26 Oct 2010
1 answer
190 views
Hi,

Below is our application example URL:
http://test.aptisys.com/UOMSetup.aspx

In all our screens we are using the Right Click Context menu in the Rad Grid with Add, Edit, Delete and Duplicate in the Context Menu. We have implemented the need data source with insert, update and delete command methods. But for the delete, in our old implementation without the need datasource we used the below syntax.

         case "Delete":

                    RadGUOM.MasterTableView.PerformDelete(RadGUOM.Items[radGridClickedRowIndex]);
                    RadGUOM.Rebind();

But after implementing the Need Data source, we cant able to delete the row even we right click the context menu and delete, the delete command method is not fired. We are not sure about how to call the delete command method from right click context menu. Could you please send us some example with right click context menu by right clicking and deleting the grid data implemented with the need data source by calling the Delete command method?

Thanks & Regards
Vasil
Telerik team
 answered on 26 Oct 2010
2 answers
575 views
Hey everyone,

I have used a textbox on blur client side event to get text on to the label like this...
function show(txtQuantityE, lblRate, lblAmount)
            {
               var txtQuantityE = $find(txtQuantityE);
               var lblRate = document.getElementById(lblRate);
               var lblAmount = document.getElementById(lblAmount);
               lblAmount.innerHTML = parseInt(txtQuantityE.get_value()) * parseInt(lblRate.innerHTML);
            }
now i am trying to get this value of label filed by OnBlur event on server side to save it in a data Table.But its coming null.My CS is--
DataRow drValues = dtValues.NewRow();
                drValues["Items"] = combo.SelectedItem.Text;
                drValues["Rate"] = lblRate.Text;
                drValues["Quantity"] = txtQauntityE.Text;
                drValues["Amount"] = lblAmount.Text;
                dtValues.Rows.Add(drValues);
                dtValues.AcceptChanges();
drValues["Amount"] = lblAmount.Text;
This row is null when i debug using breakpoints.Hence,can't get this value inside my data Table.How should i do this?... 

Thanks
Amit
Amit
Top achievements
Rank 1
 answered on 26 Oct 2010
6 answers
262 views

Whenever I have to reboot my production server, I lose all access on SqlConnections associated with a SqlDataSource binding for the Telerik Grid for ASP.NET AJAX.

I have never been able to determine the cause of the problem. Everything works fine on my development server. Everything works fine when I move it to the production server, but then if that server is rebooted, I lose all access to those Telerik Grids and I get the error pasted below.

Eventually after waiting... and waiting... and repeating attempts to access the web page with the Grid, I eventually get a connection and data populated in the Grid. What could be causing this problem?

What is the most reliable data source to use with data binding for the Telerik Grid in ASP.NET AJAX web apps? By reliable, I mean relatively trouble free data binding without worrying about mysterious connection problems like the one I experience whenever I reboot my production server. Oh, please do not criticize me for rebooting my production server. Yes, I know that I should avoid doing that whenver possible.

Thanks.

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
   System.Data.SqlClient.SqlDataReader.get_MetaData() +86
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +311
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
   System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) +10
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2303
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   Telerik.Web.UI.GridTableView.PerformSelect() +16
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.GridTableView.DataBind() +256
   Telerik.Web.UI.RadGrid.DataBind() +87
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Iana Tsolova
Telerik team
 answered on 26 Oct 2010
3 answers
264 views
Hello, I have a RadWindow Modal Popup Window  that opens a URL I send it.  I would like the Window's Loading Image to change depending on the URL I am opening... for example... if I send page1.aspx URL I want page1loader.gif to be the loading image, and if I send it page2.aspx URL I want page2loader.gif to be the loading image.  How can I accomplish this?

Thanks,
Manuel
Georgi Tunev
Telerik team
 answered on 26 Oct 2010
1 answer
107 views
When i create a node on the client side i can´t get the node.value property on the server side. However i have no problem getting the text and index properties. What am i missing?



function CreateNode(nodeid)
{
    var tree = $find('treeview1');
    tree.trackChanges();
    var selectedNode = tree.get_selectedNode();
    var node = new Telerik.Web.UI.RadTreeNode();
    node.set_text("New Node");
    node.set_value(nodeid);
    selectedNode.get_nodes().add(node);
    tree.commitChanges();
}

Nikolay Tsenkov
Telerik team
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?