Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
221 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
155 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
543 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
229 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
235 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
92 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
1 answer
211 views
Hi all,

I am using the RadInputManager on a webform. I have a textbox i want to control. It must have content, so, I have set the TextBoxSettings attributes like this:

EmptyMessage="type.." Validation-IsRequired="true"

If I click the textbox, the "type.." text disappears, and I can type in my content - no problems.
But when I want the cursor to be in the control set in page load, the "type.." text remains, and when I type "123 " in the box, it gets like this: "123 type..". And it's with the gray "disabled" look.

I have tried to write the javascript my self, in stead of using the Page's SetFocus method. Same behaviour occures.

Any one having experience with this issue?

Kind regards
Morten

 

Pavel
Telerik team
 answered on 26 Oct 2010
3 answers
95 views
I have a modified xml Appointments file with users added anb I am using the sample project http://www.telerik.com/ClientsFiles/138467_radschedulermvc-demo.zip .
I have selected StartEditingInAdvancedForm="true", the form opens and I see the User dropdown but it is not populated with the users how do I go about this?


<telerik:RadScheduler runat="server" ID="RadScheduler1" Height="100%"
        AllowDelete="False" AllowEdit="False" AllowInsert="False" Skin="Office2007"
            StartEditingInAdvancedForm="true" SelectedView="WeekView"
        DayEndTime="18:00:00" DayStartTime="08:00:00"
            ShowFooter="false" Culture="en-GB">
            <AdvancedForm Modal="true" />
            <ResourceTypes>                   
                    <telerik:ResourceType KeyField="Key" Name="User" TextField="Text" ForeignKeyField="ID"
                        DataSourceID="XmlSchedulerProvider" />
                </ResourceTypes>
        <WebServiceSettings Path="~/Models/SchedulerWebService.asmx" />
    </telerik:RadScheduler>



Thanks
Veronica
Telerik team
 answered on 26 Oct 2010
7 answers
167 views
Dear all,

I have used a trial version of ASP.NET AJAX and are trying to activate the product but do not know how. All I have received is a "unique customer ID" would anyone know how to move forward?

Best Regards,

Thomas Andersson
Rumen
Telerik team
 answered on 26 Oct 2010
1 answer
274 views
Hello ,

I'm facing problem with rebinding RADListView from code behind by  changing the databasourceid in the event of RADTreeNode selection.

I'm desiging a page with Radtreeview and Radlistview and while clicking the node on the RADTreeView I'm getting the directory path from the treenode and assigning the selected directory to the RADListview in the code behind to list all images.  

Intermittently the RADListView is not getting the correct path and binding to a previously assigned values.  This is happening more frequently.

I'm displaying the same treenode selected path on a Gridview and that is showing the correct values for that selected treenode consistently.  It seems to be an issue with the RADListview binding using AJAX. 

Is there an alternate approach I can try to fix this dynamic biding issue?   Thanks for your help.

 

 

protected void RadTreeView1_Selected(object sender, RadTreeNodeEventArgs e)

 

{

 

 

if (e.Node.ToolTip == "Album")

 

{

 

 

string albpath = "";

 

 

 

if (RadTreeView1.SelectedNode.GetFullPath("/") == "Sample Folder/Sample Album")

 

{

 

 

albpath = "~/" + "Registered_Users_Uploaded_Images" + "/" + RadTreeView1.SelectedNode.GetFullPath("/");

 

}

 

 

else {

 

albpath =

 

"~/" + "Registered_Users_Uploaded_Images" + "/" + uname + "/" + RadTreeView1.SelectedNode.GetFullPath("/");

 

}

 

ObjectDataSource1.SelectParameters[

 

"path"].DefaultValue = albpath;

 

 

 

// ObjectDataSource1.SelectMethod = "GetData()";

 

RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadTreeView1, ObjectDataSource1);

 

RadListView1.DataSourceID =

 

"ObjectDataSource1";

 

RadListView1.Rebind();

 

RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadTreeView1, RadListView1);

}


}

============== ObjectDataSource=============

 

 

<asp:ObjectDataSource runat="server" ID="ObjectDataSource1" SelectMethod="GetData"

 

 

 

TypeName="uploadWebApp.DataProvider">

 

 

 

<SelectParameters>

 

 

 

<asp:Parameter Name="path" DefaultValue="~/Registered_Users_Uploaded_Images\dsnap1\My Albums\2010-10-16"/>

 

 

 

</SelectParameters>

 

 

 

</asp:ObjectDataSource>

 

=============================================

============ AJAX settings ==================

 

 

<telerik:AjaxSetting AjaxControlID="RadTreeView1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="GridView1" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="ObjectDataSource1" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="ListViewPanel1" />

 

<UpdatedControls>

 

 

</telerik:AjaxSetting>

 





Tsvetina
Telerik team
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?