Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
396 views

There is a serious bug in the AJAX radgrid, when using a bound GridNumericColumn, where NumericType = "currency" to set the display format.  

 

When the  datasource has negative amounts, this will be displayed in the format "($1.22)", which is what is expected with a currency format.  But, as soon as you try to edit this column, it opens the editor, and misinterprets this negative, and transforms the amount to positive.   The currency format should be shown in non edit mode, but it should interpret this properly and display a number with a negative sign in edit mode.  When edit has closed, the display should revert back to currency format.

 

This is a very serious issue with financial applications, such as those that deal with hundreds of million sof dollars in a corporate Profit And Loss, or Forecasting system.

 

 

Rumen
Telerik team
 updated answer on 08 Aug 2022
1 answer
408 views

Hi

I have a RadButton with  ButtonType="LinkButton".

I want remove the link from Head Office by following code.

ASPX

<telerik:GridTemplateColumn HeaderText="Branch" HeaderStyle-Width="10%" DataType="System.String" UniqueName="Branch" DataField="Branch">
                                    <ItemTemplate>
                                        <telerik:RadButton ID="btnBranch" Width="100%" runat="server" Text='<%#Eval("Branch") %>' ButtonType="LinkButton" ToggleType="CustomToggle" 
                                            Font-Underline="true" BorderStyle="None" CommandName="ViewBranchDtls" CommandArgument='<%#Eval("Branch") %>'>
                                        </telerik:RadButton>
                                        <asp:HiddenField ID="hdBranch" runat="server" Value='<%#Eval("Branch") %>' />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>

CS

protected void gvReport_ItemDataBound(object sender, GridItemEventArgs e) { try { if (e.Item is GridDataItem) { GridDataItem item = e.Item as GridDataItem; if ((item.FindControl("btnBranch") as RadButton).Text == "HEAD OFFICE" ) { (e.Item.FindControl("btnBranch") as RadButton).Style.Add("pointer-events", "none"); // here need to remove the underline } } } catch (Exception ex) { } finally { } }

sample Extracted HTML

<td>
                                        <a id="ctl00_ContentPlaceHolder1_gvReport_ctl00_ctl12_btnBranch" class="RadButton RadButton_Default rbLinkButton" href="javascript:void(0)" style="display:inline-block;border-style:None;text-decoration:underline;width:100%;pointer-events:none;text-decoration:none;"><span class="rbText" style="text-decoration:underline;width:100%;padding-left:0;padding-right:0;text-align:center;">HEAD OFFICE</span><input id="ctl00_ContentPlaceHolder1_gvReport_ctl00_ctl12_btnBranch_ClientState" name="ctl00_ContentPlaceHolder1_gvReport_ctl00_ctl12_btnBranch_ClientState" type="hidden" autocomplete="off"></a>
                                        <input type="hidden" name="ctl00$ContentPlaceHolder1$gvReport$ctl00$ctl12$hdBranch" id="ctl00_ContentPlaceHolder1_gvReport_ctl00_ctl12_hdBranch" value="HEAD OFFICE">
                                    </td>

I notice Telerik will auto generate SPAN with underline.

How to remove the underline?

Thanks.

fsloke


Doncho
Telerik team
 answered on 05 Aug 2022
2 answers
150 views

Is it possible to remove the the togglehandle text "Toggle" because it is indexed by GoogleBot, as in attached screenshot.

 

Thanks, Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 05 Aug 2022
1 answer
202 views

I noticed in the RadMultiColumnComboBox that the cursor appears to be a text-insertion/editing cursor instead of an arrow. I'm using this to allow the user to select an item so the text cursor is unintuitive. Is there a way to set the style of the mouse cursor on this control?


   
<telerik:RadMultiColumnComboBox runat="server" ID="radMultiComboPhrases" DropDownWidth="200px" Height="400px" AutoPostBack="true" Placeholder="Select a phrase..." DataTextField="sBrief" DataValueField="sPhrase" RenderMode="Mobile">
     <ColumnsCollection>
        <telerik:MultiColumnComboBoxColumn Field="sBrief" Title="Brief Desc." Width="200px"></telerik:MultiColumnComboBoxColumn>
        <telerik:MultiColumnComboBoxColumn Field="sPhrase" Title="Phrase" Width="200px"></telerik:MultiColumnComboBoxColumn>
     </ColumnsCollection>
</telerik:RadMultiColumnComboBox>

Rumen
Telerik team
 answered on 04 Aug 2022
8 answers
641 views
I am getting error as below:
It was working fine last week until I reinstalled. Any suggestion?

 

Server Error in '/RadControls_AspNetAjax' Application.

Cannot open user default database. Login failed.
Login failed for user '***************'.

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: Cannot open user default database. Login failed.
Login failed for user '***********'.

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): Cannot open user default database. Login failed.
Login failed for user '*********'.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849015
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2394
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +47

Valentin Dragnev
Telerik team
 answered on 03 Aug 2022
0 answers
160 views

Hi,

 

I just wanted to give you guys a BIG thumbs up for your work on the Gantt chart.

That one saves me really a lot of time to create a customer project system.

 

THANK YOU!

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 03 Aug 2022
1 answer
263 views

Hello,

 

I've got a RadHtmlChart where I am creating my ScatterSeries in the code and setting the colors for every series ( scatterSeries.MarkersAppearance.BorderColor) depending on values coming from the database. This is working fine and my  scatter point colors are as I want them (red and green in my case), but my legend just always shows red and blue, no matter what. I expected to legend to just automatically pick up the colors I set for my chart. What can I do to fix this please?

Thanks

 

 

Sean
Top achievements
Rank 1
 updated question on 02 Aug 2022
1 answer
332 views

Hello,

I have a problem with RadScriptManager

I have an exisiting ASP.Net Web Forms web application.

There is Default.aspx and used Main.Master master page

I did the necessary to integrate Telerik UI Web correctly.

In the master page there is <asp:ScriptManager ID="ScriptManager...

and in the Default.aspx I added <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

and <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />

and <telerik:RadWindowManager RenderMode="Lightweight"....

and <button onclick="openReqForm(); return false;">hello</button>

in code behind:

string fctOpenReqForm = "<script type=\"text/javascript\">function openWin {var oWnd = radopen(\"Request.aspx\", \"RadWindow1\"); } </script>";

Page.ClientScript.RegisterStartupScript(this.GetType(), "openReqForm", fctOpenReqForm);

 

When I execute I have an error message: "Only one instance of script manager can be added to the page...

I need to add a Telerik button and other telerik things to the page and use javascript methods...

Any help? thanks

 

Peter Milchev
Telerik team
 answered on 02 Aug 2022
1 answer
136 views

Out of the box, "ApplyClass" applies a class and "FormatBlock" applies an element type.  I want to do both at once.

For example: I want to be able to to make a red h2 by

  • Wrapping text in 'h2' tags
  • Adding class 'color-red'

I might even want to have an additional class for padding or something so I'd want to

  • Wrap text in 'h2'
  • Add 'color-red' class
  • Add 'padding-bottom-medium' class

I can set up my UI and get to the point where I have my element and list of classes, but can't get anything to work past that.  Do I need to write it all by myself?  I expected some build-in functionality to help with fundamental stuff like this

Rumen
Telerik team
 answered on 01 Aug 2022
6 answers
336 views

Hi,

 

Since the latest update I get error message [illegal characters in path] where I try to rename a file to a name which contains a space.

I am sure this was always allowed till now. Of course our CMS customers have thousands of assets containing spaces which cannot be renamed right now, so this is a very serious issue. Please see attached screenshots.

Marc

TestTeam
Top achievements
Rank 2
Iron
 updated answer on 01 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?