Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
159 views
I have the following javascript that is being called in the OnClientReordered event. I am trying to change the text of the items in the list when they are reordered. What I am seeing is the item does not update the first time the event fires. The second time the event fires the text gets rendered correctly. (The text is being changed properly, as I can put a watch on the values, and the text is correct. It is just not being rendered) Is there something I am doing incorrectly here? I could find no information from the documentation on the API.



function SetcontentorderNumber() { 
        reg = new RegExp("\\[\\d*\\]") 
        var list = $find("<%= foo.ClientID %>"); 
        var length = list.get_items().get_count(); 
 
        list.trackChanges(); 
        for (var i = 0; i < length; i++) { 
            var text = list.getItem(i).get_text(); 
            if (reg.test(text)) { 
                texttext = text.replace(reg, "[" + (i + 1) + "] "); 
                list.getItem(i).set_text(text); 
            } 
            else { 
                text = "[" + (i + 1) + "] " + text; 
                list.getItem(i).set_text(text); 
            } 
        } 
        list.commitChanges(); 
    } 

Veronica
Telerik team
 answered on 16 Apr 2010
1 answer
169 views
Currently the hyperlink configuration allows for "open in a new window".  My business users would like another option to "open in a new tab".   Would this be coming in a subsequent release? 
Stanimir
Telerik team
 answered on 16 Apr 2010
1 answer
147 views
If you set HideEvent to "LeaveTargetAndToolTIp", and if you place your mouse over the target (let's say an image), the tooltip displays and after a few seconds it hides. If you set the HideEvent to "LeaveTootip", the tooltip doesn't hide in the same scenario. I am fine with using "LeaveTooltip" to create a persistant tooltip which doesn't hide unless the user moves their mouse off the target, however, it doesn't seem to match up with the avaialble HideEvent options. Shouldn't "LeaveTargetAndTooltip" be the one which persists the tooltip when the user is hovering over the target?
Svetlina Anati
Telerik team
 answered on 16 Apr 2010
3 answers
111 views
I just loaded up the newest version of Telerik.Web.UI Q1 2010 and my style overrides seem to be only partially working?  Did the styles change again?
Iana Tsolova
Telerik team
 answered on 16 Apr 2010
2 answers
87 views
Downloads shows the 2009 Q2 release as the latest release for ASP.NET AJAX?!?

What happened? Shouldn't this be fixed so that 2010 Q1 is the latest release for ASP.NET AJAX?!?
Sebastian
Telerik team
 answered on 16 Apr 2010
3 answers
104 views
I changed a .aspx page from being a Web Content Form, to a Web Form Page!

all element is now styled with "visibility:hidden !important;" Im getting really tired of not being able to solve! The Style appears in the code, not in a stylesheet!

Firebug indicates this:
input, textarea, button, select { Register.aspx (line 1)
visibility:hidden !important;
}
Georgi Tunev
Telerik team
 answered on 16 Apr 2010
1 answer
72 views
Hi,
I'm using Telerik version 2009.31208.20. I have created an asp page which contains decorated asp:button and asp:textbox with the Telerik RadFormDecorator. When I open the web page at the first time everything is ok (the decorated buttons and textboxs are displayed) but after some successive clicks on an link  that refreshs the page- placed in the master page, the buttons and textboxs disappears. This problem occurs in Chrome 4.1 and FF 3.6.3. I have joined to this post two snapshots before and after the bug.

here the source code:
<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="All" 
        Skin="WebBlue"></telerik:RadFormDecorator> 
<...........> 
<asp:TextBox ID="UserName" TabIndex="1" runat="server" CssClass="classTbxCourriel" ValidationGroup="login"></asp:TextBox> 
<...........> 
 <asp:Button UseSubmitBehavior="false" TabIndex="3" ID="LoginButton" ValidationGroup="login" runat="server" CommandName="Login" 
  Width="120px" Text="<%$ Resources:Labels, LoginLoginButton %>" /> 

Best regards.
Mounir,

Georgi Tunev
Telerik team
 answered on 16 Apr 2010
1 answer
114 views
hello!

I downloaded a RadGrid that i want to try before i try i read the instructions
to implement the grid with the outlook skin.
http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/Common/QSFInstructions/Instructions.html

i made the changes in the aspx file and i am trying to run the solution but i recive an exeption
that says.

The data source 'SessionDataSource1' only supports a single view named 'DefaultView'. You may also leave the view name (also called a data member) empty for the default view to be chosen

what do i do.

this is the Code:

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head id="Head1" runat="server">

 

 

<!-- custom head section -->

 

 

<link href="Styles.css" rel="stylesheet" type="text/css" />

 

 

<style type="text/css">

 

 

.RadGrid th input

 

{

 

margin-top:0;

 

 

margin-bottom:0;

 

 

height:12px;

 

}

 

.OutlookTopBar

 

{

 

background-image: url(Img/outlookBarTop.gif);

 

 

background-color: white;

 

 

background-repeat: repeat-x;

 

 

padding-top: 3px;

 

 

border: 1px solid #002D96;

 

 

width: 180px;

 

 

font-size: 11px;

 

 

padding-left: 4px;

 

}

.OutlookTable

{

 

background-color:#c4dafa;

 

 

margin-top:4px;

 

}

.MailSubject

{

 

color: #808080;

 

}

.SelectedRow_Outlook

 

.MailSubject

 

{

 

color: white;

 

}

 

</style>

 

 

<!-- end of custom head section -->

 

</

 

head>

 

<

 

body class="BODY">

 

 

<form runat="server" id="mainForm" method="post">

 

 

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

 

 

<!-- content start -->

 

 

<div style="background: url(img/bg.jpg) no-repeat; padding: 7px 5px; width:742px;">

 

 

<div style="font-size:13px;font-weight: bold;color:#15428b;padding: 4px 30px;"> <b>Outlook&reg;</b> style</div>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

 

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" Width="741px" AllowSorting="True"

 

 

AllowMultiRowSelection="True" AllowPaging="True" ShowGroupPanel="True" GridLines="None"

 

 

AutoGenerateColumns="False" DataMember="Mails"

 

 

DataSourceID="SessionDataSource1">

 

 

<PagerStyle Mode="NextPrevAndNumeric">

 

 

</PagerStyle>

 

<

 

HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>

 

 

<MasterTableView DataMember="Mails" AllowMultiColumnSorting="True"

 

 

Width="724px" TableLayout="Fixed" DataSourceID="SessionDataSource1">

 

 

<GroupByExpressions>

 

 

<telerik:GridGroupByExpression>

 

 

<SelectFields>

 

 

<telerik:GridGroupByField FieldAlias="Received" FieldName="Received" FormatString="{0:D}" HeaderValueSeparator=" from date: "></telerik:GridGroupByField>

 

 

</SelectFields>

 

 

<GroupByFields>

 

 

<telerik:GridGroupByField SortOrder="Descending" FieldName="Received" FormatString="" HeaderText="">

 

 

</telerik:GridGroupByField>

 

 

</GroupByFields>

 

 

</telerik:GridGroupByExpression>

 

 

</GroupByExpressions>

 

 

</MasterTableView>

 

 

<ClientSettings AllowDragToGroup="True">

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="275px"></Scrolling>

 

 

<ClientMessages DragToGroupOrReorder="Drag to group" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

 

<asp:SqlDataSource ID="SessionDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"

 

ProviderName

 

="System.Data.SqlClient" SelectCommand="SELECT ProductID, ProductName, CategoryID, QuantityPerUnit, UnitPrice, UnitsInStock, Discontinued FROM [Products]"

 

DeleteCommand

 

="DELETE FROM [Products] WHERE [ProductID] = @ProductID" InsertCommand="INSERT INTO Products(ProductName, CategoryID, QuantityPerUnit, UnitPrice, UnitsInStock, Discontinued) VALUES (@ProductName, @CategoryID, @QuantityPerUnit, @UnitPrice, @UnitsInStock, @Discontinued)"

 

UpdateCommand

 

="UPDATE [Products] SET [ProductName] = @ProductName, [CategoryID] = @CategoryID, [QuantityPerUnit] = @QuantityPerUnit, [UnitPrice] = @UnitPrice, [UnitsInStock] = @UnitsInStock, [Discontinued] = @Discontinued WHERE [ProductID] = @ProductID AND [ProductName] = @ProductName AND [CategoryID] = @CategoryID AND [QuantityPerUnit] = @QuantityPerUnit AND [UnitPrice] = @UnitPrice AND [UnitsInStock] = @UnitsInStock AND [Discontinued] = @Discontinued"

 

 

OldValuesParameterFormatString="original_{0}" ConflictDetection="CompareAllValues">

 

 

<DeleteParameters>

 

 

<asp:Parameter Name="original_ProductID" Type="Int32" />

 

 

</DeleteParameters>

 

 

<UpdateParameters>

 

 

<asp:Parameter Name="ProductName" Type="String" />

 

 

<asp:Parameter Name="QuantityPerUnit" Type="String" />

 

 

<asp:Parameter Name="UnitPrice" Type="Decimal" />

 

 

<asp:Parameter Name="UnitsInStock" Type="Int16" />

 

 

<asp:Parameter Name="Discontinued" Type="Boolean" />

 

 

<asp:Parameter Name="original_ProductID" Type="Int32" />

 

 

<asp:Parameter Name="original_ProductName" Type="String" />

 

 

<asp:Parameter Name="original_QuantityPerUnit" Type="String" />

 

 

<asp:Parameter Name="original_UnitPrice" Type="Decimal" />

 

 

<asp:Parameter Name="original_UnitsInStock" Type="Int16" />

 

 

<asp:Parameter Name="original_Discontinued" Type="Boolean" />

 

 

</UpdateParameters>

 

 

<InsertParameters>

 

 

<asp:Parameter Name="ProductName" Type="String" />

 

 

<asp:Parameter Name="QuantityPerUnit" Type="String" />

 

 

<asp:Parameter Name="UnitPrice" Type="Decimal" />

 

 

<asp:Parameter Name="UnitsInStock" Type="Int16" />

 

 

<asp:Parameter Name="Discontinued" Type="Boolean" />

 

 

</InsertParameters>

 

</

 

asp:SqlDataSource>

 

 

</div>

 

 

<!-- content end -->

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Iana Tsolova
Telerik team
 answered on 16 Apr 2010
3 answers
150 views
Hi,
How to i do RadGrid localization to Turkish language. I have read following articles but i don't wanto to declaring resource codes in the radgrid control. How to correct this with one resx file and minimum radgrid modification? Do you have a sample application for radgrid localization?

http://www.telerik.com/help/aspnet-ajax/creatingnewlanguage.html
http://www.telerik.com/help/aspnet-ajax/grdlocalizationthruresourcefiles.html
Yavor
Telerik team
 answered on 16 Apr 2010
1 answer
106 views
Our web site solution has come up with a very weird situation.
Our site looks great in IE 7 but when we test it in FireFox the Telerick RadGrid control spills over the master page div settings.
The footer bar ended up behind the grid control with the filter line on top of the footer.
This only occurs on pages where the filter is active for the grid.  The other pages look normal.

Has anyone had this happen to them?

We managed to fix this in an uncoventional way.
We added a div block around the grid then an html paragraph tag with 20 spaces to force a word wrap.
Without the word wrap the div did not work to expand the master page border to go around the grid controls.

What happened is the filter line ended up on top of our footer bar and the filters that overlay text you could not click into.
The filters that overlay the footer bar area with no text you could click into.

Is there a better way to get the master page to expand around a grid with filters?
Yavor
Telerik team
 answered on 16 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?