Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
168 views

I would like than the text of a row must just on one line.

Sometimes, the size text are so important and I would like to cut the text after 100px by exemple and don't put on line (by default).

Any ideas to resolve my problem?

Adrien
Top achievements
Rank 1
 answered on 26 Feb 2016
5 answers
112 views
Occasionally on a website I am getting a webresource error now I followed this site, http://www.telerik.com/blogs/debugging-asp-net-2-0-web-resources-decrypting-the-url-and-getting-the-resource-name ,and decrypted the web resource url. It seems to be throwing the error at pTelerik.Web.UI|Telerik.Web.UI.Skins.Default.Editor.ToolbarSprites.gif . I do have several pages that have a radeditor, but the decryption did not specify as to where the error occurred. Now, some of them have the skin to default where as the others don't have a skin set, of which I don't think it will matter. The only thing I can think of is that the skins dll and web ui dll are different versions. Now the error happens randomly. The skins dll is 2014 ver. whereas ui dll is 2015 ver. Would that cause the issue, and if not what else could cause it?
Vessy
Telerik team
 answered on 26 Feb 2016
14 answers
172 views
Hi,

I am getting this weird behaviour when i refresh the radgrid during an ajax call. Basically the first cell which is the row selection column, automatically gets a colspan of 2 which breaks the table structure.

problem

I have written a hack for this, but would prefere to not have to write javascript to fix the single cell. Has anyone come across this behaviour? If so, What was the problem?

function GridCreated(sender, eventArgs) { 
 
    var gridID = sender.get_id(); 
    if (gridID != null) { 
        var grid = $('#' + gridID); 
        var td = $("td[colSpan=2]", grid); 
        $(td).attr("colSpan",1); 
    } 


Thanks

Amar

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
3 answers
99 views
Hi,

I am facing a strange situation with AjaxManager and, although the code works as expected, I receive everytime the following error:

JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: key.

A simple code like the following raises the error, and usually all calls made to Ajax Manager from code behind are problematic.

   Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
        If e.Argument = "Rebind" Then
            RadGridItems.MasterTableView.SortExpressions.Clear()
            RadGridItems.MasterTableView.GroupByExpressions.Clear()
            RadGridItems.Rebind()
        End If

I am using version 2014.1.225.45 and Visual Studio 2013 (updated). I found the following thread thas looks similar but I cannot find a proper solution.
http://www.telerik.com/forums/rad-ajaxmanager-issue-with-telerik-reportviewer-webforms-reportviewer-control

I also have noticed that ajaxifying some other controls (RadCombobox or buttons) are also causing the error:

<telerik:AjaxSetting AjaxControlID="BtnAddtoBasket">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="BtnAddtoBasket" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>

Thanks.
Eyup
Telerik team
 answered on 26 Feb 2016
1 answer
152 views

Hi,

I have used InsertCommand when inserting new rows to the radgrid.

  

protected void grvTasks_InsertCommand(object sender, GridCommandEventArgs e)
{
    var editableItem = ((GridEditableItem)e.Item);
 
    GetTasks();
 
    if (_taskListMain != null)
    {
        Task newTask = new Task(_taskListMain.DataConnections);
 
        Hashtable values = new Hashtable();
        editableItem.ExtractValues(values);
 
        if (values["Name"] != null)
            newTask.Name = (string)values["Name"];
 
        if (values["Description"] != null)
            newTask.Description = (string)values["Description"];
 
        if (values["EstimateInHours"] != null)
            newTask.EstimateInHours = int.Parse(values["EstimateInHours"].ToString());
 
 
        _taskListMain.Tasks.TaskRows.Add(newTask);
        _taskListMain.Tasks.Save();
    }
}

 

I copy data from each field from hashtable to the final class properties. This means lot of rows if there are lot of fields, so I wondering is there another way to copy inserted data from GridEditableItem to final custom class? e.g. Similar function what is use in UpdateCommand ( editableItem.UpdateValues(task);)

 

Regards,

Auvo

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
3 answers
282 views

Hello...

I have a radgrid1 (the parent) which allows you to insert records with a formtemplate.

 inside radgrid1's form template i have another radgrid (radgrid2) which basically is a child of radgrid one.... think of radgrid1 as a cars, and radgrid 2 as carparts.... so i want to insert a honda.... but as part of honda i want to add engine, seats etc.

 

my problem is i'm not sure how to approach a scenario where i click "add new record" on radgrid1... my formtemplate pops up... but because performinsert hasn't been called yet.... i can't add items to my radgrid2 since the parent doesnt have a datakeyvalue yet as parent record not inserted yet.

 

How would you go about this?  how would i databind the child grid when i'm still trying to add the parent?

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
1 answer
754 views

I would like to display "Yes" or "No" for a Boolean in RadGridView instead of a checkbox. I would like to implement this changed in xaml. Columns are generating dynamically. This is how it's created now:

 

 <telerik:RadGridView x:Name="Data" Grid.Row="3" Margin="5" AutoGenerateColumns="False" CanUserSortColumns="True" IsFilteringAllowed="True"
                                 grid:RadGridViewColumnsBinding.ColumnsCollection="{Binding Path=Columns}"
                                 IsReadOnly="False" CanUserResizeColumns="True"/>

Viktor Tachev
Telerik team
 answered on 26 Feb 2016
4 answers
248 views

Hello,

I made an ASP.NET page that uses a RadScheduler with client-side binding.

User access to the application is authenticated by a classical login form based on ASP.NET Membership.

Everything works fine except for an authentication issue that periodically occurs.

The following is an example to illustrate the scenario in which the issue is encountered:

  • a user goes to the RadScheduler page
  • they leave the page open but don't use the application for some hours (and during this time, the user session expires)
  • if the user performs a navigation command on the scheduler (for exampe: click on "next week"), the browser displays a modal dialog box in which authentication is requested, with login and password fields
  • if the user inputs their credentials and clicks "ok", another alert box says "Authentication failed" and so on
  • at this point the user is stuck on this page and is forced to close the browser tab or entire browser window.

 My question is: what can I do in order to make user credentials be accepted by the server?

I already tried with this in web.config:

<system.web.extensions>

<scripting>

<webServices>

<!-- Allows for ajax.net user authentication -->

<authenticationService enabled="true" requireSSL="false" />

</webServices>

</scripting>

</system.web.extensions> 

but nothing changed.

 

Any suggestion would be appreciated.

Thanks in advance

Regards

Mike

 

 

Mike
Top achievements
Rank 1
 answered on 26 Feb 2016
5 answers
94 views

Hello,

I'm having a strange problem with stylesheets in tabs and I hope that you can help me.

I have an Upload control and some buttons in a tab in a page and, in IE 9 only it seems (I've tested Firefox, IE 10 & Chrome, this is not an issue there), when first loaded the page does not load the css for these controls.

If a postback occurs in the tab (ie if a file is uploaded) then the css is loaded (see attached files).

Is there any way to ensure that the css is loaded in this instance?

Thank you

Paul Herzberg

 

Veselin Tsvetanov
Telerik team
 answered on 26 Feb 2016
2 answers
227 views

Hi,
Telerik Team,

            I am using rad grid in batch editing mode ,suppose I have added 15 new records to grid and perform sorting on any column then it will lost data(newly added records in grid). I am facing this issue please help me on same. Is there any built in sorting available for edit mode?


Thanks

Eyup
Telerik team
 answered on 26 Feb 2016
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?