Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
294 views
Is there a way to get a list of values in all cells that are in a named column or row.  Similar functionality to what is in spreadprocessing named ranges.
Ivan Danchev
Telerik team
 answered on 03 Jun 2016
1 answer
129 views

Current we are doing server side biding in radgrid and using radpersistencemanager.

Now we want to do client side data bind in radgrid.

Please let us know how to use radpersistencemanager in this case?

Is their way to do persistence if we can not use radpersistencemanager?

 

Daniel
Telerik team
 answered on 03 Jun 2016
3 answers
130 views

What is the default setting for RenderMode? Is there any reason why you not just set RenderMode to "Auto"?

 

mgm

Rumen
Telerik team
 answered on 02 Jun 2016
1 answer
152 views

A client site is running our ASP.NET 3.5 web-application which includes the Report Viewer control for reporting. They have recently upgraded to IE11, which must be run in native/standards mode.

In order to get the print function of the Report Viewer control working, we have upgraded the Report Viewer control to the 2012 version and have applied patches / updates as per instructions here:
https://blogs.msdn.microsoft.com/selvar/2013/12/20/reportviewer-2012-control-not-showing-print-icon-when-viewed-from-ie-11-desktop-mode/

Part of these instructions are to remove any browser files, however we are currently using the RadHiddenFieldPageStateCompression utility to compress viewstate (specified as per Telerik documentation in the Default.browser file).

If we remove the Default.browser file, the Report Viewer print function operates correctly, but viewstate compression no longer works. Adding the Default.browser file back in, hides the print button on the Report Viewer control.

Is there any way that we can retain viewstate compression and use the SSRS 2012 Report Viewer print function?

Thanks.

 

Maria Ilieva
Telerik team
 answered on 02 Jun 2016
2 answers
239 views

Hi

Is it possible to disable the possibilty to drag and drop between multiple grids on one page?
The only method I've found to disallow drag and drop between mutliple grids is to check if the source and target grid are the same on dropping otherwise canceling.

 

Maxim
Top achievements
Rank 1
 answered on 02 Jun 2016
1 answer
373 views

 

Having trouble find what is causing this error.

 

Server Error in '/OPSSC_TEST' Application.

String or binary data would be truncated.
The statement has been terminated.
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: String or binary data would be truncated.
The statement has been terminated.

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): String or binary data would be truncated. The statement has been terminated.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1958986 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4876475 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1121 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +200 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137 System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +386 System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +325 System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +92 Telerik.WebControls.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind) +353 Telerik.WebControls.GridCommandEventArgs.ExecuteCommand(Object source) +1996 Telerik.WebControls.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +165 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5491

John
Top achievements
Rank 1
 answered on 01 Jun 2016
1 answer
162 views

Hello,
I wanted to know if we can disable the ability to move in the map?

I just want to display the map with some tooltip, but i don't want the user can move Inside. I find we can disable "zoomable" and "pinable" but how to disable "move" ?

I really hope we can, or have some issue to do it .

 

Thank you in advance

Vessy
Telerik team
 answered on 01 Jun 2016
1 answer
69 views

Hello,

My customer has requested that we put link buttons into a specific field on a grid. The nature of the filed being that I need to have regular text followed by an unlimited number links means that I have to add my buttons dynamically. I have the text followed by links working proper upon the initial page load but something happens after the grid filter is applied. Once the grid filter is applied a post back occurs my method is still called to reformat the filed into it's final format however. Once the page loads the links are nowhere to be found and the grid cells display the text that is being converted into the buttons. Currently I am calling my logic to create the grid links on page load. I have to create the grid links in load because if I do it any later than that then my link buttons no longer function properly. Some help would be greatly appreciated. Thanks in advance below are some of my code snippets.

-Brandon

 

RadGrid Load Method

1.Private Sub RadGridResults_Load(sender As Object, e As EventArgs) Handles RadGridResults.Load
2.     For Each Item As GridItem In RadGridResults.MasterTableView.Items
3.          CreateGridLinks(Item)
4.     Next
5.End Sub

Create Grid Links Method (Simplified From Original)

01.Private Sub CreateGridLinks(item As GridItem)
02.    If TypeOf item Is Telerik.Web.UI.GridDataItem Then
03.        Dim dataItem As Telerik.Web.UI.GridDataItem = CType(item, Telerik.Web.UI.GridDataItem)
04.        For Each cell As TableCell In item.Cells
05.            Dim Issues() As String = cell.Text.Split(";"c)
06.            If Issues.Length > 1 AndAlso cell.Text <> " " Then
07.                Dim CellText As String = Issues(0) + " "
08.                Dim CellId As String = ""
09.                Dim IssueAppealType As String = ""
10.                Dim IssueAppealId As String = ""
11.                For i As Integer = 1 To _issues.Length - 1
12.                    If i = 1 Then
13.                        cell.Controls.Add(New LiteralControl(CellText))
14.                    End If
15.                    If _issues(i).Trim.Split(":"c).Length > 1 Then
16.                        Dim IssueAppealButton As New LinkButton()
17.                        CellId = _issues(i).Trim.Replace(":", "")
18. 
19.                        Dim IssueAppealArray = _issues(i).Trim.Split(":"c)
20.                        IssueAppealType = IssueAppealArray(0)
21.                        IssueAppealId = IssueAppealArray(1)
22.                        IssueAppealButton.Text = IssueAppealId
23.                        cntrlCount += 1
24.                        IssueAppealButton.ID = "LinkButton" + CellId + cntrlCount.ToString
25.                         
26.                        AddHandler IssueAppealButton.Click, Sub(send, evt) HandleIssueLinkClick(IssueAppealId, IssueAppealType)
27. 
28.                        cell.Controls.Add(IssueAppealButton)
29.                        cell.Controls.Add(New LiteralControl(" "))
30.                    End If
31.                Next
32. 
33.            End If
34.        Next
35.    End If
36.End Sub

Brandon
Top achievements
Rank 1
 answered on 01 Jun 2016
3 answers
132 views

Hello Telerik,

I have a treeview with many nodes with checkboxes. When I check the very last node, this is saved in a database and I rebind the treeview. After that, the checked nodes appear at first at the top at the treeview, the unchecked nodes follow underneath. So far no problem. But after rebinding I want the treeview to scroll up to the top. The scrollbar however stays at the bottom and the selected node(s) stays out of sight. I managed to get arround that by, after rebinding the treeview, setting focus on the first node and use examples on your forum to scroll to the top of the treeview. But doing so, the first node is selected and I don't want that, it's an 'ugly' solution. Is there a way to do this in a more elegant way?

Thanks,

Geert

Ivan Danchev
Telerik team
 answered on 01 Jun 2016
3 answers
482 views

How do I use the grid filter expresssion in an entity framework query in the NeedDataSource method?

For example after selecting from the grid column filters the filter expression is:

(iif(Comment == null, "", Comment).ToString().ToUpper().Contains("test".ToUpper())) AND (iif(OrderNo == null, "", OrderNo).ToString().ToUpper().StartsWith("830".ToUpper()))

How do I use it in my EF query

var orders = db.Orders.Where(o=>o.Status == 2);

Thanks.

 

Maria Ilieva
Telerik team
 answered on 01 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?