Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
95 views
Hi,
Is there any control in telerik that supports the following features for asp.net visualstudio 2010

-          Gantt view display of dynamic data
-          Drag and drop support
-          Plot nodes in the Gantt view in different colors.
-          Connecting nodes in the Gantt view

also req to know whether any demo version and user manual available for that ?

Rumen
Telerik team
 answered on 26 Jun 2014
7 answers
92 views
Hello

Can you think to create a RadGanttView controle for asp.net Ajax ?


thanks
OLivier,
Rumen
Telerik team
 answered on 26 Jun 2014
3 answers
129 views
The HD button / function not work!

​Even if I link to another hd movie the "dansskola.mp4" still playing.
"showskola_1080p.mp4" should play in HD mode....
RadMediaPlayer1.Source = "~/video/dansskola.mp4"
RadMediaPlayer1.HDSource = "~/video/showskola_1080p.mp4"
RadMediaPlayer1.Poster = "~/posters/dansskola.jpg"


And how do I choose which social media i want to use in the ShareButton function?
I might just want to take advantage of Facebook and Twitter....

Eyup
Telerik team
 answered on 26 Jun 2014
3 answers
514 views
Hi all ,
I am using Telerik grid to insert, update and delete records but my problem is i want to show the rad window alert message on successfull update,insert , or delete but i am unable to figure out how to trigger this.

Below is my rad grid code
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True" PageSize="10"
        CssClass="RadGrid" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"
        AllowAutomaticDeletes="true" AllowAutomaticUpdates="true" AllowAutomaticInserts="true"
        OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand"
        OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand"
        OnItemDeleted="RadGrid1_ItemDeleted" OnItemUpdated="RadGrid1_ItemUpdated">
        <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="UserId">
            <Columns>
                <telerik:GridBoundColumn Visible="false" UniqueName="UserId" DataField="UserId" HeaderText="User Id" />
                <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" Visible="true"
                    UniqueName="FirstName" />
                <telerik:GridBoundColumn DataField="MiddleName" HeaderText="Middle Name" />
                <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" />
                <%-- <telerik:GridCalculatedColumn DataFields="FirstName, MiddleName, LastName" Expression="{0} +{1}  +{2}"
                        HeaderText="Name" />--%>
                <telerik:GridBoundColumn DataField="UserType.UserTypeName" HeaderText="Role" />
                <telerik:GridBoundColumn DataField="State.Name" HeaderText="State" />
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Edit" ButtonType="ImageButton">
                </telerik:GridEditCommandColumn>
                <%-- <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                </telerik:GridEditCommandColumn>--%>
                <telerik:GridButtonColumn UniqueName="DeleteColumn" CommandName="Delete" HeaderText="Delete"
                    ButtonType="ImageButton" ConfirmDialogType="RadWindow" ConfirmText="Are you sure, you want to delete?"
                    ConfirmDialogHeight="100px" ConfirmTitle="Delete TIMS User">
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings UserControlName="~/UserControls/ManageUserControls/ManageUsers.ascx"
                EditFormType="WebUserControl">
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">
            <ClientEvents OnRowDblClick="RowDblClick" />
        </ClientSettings>
    </telerik:RadGrid>
This is my insert command code
protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
       {
           var editedItem = e.Item as GridEditableItem;
           var userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
           var user = new User();
           //const string radalertscript = "<script language='javascript'>function f(){radalert('Welcome to RadWindow <b>Prometheus</b>!', 330, 210); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";
           //Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);
           user.UserName = ((RadTextBox)userControl.FindControl("tbUserName")).Text;
           user.Password = Utility.EncryptTDC(((RadTextBox)userControl.FindControl("tbPassword")).Text);
           user.FirstName = ((RadTextBox)userControl.FindControl("tbFirstName")).Text;
           user.MiddleName = ((RadTextBox)userControl.FindControl("tbMiddleName")).Text;
           user.LastName = ((RadTextBox)userControl.FindControl("tbLastName")).Text;
           user.ContactPhoneMobile = ((RadTextBox)userControl.FindControl("tbHomePhone")).Text;
           user.ContactPhoneOffice = ((RadTextBox)userControl.FindControl("tbOfficePhone")).Text;
           if (((RadComboBox)userControl.FindControl("ddlState")).SelectedValue != "-1")
               user.StateId = Convert.ToInt32(((RadComboBox)userControl.FindControl("ddlState")).SelectedValue);
           if (((RadComboBox)userControl.FindControl("ddlInstitute")).SelectedValue != "-1")
               user.InstituteId = Convert.ToInt32(((RadComboBox)userControl.FindControl("ddlInstitute")).SelectedValue);
           if (((RadComboBox)userControl.FindControl("ddlTrainer")).SelectedValue != "-1")
               user.TrainerId = Convert.ToInt32(((RadComboBox)userControl.FindControl("ddlTrainer")).SelectedValue);
 
           user.UserTypeId = Convert.ToInt32(((RadComboBox)userControl.FindControl("ddlUserType")).SelectedValue);
           user.DateCreated = DateTime.Now;
 
           //string radalertscript =
           //    "<script language='javascript'>function f(){radalert('main text to display', 340, 110, 'new title');}</script>";
 
           ClientScript.RegisterStartupScript(this.GetType(), "radalert", "callAlert();", true);
 
           var userServiceContext = new TimsService<User>();
           var result = userServiceContext.Create(user);
 
           if (result)
           {
               ((RadTextBox)userControl.FindControl("tbUserName")).Text = "";
               ((RadTextBox)userControl.FindControl("tbPassword")).Text = "";
               ((RadTextBox)userControl.FindControl("tbReEnterPassword")).Text = "";
               ((RadTextBox)userControl.FindControl("tbFirstName")).Text = "";
               ((RadTextBox)userControl.FindControl("tbMiddleName")).Text = "";
               ((RadTextBox)userControl.FindControl("tbLastName")).Text = "";
               ((RadTextBox)userControl.FindControl("tbHomePhone")).Text = "";
               ((RadTextBox)userControl.FindControl("tbOfficePhone")).Text = "";
               ((RadComboBox)userControl.FindControl("ddlState")).SelectedValue = "-1";
               ((RadComboBox)userControl.FindControl("ddlInstitute")).SelectedValue = "-1";
               ((RadComboBox)userControl.FindControl("ddlTrainer")).SelectedValue = "-1";
               ((RadComboBox)userControl.FindControl("ddlUserType")).SelectedValue = "-1";
 
 
               const string radalertscript = "<script language='javascript'>function f(){radalert('Welcome to RadWindow <b>Prometheus</b>!', 330, 210); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";
               Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript, true);
               //RadGrid1.ItemInserted += RadGrid1_ItemInserted;
                
           }
       }

The rad windows inside this is also not called
Below is the code written on item inserted
protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
       {
           const string radalertscript = "<script language='javascript'>function f(){radalert('Welcome to RadWindow <b>Prometheus</b>!', 330, 210); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";
           Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript, true);
       }
Neither this is called and works though there is successfull insert in the database.

Help is highly  appreciated.
Thanks,
Marin Bratanov
Telerik team
 answered on 26 Jun 2014
10 answers
642 views
I'm trying to get the spell check to work under Prometheus.  With everything I try I get the following 500 error:

---------------------------
Windows Internet Explorer
---------------------------
Spell Check Handler Server Error:500
<html>

    <head>

        <title>No dictionary loaded. Set the DictionaryPath property before spellchecking.</title>

        <style>

         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

         pre {font-family:"Lucida Console";font-size: .9em}

         .marker {font-weight: bold; color: black;text-decoration: none;}

         .version {color: gray;}

         .error {margin-bottom: 10px;}

         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

        </style>

    </head>

 

    <body bgcolor="white">

 

            <span><H1>Server Error in '/CANCis' Application.<hr width=100% size=1 color=silver></H1>

 

            <h2> <i>No dictionary loaded. Set the DictionaryPath property before spellchecking.</i> </h2></span>

 

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

 

            <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 

            <br><br>

 

            <b> Exception Details: </b>System.ArgumentException: No dictionary loaded. Set the DictionaryPath property before spellchecking.<br><br>

 

            <b>Source Error:</b> <br><br>

 

            <table width=100% bgcolor="#ffffcc">

               <tr>

                  <td>

                      <code>

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be ide…
---------------------------
OK  
---------------------------

I'm not sure what I'm doing wrong.  I've loaded the skins for Prometheus under the themes folder, the dictionaries under the Data-App folder and the Global Resource files.

Sunil P
Top achievements
Rank 1
 answered on 26 Jun 2014
3 answers
283 views
I am using the spell in a page located in a sub folder on my site. It works fine on my local machine, but on our QA and production servers it fails with the following client side error.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Tue, 2 Nov 2010 16:22:45 UTC

Message: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data
Line: 5
Char: 84093
Code: 0
URI: http://cawebappsdev/SalesCRMQA/ScriptResource.axd?d=jKruckmJp8vDLb592u-Ri4JQ91O8nSdaBpoqumey8nfZ3YV4dMT_t9s3_TfYk24911J7iOJTrfZn-SHpKIhcco-cO0sEgm8QZyxP_GOGncAzLS6EkF8ge5HzbCCOjPfNFrr9o9imvnTrCdbgX0MV8BjBK_Q1&t=2610f696

I did a search and following previous posts I have not found a solution. Here is my control tag.

<telerik:RadSpell id="radspellEditCallReport_GeneralSpellCheckTop" runat="server" ControlsToCheck="txtEditCallReport_ExecutiveSummary,reEditCallReport_CallObjectives,reEditCallReport_CallDetails,reEditCallReport_ActionItems" ButtonType="None"  />  

Here are my web.config entries

<httpHandlers>
  <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
  <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
  <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
</httpHandlers>

<add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />

 

<location path="Telerik.Web.UI.SpellCheckHandler.axd">
    <system.web>
        <authorization>
            <allow users="*"/>
        </authorization>
    </system.web>
</location>

Sunil P
Top achievements
Rank 1
 answered on 26 Jun 2014
7 answers
340 views
Hi

I am using Telerik2012 Radeditor in my page. I have given the following statement in the editor control.

 <telerik:EditorTool Name="AjaxSpellCheck" ShowIcon="true" Enabled="true" />

I have added corresponding changes in web.config file also. But once I click the icon on RadEditor, it shows a drop down as 
"Spell checking in progress..." and two buttons as "Finish Spellchecking" and "Cancel". This two buttons are always disabled. This state remains the same as long as the page exists. Also the spell checker is not indicating any errors in the editor.

Can anyone please tell me what would be the issue here?

Any help will be highly appreciated.

Regards
Rekha.
Sunil P
Top achievements
Rank 1
 answered on 26 Jun 2014
1 answer
180 views
Hi,
I have in  my html RadTextBox:

<telerik:RadTextBox ID="ShrtgLicAreaTextBox" runat="server" TabIndex="2" Width="300px" CssClass="textbox" MaxLength="40" Height="15px" onKeyUp="Count(this,40)" onChange="Count(this,40)" FocusedStyle-BackColor="#D4DEEC" >
<ClientEvents OnBlur="OnBlur" />

Here is my js for OnBlur event:

<script type="text/javascript">
function OnBlur(sender) {
sender.get_styles().EnabledStyle[0] += "background-color:#FFCC99;";

}
</script>

Bur for some reason when I leave textbox background color is not changing looks like OnBlur event does not work.

Thank so much for yuor help.
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2014
3 answers
202 views
I have a scenario like this. I want the radgrid inside the radwindow to refresh everytime it opens, but right not after the initial random values are set to the radgrid, every time I reopen the radwindow, the radgrid table stays the same. Is there any way to achieve what I want?
<div>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" EnableViewState="false">
        <Windows>
            <telerik:RadWindow ID="BatchIdSelectorPopup" runat="server" Width="360px" Height="360px" Modal="true">
                <ContentTemplate>
                    <telerik:RadGrid runat="server" ID="BatchIdSelectionGrid" AllowPaging="true" AllowSorting="true" OnNeedDataSource="BatchIdSelectionGrid_NeedDataSource">
                        <MasterTableView AutoGenerateColumns="false">
                            <Columns>
                                <telerik:GridBoundColumn DataField="BatchId" HeaderText="Batch Ids" UniqueName="BatchId"></telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
</div>
 
 
<telerik:RadButton ID="btnSelectBatchIds" Text="Select Batch Ids" runat="server" OnClick="btnSelectBatchIds_Click"/>
 
 
 
 
 
protected void Page_Load(object sender, EventArgs e)
    {
        BatchIdSelectorPopup.OpenerElementID = btnSelectBatchIds.ClientID;
    }
 
    protected void btnSelectBatchIds_Click(object sender, EventArgs e)
    {
        BatchIdSelectionGrid.Rebind();
    }
     
    protected void BatchIdSelectionGrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("BatchId", typeof(int));
        Random rnd = new Random();
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        dt.Rows.Add(rnd.Next(1, 1000));
        BatchIdSelectionGrid.DataSource = dt;
    }



Princy
Top achievements
Rank 2
 answered on 26 Jun 2014
4 answers
514 views
I am having a issue trying to follow http://www.telerik.com/forums/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate#0-UsFJGYDE6Wr8fRj8aMjA link. following method 2 but i need to implement the same OnItemDatabound.

private void ProcessGrid_OnItemDataBound(object sender, CommonGridEventArgs e)
{
if (e.ItemDataBound != null)
{
if (e.ItemDataBound.Item.ItemType == GridItemType.Item || e.ItemDataBound.Item.ItemType == GridItemType.AlternatingItem)
{

GridDataItem dataItem = (GridDataItem)e.ItemDataBound.Item;
 if (dataItem["IsLocked"] != null && Convert.ToBoolean(DataBinder.Eval(dataItem, "IsBoolFlagTrue"), CultureInfo.InvariantCulture))
 {
e.ItemDataBound.Item.Enabled = false;
}
}
}
}

Please help
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?