Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
81 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
98 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
70 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
113 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
148 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
103 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
1 answer
341 views
My radgrid has three levels. When I expand through to the bottom level detailtable I want to add a button in the footer area of the GridTableView to perform some tasks that use the 3rd level data. Is this possible? thanks in advance
Shinu
Top achievements
Rank 2
 answered on 16 Apr 2010
0 answers
124 views
############## Closed this item, after figuring it out.  ##############################



I have a page with three RadComboBoxes and a submit button.  The submit is inside a RadAjaxPanel, with a textbox for the results of the click.

The functionality I want is to Textclick the button, and the value of the selected items in the combo boxes is displayed in the textbox.

It seems whatever item I select in combo 1 and 3, I get null as the selected item, even though the Text property of the combobox correctly identifies the item selected. Combo 2 works correctly.

I used Firefox to see what was being posted to the server. 
For combo 1
{"logEntries":[],"value":"zr4","text":"Medium Density Residential Area","enabled":true}
For combo 3

{"logEntries":[],"value":"5","text":"Code Purpose","enabled":true}

For combo 2 
{"logEntries":[{"Type":1,"Index":0,"Data":{"text":"Please Select","value":"0","selected":true}},{"Type":1,"Index":1,"Data":{"text":"Centre Activities (except Amusement Arcade, Child ...","value":"uc1843"}},{"Type":1,"Index":2,"Data":{"text":"Centre Activities (except Amusement Arcade, Child ...","value":"uc1890"}},{"Type":1,"Index":3,"Data":{"text":"Centre Activities where not involving building wor...","value":"uc1919"}},{"Type":1,"Index":4,"Data":{"text":"Centre Activities (except Display and Sales Activi...","value":"uc1932"}},{"Type":1,"Index":5,"Data":{"text":"Building work involving alterations to the facade ...","value":"wb1951"}},{"Type":1,"Index":6,"Data":{"text":"Centre Activities (except Display and Sales Activi...","value":"uc1996","selected":true}},{"Type":1,"Index":7,"Data":{"text":"Centre Activities whether or not involving buildin...","value":"uc2022"}},{"Type":1,"Index":8,"Data":{"text":"Demolition or removal of a Multi–unit Dwelling (wh...","value":"wd2046"}}],"value":"wd2046","text":"Demolition or removal of a Multi–unit Dwelling (wh...","enabled":true}

How do I access the value variables for combos 1, 2 and 3 - because the SelectedValue, SelectedItem, SelectedText properties arent working for me in this case?

Also, why is it that the Firefox post seems to identify the first item as selected whatever item I choose, but in fact its the only one that returns the correct item when I use SelectedValue, SelectedItem, SelectedText.  The other two are atleast sending the correct items to the server!

Very confused.

Ive posted the page code and code behind below.  Really appreciate your advice.

<%

@ Page Language="C#" MasterPageFile="~/Masterpages/MasterPage.master" AutoEventWireup="true" CodeFile="Slice2.aspx.cs" Inherits="Slice2" Title="Untitled Page" %>

 

<%

 

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

 

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

 

 

 

<title>Slice: thePlanBox</title>

 

 

 

<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

 

 

 

<script type="text/javascript">

 

 

 

var pgs = new Array('Find','Review','Navigate','Read');

 

DoSetup(pgs);

 

 

</script>

 

 

 

</telerik:RadScriptBlock>

 

 

 

 

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

 

 

<script type="text/javascript">

 

 

 

function OnRC1ClientSelectedIndexChanged(sender, args)

 

{

 

 

var value = args.get_item().get_value();

 

 

 

if (value != "0") {

 

 

 

var panel = $find("<%=RadXmlHttpPanel1.ClientID %>");

 

panel.set_value(value);

}

 

else {

 

 

 

var combo = $find('<%=rc2.ClientID %>');

 

combo.clearItems();

combo.clearSelection();

}

}

 

 

function OnClientResponseEnding(panel, args) {

 

 

 

var count = args.get_content().length;

 

 

 

var combo = $find('<%=rc2.ClientID %>');

 

combo.clearItems();

combo.clearSelection();

 

 

var selectItem = new Telerik.Web.UI.RadComboBoxItem();

 

selectItem.set_text(

 

"Please Select");

 

selectItem.set_value(

 

"0");

 

combo.trackChanges();

combo.get_items().add(selectItem);

selectItem.select();

combo.commitChanges();

 

 

for (var i = 0; i < count; i++) {

 

 

 

var item = args.get_content()[i];

 

 

 

var comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(item.Name);

comboItem.set_value(item.ID);

combo.trackChanges();

combo.get_items().add(comboItem);

combo.commitChanges();

}

args.set_cancel(

 

true);

 

}

 

 

 

</script>

 

 

 

</telerik:RadScriptBlock>

 

 

 

 

</

 

asp:Content>

 

<

 

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 

<

 

 

div id="tpb_default_pagecontrols">

 

<

 

 

telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server"

 

 

 

WebMethodPath="WebService.asmx"

 

 

 

WebMethodName="GetActivitiesForPlace"

 

 

 

EnableClientScriptEvaluation="true"

 

 

 

OnClientResponseEnding="OnClientResponseEnding" LoadingPanelID="LoadingPanel1">

 

 

 

</telerik:RadXmlHttpPanel>

 

 

 

 

 

 

<div id="tpb_clientdocumentcombos">

 

 

 

 

<div>

 

 

 

<div class="tpb_controllabel">Places</div>

 

 

 

<div class="tpb_shadowcombo"><telerik:RadComboBox ID="rc1" runat="server"

 

 

 

OnClientSelectedIndexChanged="OnRC1ClientSelectedIndexChanged" Width="600"></telerik:RadComboBox></div>

 

 

 

<div class="tpb_dropshadow"><asp:Image ID="DDImage1" runat="server" ImageUrl="Images/DD_Shadow.png" /></div>

 

 

 

</div>

 

 

 

 

<div>

 

 

 

<div class="tpb_controllabel">Activities</div>

 

 

 

<div class="tpb_shadowcombo"><telerik:RadComboBox ID="rc2" Runat="server" Width="600"></telerik:RadComboBox></div>

 

 

 

<div class="tpb_dropshadow"><asp:Image ID="Image1" runat="server" ImageUrl="Images/DD_Shadow.png" /></div>

 

 

 

</div>

 

 

 

 

<div>

 

 

 

<div class="tpb_controllabel">Choose criteria types</div>

 

 

 

<div class="tpb_shadowcombo"><telerik:RadComboBox ID="rc3" Runat="server" Width="600"></telerik:RadComboBox></div>

 

 

 

<div class="tpb_dropshadow"><asp:Image ID="Image2" runat="server" ImageUrl="Images/DD_Shadow.png" /></div>

 

 

 

</div>

 

 

 

<div class="tpb_loadingmsg">

 

 

 

<telerik:RadAjaxLoadingPanel id="LoadingPanel1" Runat="server">

 

 

 

<asp:Image id="Image3" runat="server" ImageUrl="Images/ajax-loader.gif" >

 

 

 

</asp:Image>

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

</div>

 

 

 

</div>

 

 

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px"

 

 

 

Width="600px" LoadingPanelID="LoadingPanel1">

 

 

 

 

<asp:Button ID="Button1" runat="server" Text="Show Me" onclick="Button1_Click" />

 

 

 

<asp:Literal ID="xml1" runat="server" Mode="PassThrough" EnableViewState="false"></asp:Literal>

 

 

 

 

</telerik:RadAjaxPanel>

 

 

 

</div>

 

 

 

</

 

 

asp:Content>

 

 









chrispo
Top achievements
Rank 1
 asked on 16 Apr 2010
19 answers
391 views
I am trying to create the RadDateTimePicker control dynamically in my code. i am getting expected ':'
I am able to add the textbox control , RadDateInput, RadTimePicker controls easily without an error but i am not able to add RadDatePicker and RadDateTimePicker.
 here is my code

 Case "datetimeend"
               Dim cal2 As New Telerik.Web.UI.RadDateTimePicker
                cal2.ID = parameterid

                ctrls.Add(cal2)

i have <asp:ScriptManager ID="ScriptManager1" runat="server" /> on the aspx page.

Beth Wetherbee
Top achievements
Rank 1
 answered on 16 Apr 2010
8 answers
261 views
Greetings,
    The Radopen function does not seem to work with relative paths, so for now I have been moving the views to the root directory.  is there a way to use relative paths with the Radopen function?  For example, the path ../View/Account/login.aspx does not work.  It appears that the leading periods are stripped off of the path.

Thanks in advance,
Eugene
Eugene
Top achievements
Rank 1
 answered on 15 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?