Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
188 views
I am looking for sample or any source of 'How to use RadScheduler with sql stored procedures'. I do not want to bind control at design time. I need it at run time only.
 I really appreciate, if anybody can give me a link to any source.

Thank you
Peter
Telerik team
 answered on 14 Apr 2010
1 answer
116 views
Hello,

I'm trying to take advantage if the new AutogenerateHierarchy feature of the RadGrid.  Once I assign the data source, I'd like to programmatically apply certain formatting like sorting, grouping, etc to the Master and DetailTables.  So my question is - how do I access the DetailTables if all I have is the tables' names?  I really wish I could do something like myGrid.Tables[tableName].SortExpressions.  What's the best elegant way I can set these properties?

Thank you for your help!
Pavlina
Telerik team
 answered on 14 Apr 2010
4 answers
108 views
Hi,

I am using Telerik.Web.Design.dll - ( Version number - 2010.1.309.40 ). and in my page I am havinf hierarchy grid. On Expand Page Footer I am in (Page Number) is getting added at the top on all the grids.

What is the problem with the hierarchy grid? How to fix the above issue? I have also attached my screen shot after clicking on expand button.

Pavlina
Telerik team
 answered on 14 Apr 2010
3 answers
228 views
Hi there,

My desired behavior is:
* On initial rendering of the grid, the columns are auto-sized to their contents (I set Table Layout = "auto")
* The user can resize columns to make them bigger or smaller (I set the resize options to true, real time resize, and resize grid on resize)
* On postback / pagination I want all columns to retain widths

Issue:
* On postback the user sized columns retain widths but all other columns shrink as if Table Layout was set to Fixed with no scrolling.

My grid follows.

thanks!

d

                <telerik:RadGrid ID="RadGrid1" Width="100%" Height="450px" AllowPaging="True" PageSize="15"  
                    runat="server" AllowSorting="False" OnNeedDataSource="RadGrid1_NeedDataSource" 
                    GridLines="None" AllowFilteringByColumn="False" ShowGroupPanel="False" EnableHeaderContextMenu="False" 
                    OnColumnCreated="RadGrid1_ColumnCreated" OnColumnCreating="RadGrid1_ColumnCreating" 
                    OnDataBound="RadGrid1_DataBound" OnPreRender="RadGrid1_PreRender" EnableViewState="false" 
                    OnItemDataBound="RadGrid1_ItemDataBound"> 
                    <HeaderContextMenu EnableAutoScroll="True"> 
                    </HeaderContextMenu> 
                    <MasterTableView Width="100%" AutoGenerateColumns="true" EnableColumnsViewState="false" TableLayout="Auto" /> 
                    <PagerStyle Mode="NextPrevAndNumeric"  
                        FirstPageImageUrl="/images/pagingfirst.gif"  
                        LastPageImageUrl="/images/paginglast.gif"  
                        NextPageImageUrl="/images/pagingnext.gif"  
                        PrevPageImageUrl="/images/pagingprev.gif" /> 
                    <ClientSettings AllowColumnsReorder="False" AllowDragToGroup="False" ReorderColumnsOnClient="False" 
                        Resizing-AllowColumnResize="True" Resizing-AllowRowResize="False" Resizing-ClipCellContentOnResize="False" 
                        Resizing-EnableRealTimeResize="True" Resizing-ResizeGridOnColumnResize="True"> 
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                    </ClientSettings> 
                    <FilterMenu EnableTheming="False"> 
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 

Pavlina
Telerik team
 answered on 14 Apr 2010
3 answers
100 views
Some of our users were complaining about automatically added empty rows in their texts. I could reduce the problem to the following html code snippet:

<h1>
 <span style="font-family: times new roman;">Create Instrumentation Loops</span>
</h1>
<p>
 <span style="font-family: times new roman; font-size: 11pt;">bla bla bla </span>
 <span style="font-family: times new roman; font-size: 11pt;">another text
  <p>loop object</p>
 </span>
</p>
<p>&nbsp;</p>
<h1>
 <span style="font-family: times new roman;">Functional Requirements</span>
</h1>

Every time you switch between design or html view (or every time you save) a new line is added (<p>&nbsp;</p>).
What can I do to avoid this?

Winfried
Rumen
Telerik team
 answered on 14 Apr 2010
1 answer
133 views

I want to set the DataTextField of a RadComboBox at pageload according to the users prefered language - and keep that value.
So far my code looks like this:
(a small part of the mastertableview of the grid RadGridVehicle)

                <telerik:GridDropDownColumn DataSourceID="sdsHaulierType" 
                                            DataField="HaulierType" DataType="System.Int32" 
                                            HeaderText="Haulier type"   
                                            ReadOnly="true" 
                                            ListTextField="HaulierTypeName"   
                                            ListValueField="HaulierTypeID"   
                                            DropDownControlType="DropDownList" 
                                            SortExpression="HaulierType" 
                                            UniqueName="HaulierType" 
                                            EditFormColumnIndex="0"   
                                            Visible="true" ForceExtractValue="Always" >  
                    <FilterTemplate>  
                        <telerik:RadComboBox ID="cbHaulierType" runat="server"   
                                             AppendDataBoundItems="true" 
                                             DataSourceID = "sdsHaulierType" 
                                             DataValueField = "HaulierTypeID" 
                                             DataTextField = "HaulierTypeName" 
                                             SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("HaulierType").CurrentFilterValue %>'  
                                             OnClientSelectedIndexChanged="HaulierTypeChanged">  
                            <Items>  
                                <telerik:RadComboBoxItem Text="All" />  
                            </Items>  
                        </telerik:RadComboBox>  
                        <telerik:RadScriptBlock ID="sbHaulierType" runat="server">  
                           <script type="text/javascript">  
                                function HaulierTypeChanged(sender,args)   
                                {  
                                    var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");  
                                    tableView.filter("HaulierType",args.get_item().get_value(),"EqualTo");                                      
                                }  
                            </script>   
                        </telerik:RadScriptBlock>  
                    </FilterTemplate>  
                </telerik:GridDropDownColumn> 

I'm using a table called HaulierType with the following columns:
  • HaulierTypeID (PK)
  • HaulierTypeName (default column for DataTextField in the RadComboBox)
  • SVHaulierType
  • DAHaulierType
    <asp:SqlDataSource ID="sdsHaulierType" runat="server"   
                       ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"   
                       SelectCommand="SELECT * FROM [HaulierType]">  
    </asp:SqlDataSource> 

I can get the grid to show the correct values like this:
protected void RadGridVehicle_Load(object sender, EventArgs e)  
    {  
        ddc = (GridDropDownColumn)RadGridVehicle.MasterTableView.Columns.FindByUniqueName("HaulierType");  
        if (userLang == "da")  
        {  
            ddc.ListTextField = "DAHaulierType";  
        }  
        else if (userLang == "sv")  
        {  
            ddc.ListTextField = "SVHaulierType";  
        }  
    } 

What's missing is setting the filtervalues in the gridcolumn.
How do I set the DataTextField serverside and in which event?

Please help - I'm totally stock.
Iana Tsolova
Telerik team
 answered on 14 Apr 2010
1 answer
136 views
Hello, I'm hoping someone can help me with this problem:

In my Rad editor I have a default-type editor tool that sets the fore color of text.  You click on it and get a panel that opens giving you the option of choosing many colors.  However,  my users reuse just two colors time after time.  Thus, I would like to add two more buttons that would be to simply add either one of those colors.

My preference would be to have the functionality act like the Bold or Italics buttons (i.e., when clicked, the color would stay on until changed).  However, if that isn't possible (or is too time consuming to develop) then a button that would insert font tags on either side of selected text would work.

How can I accomplish this?

Thank you!
Rumen
Telerik team
 answered on 14 Apr 2010
1 answer
155 views
Hi,

I want to implement a client-side javascript function at the OnClientAppointmentClick event, but when I click the appointment it always performs a postback. Can I prevent this postback?

Thanks,
Danny
Peter
Telerik team
 answered on 14 Apr 2010
2 answers
231 views
Hi
Sorry - newbie question. I've tried to get my spell check working in my editor but I'm not quite there. When I test I spellchecker symbol but when I click on it I get two entries in the dropdown (both say English). I click on them I get one of three errors:
Spell Check Handler Server Error:12030
Spell Check Handler Server Error:12031
Spell Check Handler Server Error:405

I have got my .tdf file in the right location (en-US.tdf) and I know the application is finding the tdf. I'd  be very grateful if someone could look at my code and tell me what I have done wrong.

In my web.config file I have the following entry in web,config in http handlers in system.web:

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

 

 

 

 

 

<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

 

 

 

<add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" />

 

 

 

<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />

 

 


In system.webServer I have the following in handlers:
 

<add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

 

 

<add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

 

 

<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />

 

The relevant lines in the aspx file are:

 

(top of page)
<%

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

 

 

 

<%

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

 

 

 

(start of body / form)
  

 

 

<body>

 

 

 

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

 

<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">

 

 

</telerik:RadScriptManager>

 

 

 


radEditor Control
<telerik:RadEditor ID="txtVisitNotes" runat="server" EditModes="Design" Height="300px"

 

Skin="Telerik" Width="99%">

 

 

<Tools>

 

 

<telerik:EditorToolGroup>

 

 

<tools>

 

 

<telerik:EditorTool Name="AjaxSpellCheck" />

 

 

</tools>

 

 

</telerik:EditorToolGroup>

 

 

</Tools>

 

 

<Languages>

 

 

<telerik:SpellCheckerLanguage Code="en-US" Title="English" />

 

 

</Languages>

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

 

 

 


The relevent lines in the code behind look like this:

 

protected void Page_Load(object sender, EventArgs e)

 {

txtVisitNotes.Modules.Clear();

lblMessage.Visible =

false;

 

 

 

if (!IsPostBack)

 {

txtVisitNotes.Languages.Add(

new SpellCheckerLanguage("en-US", "English"));

 

 txtVisitNotes.SpellCheckSettings.AjaxUrl =

"True";

 

 

txtVisitNotes.SpellCheckSettings.SpellCheckProvider =

SpellCheckProvider.PhoneticProvider;

 

 

 


thank you kindly

M
 
Michael Hurse
Top achievements
Rank 1
 answered on 14 Apr 2010
1 answer
84 views
The older version of the grid used to have a Client Event named OnRequestStart.  I see a long list of events in the newest version of the grid, but not OnRequestStart.  Did the event name change, or is there another way to plug in to a similar event?
Daniel
Telerik team
 answered on 14 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?