Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
Hi,
I am using RadScheduler in a SharePoint site. If I enable all day row the width of the appointment is very small and I can't actually see it in Internet Explorer 8. With the other browsers this doesn't happen.
I have added the following scripts
div.RadScheduler .rsHorizontalHeaderTable, div.RadScheduler .rsContentTable
{
     width: /*\**/ 100%\9 !important;
}           
* + html div.RadScheduler .rsHorizontalHeaderTable, * + html div.RadScheduler .rsContentTable
{
     width: auto !important;
}

and tried adding something like
div.RadScheduler .rsAllDayRow > td
{
      width: auto !important;      
}

for the all day row but with no success. If I set width: 100% !important then the width of the first all day appointment is the whole scheduler.
Could you please suggest me anything?
Thanks in advance,
Ilias
Kalina
Telerik team
 answered on 23 Mar 2011
1 answer
175 views
hi friends.

i got problems when i converted my project to a newer version using telerik web controls,
my project has an assembly 'Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763', i've already used Telerik.Web.UI.dll instead of Telerik.Charting.dll and added Telerik.Web.UI in my project so i had to remove Telerik.Charting from my project, then i set my web.config file like the code i give bellow but it still occurs bugs, does anyone know this issue?, please help me to resolve it, and here is the code in my web.config file.

  1. <runtime>
  2. <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
  3. <dependentAssembly>
  4. <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  5. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  6. </dependentAssembly>
  7. <dependentAssembly>
  8. <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  9. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  10. </dependentAssembly>
  11. <dependentAssembly>
  12. <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
  13. <bindingRedirect oldVersion="2008.2.826.35" newVersion="2009.2.826.35"/>
  14. </dependentAssembly>
  15. </assemblyBinding>
  16. </runtime>

im using Visual Web Developer 2008 Express Edition and Telerik web controls ASP.NET AJAX 2009.

thanks in advance.

best regards.
Giuseppe
Telerik team
 answered on 23 Mar 2011
4 answers
85 views
I have a TreeView where clicking a context menu will add a new node and put it into edit view (as per the many examples on here). I have the inital new node text as "default", just like the example.  If I press the Enter key after editing, it works as expected and it is renamed and saved.

But if instead, during edit mode, I click on another node (or even the same node), it DOES save the changes behind the scenes but the node text resets back to the initial text of "default" until the entire page is refreshed (or another TreeView databind).

I have tried everything I can think of but I can't tell at what point it's getting saved verses when it's running the nodeclick event.

Any ideas?
Chameleoki
Top achievements
Rank 2
 answered on 23 Mar 2011
3 answers
67 views
Hello,
I'm wondering if I could get some assistance or an answer on making the RadSpell control work with a textbox that's inside a RadWindow.  I am using Q1 2011 controls, and have it working, but only when running in debug from Visual Studio 2010.  I'm trying to build a sample application but now when I click the Spell Check button nothing happens.  No error message (local or in the event viewer).  We are trying to use the RadWindow as a simple popup "Contact Us" type form and would like to add spell checking functionality, is this possible?  I will try to attach a sample project, but wanted to pose the question first.

Thanks,
Sean
Rumen
Telerik team
 answered on 23 Mar 2011
4 answers
135 views

I have put in a RadComboBox control in a simple ASPX page and when I run it in DRIP tool, I see a lot of memory leaks. If I remove the combobox , then the memory leaks go away. Please advice if you have any fix for the leaks in Rad ASP.Net controls?

below is a simple ASPx snippet

--------------------------------

<%

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

<%

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

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

<

head runat="server">

<title>Untitled Page</title>

</

head>

<

body >

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:radcombobox id="RadComboBox1" runat="server" allowcustomtext="True" showdropdownontextboxclick="False" font-italic="True">

<Items>

<telerik:RadComboBoxItem runat="server" Text="Consultant ID" Value="Consultant ID"

ForeColor="#CCCCCC" Font-Italic="True" />

</Items>

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

</telerik:radcombobox>

</form>

</

body>

</

html>
----------------------------------

Simon
Telerik team
 answered on 23 Mar 2011
1 answer
67 views
Hi

I have a RadMultipage with a width Set at 100%, within the multipage i have a RadPageView also with a width of 100%, within the PageView i have a grid with a width of 100% the grid is defined as below see code example

My problem is that the grid extends beyond the width of the Pageview, my grid columns are bound at run time so am not specifying any column widths, if i collapse the grouping then the grid fits within the Pageview, how can i control the width when the grouping is expanded ?

MyGrid:
<telerik:RadGrid ID="GridAwaitingAction" runat="server" Skin="WebBlue" AllowPaging="True"
    AllowSorting="True" Culture="en-GB" GridLines="None" 
    AllowFilteringByColumn="True" Width="100%">
    <GroupingSettings GroupByFieldsSeparator=";" />
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowClick="RowClick" />
    </ClientSettings>
    <MasterTableView DataKeyNames="WSARecordID" Width="100%">
                    <GroupByExpressions>
        <telerik:GridGroupByExpression>
                                <SelectFields>
                <telerik:GridGroupByField FieldAlias="Status" FieldName="Status"></telerik:GridGroupByField>
            </SelectFields>
            <GroupByFields>
                <telerik:GridGroupByField FieldName="Status"></telerik:GridGroupByField>
            </GroupByFields>
        </telerik:GridGroupByExpression>
    </GroupByExpressions>
        <CommandItemSettings ExportToPdfText="Export to Pdf" />
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
           
            <telerik:GridButtonColumn CommandName="ViewWSA" 
                ImageUrl="~/App_Themes/Merlin/Images/410.png" Text="Preview Report" UniqueName="ViewWSA">
            </telerik:GridButtonColumn>
           
        </Columns>
    </MasterTableView>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_WebBlue" 
        EnableImageSprites="True">
    </HeaderContextMenu>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 23 Mar 2011
1 answer
99 views
Hi guys,
I have a simple textfield (with required field validatior) and a radbutton in a RadPopup. and on button_click require field validation occurs, when i type text in the textfield the validation error message disappears but the button does not respond. Does anybody have a solution for that..

Thank you for the time.

Regards,
Umair Mehmood
Pero
Telerik team
 answered on 23 Mar 2011
1 answer
208 views
Hi,

In my current project, I have written a web page containing a Hierarchical RadGrid.

On each data row of the grid, there are 3 CheckBoxes set to edit mode.

The users are able to check or uncheck any of the CheckBoxes and click the Submit button to save the data on the back-end.

The data displayed on the grid are stored on a DataSet.

All operations on the web page are done on the server-side.

The development and testing stages have been completed, and the project is in the UAT stage right now.

However, there seems to be a performance problem with the web page when there are many data rows.

It is very slow to perform the following operations:
- to open up a tree level (by clicking the <)
- to check or uncheck the CheckBox

The screenshot of the web page can be found here.

The ASPX source code can be found here while the ASPX.CS source code can be found here.

When I did a View Source on the browser, the file is pretty huge and can be found here.

Can you please help me with the following:
- how to improve the performance for the operations above.
- how to reduce the size of code (in particular the ViewState).
- if there is any problem or weaknesses in my approach as shown in the source code.

Regards,
Herman
Pavlina
Telerik team
 answered on 23 Mar 2011
3 answers
103 views
I use Table template in font of RadCombobox.
How can I get Product Name & Product Price which Product ID value had been input.
Thank
<telerik:RadComboBox ID="cboProducts" runat="server" Skin="Windows7" Font-Names ="Tahoma" Font-Size ="13px"
    Width="500px" Height="150px" CollapseDelay="0" EmptyMessage="-- Select --" CausesValidation="false" EnableLoadOnDemand="true"
    EnableItemCaching="true" ExpandDelay="0" MarkFirstMatch="true" HighlightTemplatedItems="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" ShowToggleImage="false">
<ExpandAnimation Duration="0" Type="None" />
<CollapseAnimation Duration="0" Type="None" />
    <HeaderTemplate>
    <table style="width: 500px" cellspacing="0" cellpadding="0">
        <tr>
            <td style="width: 100px;">
                Product ID</td>
            <td style="width: 330px;">
                Product Name</td>
            <td style="width: 70px;">
                Product Price</td>
        </tr>
    </table>
</HeaderTemplate>
<ItemTemplate>
    <table style="width: 465px" cellspacing="0" cellpadding="0">
  <tr>
<td style="width: 90px;">
<%# DataBinder.Eval(Container, "ProductID")%>
</td>
   <td style="width: 300px;">
<%# DataBinder.Eval(Container, "Attributes['ProductName']")%>
</td>
<td style="width: 70px;" align="right">
   <%# DataBinder.Eval(Container, "Attributes['ProductPrice']")%>
</td>
  </tr>
    </table>
</ItemTemplate>
</telerik:RadComboBox>
s
Veronica
Telerik team
 answered on 23 Mar 2011
2 answers
110 views

I have simple page:

1 grid with many rows (for scrolling), formdecorator and a checkbox on each row.

When you make a scroll and click at checkbox or radio button then page make scrolling or disappears.

If I avoid them from decorating everything is OK.

P.S For another controls this not happens

Here is the code:

ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <style runat="server">
        html, body, form
        {
            overflow:hidden;
            height:100%;
        }
        .scroll
        {
            overflow:scroll;
            height:100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="True">
    </telerik:RadSkinManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
    </div>
    <div class="scroll">
    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource">
        <MasterTableView>
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridTemplateColumn HeaderText="Checkox">
                <ItemTemplate>
                <asp:CheckBox ID="chk" runat="server" />
                </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="text" FilterControlAltText="Filter column1 column"
                    HeaderText="Text" UniqueName="column1">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
    </div>
    </form>
</body>
</html>

Code Behind

public partial class Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        List<string> items = new List<string>();
        for(int i = 1; i <= 200; i++)
        {
            items.Add(string.Format("Item {0}", i));
        }
        RadGrid1.DataSource = items;
    }
}
Deyan
Top achievements
Rank 1
 answered on 23 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?