Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
276 views
Please, find attached a sample working project, which demonstrates how to enable MS Word spell check provider of RadSpell for ASP.NET AJAX.

Microsoft Word support is not enabled by default for RadSpell. Follow the steps below to enable it:
  1. You need to have installed Microsoft Word on your server.
  2. Put the WordSpellCheckProvider.cs provider in the App_Code folder (the provider is available in the attachment).
  3. Put the Microsoft.Office.Interop.Word.dll and Microsoft.Vbe.Interop.dll in the project's /bin folder (both dll files are available in the attachment)
  4. Set the SpellCheckProviderTypeName property of RadSpell:

    RadSpell1.SpellCheckProviderTypeName = typeof(Telerik.Web.UI.WordSpellCheckProvider).AssemblyQualifiedName;

    The SpellCheckProviderTypeName property of RadSpell allows the developers to specify a custom spell check provider (in our case it is WordSpellCheckProvider.cs) instead of the default one.
  5. Configure the web site in the web.config to use ASP.NET impersonation (see also <identity> Element):

    <system.web>
          <identity impersonate="true" userName="domain\username"
              password="xxxxxxx"/>
              ...
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 07 Jun 2011
3 answers
243 views
I want to get the filtered data source after applying filtering using RadFilter. Or alternatively, I want to get the filter expression that I can apply to my original data source to get the filtered results. Please let me know how to do this. Thanks in advance.
Iana Tsolova
Telerik team
 answered on 07 Jun 2011
8 answers
117 views
Hi Telerik Team,

I am having problem. I have radSchedular that is populating from database. I wrote TimeSlotCreated server side event in which I set the disabled/enabled class based on my required condition (e.TimeSlot.CssClass = "Disabled";)

In my ASPX page i wrote 

function OnClientTimeSlotClick(sender, eventArgs)
{
        var now = new Date();
if (sender.get_selectedView() == Telerik.Web.UI.SchedulerViewType.WeekView) {
            if (eventArgs.get_time() < now) {
                alert("Time slot not available");
            }
        }
}

this event simply shows alert if the tiemslot time is less than current time.
I need to get the CssClass and check if CssClass is "disabled" or "enabled". So that I can show alert('Time slot not available') if the CssClass is 'disabled'.

Prompt response is highly appreciated. 

Regards,
Mohsin
Frank
Top achievements
Rank 1
 answered on 07 Jun 2011
2 answers
216 views
Hi,

I would like to change the name "Insert" to "Add". How can I achieve this? Thanks
Kien Lim
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
77 views
Hi,

I looked at this thread:

http://www.telerik.com/community/forums/aspnet-ajax/rotator/how-to-bind-radrotator-to-list-lt-t-gt.aspx

What I'd like to do is to create what looks like a scrollable radgrid reproducing the look of the embedded radgrid skins using tables and a radrotator.
 
My thought is to pick apart the output of a radgrid (view source) pull the css styles out of the skin files and then create a row template in the template of the rotator that matches the columns defined in the header row of the table for multiple attributes of a bound list.

My question is if I create a header row for the table outside of the rotator declaration and then define the row templates in the template of the radrotator will this mess up the table layout i.e will the table columns stay the same width?  could you provide a working example of this approach.  Also is there an alternating style on the radrotator to emulate the alternating row style on the radrid?

Thanks,

Jonathan



Niko
Telerik team
 answered on 07 Jun 2011
1 answer
98 views

We have column name Member Name in Data Set and we are using following sql query for getting this name into data set.

Select

 

COALESCE(   

   STUFF   

   (   

    (    

     SELECT DISTINCT  

      ''; '' + FirstName + CASE WHEN MI IS NULL THEN '''' ELSE '' '' + MI END + '' '' + LastName  

     FROM  

      TestTable1 

      INNER JOIN TestTable2 on TestTable1.customerid = TestTable2.customerid  

     WHERE  

      TestTable2.MemberID = TestTable1.customerid

     FOR XML PATH('''')     

    )   

   ,1,1,''''   

   ),''N/A'')  AS [Name]

   From TestTable

 

Based on above query we are getting customer name successfully in data set and bind to grid. Now issue is that we are not able to use Starts with operator and column filter is not returning any result. However when we use “Contains” operator we are able to retrieve correct result.

Also we have another column that simply returns column data as below


Select TestTable.PersonName From TestTable


Using above query we are successfully use starts with operator.


So what can be the problem and how can we resolve it?

Regards,

Dharmesh Solanki

Veli
Telerik team
 answered on 07 Jun 2011
10 answers
785 views
I want to do something like

RadGrid1.MasterTableView.FilterExpression = "SubmitDate >= '01/10/2008' and SubmitDate <= '02/01/2008'";
RadGrid1.Rebind();

But I get an error (something about a character literal can't be greater than 1 character).  SubmitDate is a DatTime field in the db.

Maybe this can't be done, not sure.

Any Ideas on how I can accomplish this?

Thanks
Iana Tsolova
Telerik team
 answered on 07 Jun 2011
1 answer
73 views

I have a hierarchy grid that is populated on demand (server side) using the NeedDataSource and DetailTableDataBind events (single level detail table) based on your example provided in the documentation.

Everything works fine but I have noticed that if 2 child levels are opened/expanded at the same time the second one does not refresh correctly. When I click to expand to see the details in another row I have correct number of pages but no data in the grid.

If I only have one sub level expanded/opened at the time everything works fine – for example I close/hide the details before I open/expand another row.

What else do I need to do to fix the refresh issue.

Tsvetina
Telerik team
 answered on 07 Jun 2011
3 answers
114 views
Today i am happy to found telerik's FormDecorator to style my standard asp.net web control, and it's free, there is no reason i don't give it a try.

I open a new blank new ASP.NET 4.0 project to test, but after a 10+ times postback.
telerik control's response.write a prompt message about : ( To remove this message, please purchase a developer version )

I have Attached a screenshot below.

Below is the markup of my test project.
And i have few question,

1. Is it the RadScriptManager1 and RadSkinManager1 not include in free FormDecorator suite?
2. I have remove the RadScriptManager1 ,but it show error
:
"The control with ID 'RadFormDecorator1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it."
So, do i have to use the classic ScriptManager come from ASP.NET 4.0?

3. Where can i add my free license information for register? web.config? of place a app_license.dll in /bin folder like "De*Express" and "Comp*nentArt" ?

Default.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>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true">
    </telerik:RadSkinManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2007"
        DecoratedControls="All" />
    <asp:Button ID="Button1" runat="server" Text="Button" />
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1">
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AdventureWorksLT2008ConnectionString %>"
        SelectCommand="SELECT top 10 * FROM [SalesLT].[Customer]"></asp:SqlDataSource>
    </form>
</body>
</html>

And
Default.aspx.cs
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
}

and web.config
<?xml version="1.0"?>
<configuration>
  <connectionStrings>
    <add name="AdventureWorksLT2008ConnectionString" connectionString="Data Source=LOCALHOST\SQLEXPRESS;Initial Catalog=AdventureWorksLT2008;Integrated Security=True" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.0">
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
</configuration>
Lini
Telerik team
 answered on 07 Jun 2011
4 answers
134 views
HI
if i ll pass query parameter (?Id=0) value is 0 radgrid should be  opened  initinsertmode by defult orelse query  parameter (?id=10) is 10 or any value ,radgrid should be opened Correct index item in editmode by default .its all should be done in page load event.

what can i do for this?if u send me a sample application for this, it ll be very helpful to me.

nanthakumar thangavel
Top achievements
Rank 1
 answered on 07 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?