Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views
Hello Telerik team,
I got a problem with RadEditor. When I copy a text & paste it in rad editor an js error showed: 
Message: Incorrect function.
Line: 140
Char: 17
Code: 0
URI: http://servername/ScriptResource.axd?d=aXFdzbVX6yUu7eyD3lFhT6d6by3lCoG6NrJa7lbj7qONjUA5U4FMe8ULyGTpUDKBo6pE5t_RARts9agzPhTzHBtO8147WymIKH9448E2VtkV6mPouiDrFxhpW66ozPt3VNDA5RjbETak24wj-BhoAVja_PzAO47tCBW3fLCljAYt1OCYG34DlcMD76icygqvcFPdVyW_1YqoQ6QwFZsgYg2&t=ffffffffccef7351
Javascript error only appeared when we chose Paste from context menu (It's ok when we chose Paste from Word, Paste Plain Text, Paste As Html or Paste Html)
Currently, I'm using Telerik.Web.UI with version: 2012.2.607.35 & SharePoint 2013.
Please see my attached files.
Thanks,
Lee K
Lee K
Top achievements
Rank 1
 answered on 29 Oct 2012
4 answers
128 views
Over the years many people have asked why their controls have funky artifacts like vertical lines, or mis-alignment of the text input area from the dropdown arrow in comboboxes. I have provided a short list below from the many forum postings on this topic. The issue occurs on RadControls as well as standard controls processed with RadFormDecorator.

I'm really hoping Telerik can dedicate some effort into eliminating this problem in a future release. Specifically, I would like to be able to zoom between 80% and 120% without controls starting to look unattractive, and to have this for all supported browsers - or at least just the most popular current ones. It's not reasonable for each developer confronted with this issue to have to create their own styles and sprite images.

Thanks for consideration and comments.


http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/ie8-zoom-display-problem.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/button/if-zoom-level-changed-buttons-look-wrong.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/firefox-text-zoom-affects-tabstrip-layout.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/form-decorator/buttons-have-vertical-line.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/line-showing-in-tab.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-does-not-render-properly.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/panelbar/resizing-text-using-ctrl-and-ctrl.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/combobox/wrong-styled-combobox.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/combobox/css-bug.aspx

 

http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/latest-tabs-display-incorrectly.aspx

TonyG
Top achievements
Rank 1
 answered on 29 Oct 2012
0 answers
168 views

How can I populate a telerik drop-down list at page load?

I get the following error(at emphasized line below) when I try to populate dropdownlist:

Error: 'data(...)' is null or not an object

Here is how I try to populate the telerik ddl:

$(function(){
var values = [];
for (var i = 1; i < 10; i++) { 

values.push({ Text: i, Value: i });
}
****$("#MyDdl").data("tDropDownList").dataBind(values);****
});

Tried it this way as well:

 $(function(){
    onDataBinding();
    });

function onDataBinding(e) {
        var MyDdl = $('#MyDdl').data('tDropDownList');
        var values = [];
        for (var i = 1; i < 10; i++) {  
    values.push({ Text: i, Value: i });
    }
      ****MyDdl.dataBind(values);****
    };

But get following undefined error at emphasized line above:

Error: 'undefined' is null or not an object

Note: Adding a button and loading the ddl on button click event does populate telerik drop-down list. Doing it following way works perfectly fine, but cant seem to make it to work on page load. Also, When I bind it to a telerik datepicker's onload, it does populate the dropdownlist but makes it a static field 0r disables it, and hence cant select any values. 

    $(function(){
   var values = [];
        for (var i = 1; i < 10; i++) {             
        values.push({ Text: i, Value: i });
        }
        $("#MyDdl").data("tDropDownList").dataBind(values);            
    });

Any help is much appreciated.

saumin
Top achievements
Rank 1
 asked on 29 Oct 2012
3 answers
181 views
hi,

I am using a RadGrid with Popup form for Inserting and Editing. I have a dropdown in my Insert/Edit for which needs to be set to a default value when the template is opened for Inserting and the value from the grid if the record is being edited.

The Edit link works fine, and I can select the value in the dropdown. However, when I am trying to open the Add New form, I am seeing a 

'ddlPriority has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value'

Can someone please tell me what should I do so that I can "bind" the value to the existing entry for the edit and use a blank value for Insert?


My grid:
 <telerik:GridBoundColumn UniqueName="Priority" HeaderText="Priority" DataField="Priority" DefaultInsertValue="">
</telerik:GridBoundColumn>

My FormTemplate:
 <asp:DropDownList ID = "ddlPriority" runat = "server" DataTextField = "List_Item" DataValueField = "List_Value" TabIndex="6" Width="200px" DataSource ="<%# dsPriority() %>" ></asp:DropDownList>

My Code behind:
Public Function dsPriority() As DataSet
        Dim dsDataset As New DataSet
        Dim datatblPriority As New DataTable
        datatblPriority.Columns.Add("List_Item")
        datatblPriority.Columns.Add("List_Value")

        Dim drRow1 As DataRow
        Dim drRow2 As DataRow
        Dim drRow3 As DataRow
        Dim drRow4 As DataRow
        Dim drRow5 As DataRow

  drRow1 = datatblPriority.NewRow
        drRow2 = datatblPriority.NewRow
        drRow3 = datatblPriority.NewRow
        drRow4 = datatblPriority.NewRow
        drRow5 = datatblPriority.NewRow

 drRow1(0) = "Select"
         drRow
1(1) = ""

drRow2.Item(0) = "Critical"
        drRow2.Item(1) = "Critical"

        drRow3.Item(0) = "High"
        drRow3.Item(1) = "High"

        drRow4.Item(0) = "Medium"
        drRow4.Item(1) = "Medium"

        drRow5.Item(0) = "Low"
        drRow5.Item(1) = "Low"

datatblPriority.Rows.Add(drRow1)
        datatblPriority.Rows.Add(drRow2)
        datatblPriority.Rows.Add(drRow3)
        datatblPriority.Rows.Add(drRow4)
        datatblPriority.Rows.Add(drRow5)
        
 dsDataset.Tables.Add(datatblPriority)

        Return dsDataset
    End Function
Berry
Top achievements
Rank 1
 answered on 28 Oct 2012
2 answers
105 views
I have a problem with the tree list view.  I understand that out of the box the ASP.NET Ajax version of the TreeListView is supposed to support the Drop Line Indicator but on my implementation of the control I don't have that.  Is there something that I am doing or something that I should turn on?  I have looked through the documentation and I have looked through the forums and I keep getting references to wpf and silverlight and nothing on the asp.net AJAX control.  So a little help would be great.  Also attached is a screen shot of the site where I have this to show that I am not getting any indicator.  Here's my code:

<telerik:RadTreeList ID="MenuManager" runat="server">
    <Columns>
        <telerik:TreeListBoundColumn DataField="MenuText" HeaderText="Menu Name" UniqueName="Name" />
        <telerik:TreeListHyperLinkColumn DataNavigateUrlFields="SitePageID" DataNavigateUrlFormatString="/admin/pageManager/?CID={0}" DataTextField="PageTitle" HeaderText="Url Title" UniqueName="PageTitle"  />
        <telerik:TreeListBoundColumn DataField="MenuUrl" HeaderText="Url" UniqueName="MenuUrl" />
        <telerik:TreeListBoundColumn DataField="MenuTarget" HeaderText="Target" UniqueName="MenuTarget" HeaderStyle-Width="60px" />
        <telerik:TreeListBoundColumn DataField="IsEnabled" HeaderText="Status" UniqueName="MenuItemEnabled" HeaderStyle-Width="60px" />
        <telerik:TreeListEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="60px" />
        <telerik:TreeListButtonColumn ButtonType="ImageButton" ButtonCssClass="deleteConfirm" CommandName="Delete" HeaderStyle-Width="30px" />
    </Columns>
    <EditFormSettings UserControlPath="~/includes/userControls/MenuForm.ascx" EditFormType="WebUserControl">
    </EditFormSettings>
    <ClientSettings AllowItemsDragDrop="true">
        <Selecting AllowItemSelection="True" />
    </ClientSettings>
</telerik:RadTreeList>

Here is my code:
private string[] DataKey = { "MenuID" };
private string[] ParentKey = { "ParentID" };
private List<SiteMenu> MenuList = new List<SiteMenu>();
 
protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    MenuManager.Skin = "Default";
    MenuManager.AllowPaging = false;
    MenuManager.AutoGenerateColumns = false;
    MenuManager.GridLines = TreeListGridLines.Both;
    MenuManager.ShowTreeLines = false;
    MenuManager.NeedDataSource += MenuManager_NeedDataSource;
    MenuManager.ItemCommand += MenuManager_ItemCommand;
    MenuManager.InsertCommand += MenuManager_InsertCommand;
    MenuManager.UpdateCommand += MenuManager_UpdateCommand;
    MenuManager.DeleteCommand += MenuManager_DeleteCommand;
    MenuManager.ItemDataBound += MenuManager_ItemDataBound;
    MenuManager.ClientSettings.AllowItemsDragDrop = true;
    MenuManager.ClientSettings.Selecting.AllowItemSelection = true;
    MenuManager.AllowMultiItemSelection = true;
    MenuManager.DataKeyNames = DataKey;
    MenuManager.ParentDataKeyNames = ParentKey;
    MenuManager.ItemDrop += MenuManager_RowDrop;
    MenuManager.GridLines = TreeListGridLines.Both;
 
    MenuList = new SiteMenu().SelectAllPublicMenuItemsBySiteIDNotDeleted(ThisSiteID);
}
 
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    if (!IsPostBack)
    {
        MenuManager.ExpandToLevel(1);
    }
}
 
protected void MenuManager_NeedDataSource(object sender, TreeListNeedDataSourceEventArgs e)
{
    MenuManager.DataSource = MenuList;
}
 
protected void MenuManager_ItemCommand(object sender, TreeListCommandEventArgs e)
{
    if (e.CommandName == RadTreeList.InitInsertCommandName)
    {
        MenuManager.ClientSettings.Reordering.AllowColumnsReorder = false;
    }
    if (e.CommandName == RadTreeList.CancelCommandName)
    {
        MenuManager.ClientSettings.Reordering.AllowColumnsReorder = true;
    }
}
 
protected void MenuManager_ItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
{
    if (e.Item is TreeListDataItem)
    {
        TreeListDataItem item = (TreeListDataItem)e.Item;
        if (item["MenuItemEnabled"].Text == "True")
        {
            item["MenuItemEnabled"].Text = "Enabled";
        }
        else
        {
            item["MenuItemEnabled"].Text = "Disabled";
        }
        if (item["MenuUrl"].Text.Contains("?CID="))
        {
            item["MenuUrl"].Attributes.Add("style", "color:#AAA");
        }
    }
}
 
protected void MenuManager_InsertCommand(object sender, TreeListCommandEventArgs e)
{
    TreeListEditFormItem item = e.Item as TreeListEditFormItem;
    UserControl MenuForm = (UserControl)e.Item.FindControl(TreeListEditFormItem.EditFormUserControlID);
 
    int parentID = 0;
 
    if (item.ParentItem != null)
    {
        parentID = (int)item.ParentItem.GetDataKeyValue("MenuID");
    }
 
    RadComboBox menuType = (RadComboBox)MenuForm.FindControl("MenuSelectList");
    RadTextBox menuText = (RadTextBox)MenuForm.FindControl("MenuText");
    switch (menuType.SelectedItem.Text)
    {
        case "Editable Content":
            RadTextBox pageTitle = (RadTextBox)MenuForm.FindControl("PageTitle");
            CheckBox defaultHomepage = (CheckBox)MenuForm.FindControl("DefaultHomepage");
            if (new SiteMenu().InsertNewMenuItem(parentID, menuText.Text, pageTitle.Text, defaultHomepage.Checked))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        case "Document Link":
            UploadedFile uploadedFile = null;
            RadUpload docUpload = (RadUpload)MenuForm.FindControl("DocumentLink");
            docUpload.MaxFileSize = 10000000;
            if (docUpload.UploadedFiles.Count > 0)
            {
                uploadedFile = docUpload.UploadedFiles[0];
            }
            if (new SiteMenu().InsertNewDocumentLink(parentID, menuText.Text, uploadedFile.GetName()))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        case "External / Custom Link":
            RadTextBox linkUrl = (RadTextBox)MenuForm.FindControl("LinkUrl");
            RadComboBox target = (RadComboBox)MenuForm.FindControl("LinkTarget");
            if (new SiteMenu().InsertExternalLink(parentID, menuText.Text, linkUrl.Text, target.Text))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        case "Chamber Modules":
            RadComboBox moduleType = (RadComboBox)MenuForm.FindControl("ModulePageType");
            if (new SiteMenu().InsertNewModuleMenuItem(parentID, menuText.Text, moduleType.SelectedValue))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
    }
}
 
protected void MenuManager_UpdateCommand(object sender, TreeListCommandEventArgs e)
{
    TreeListEditFormItem item = e.Item as TreeListEditFormItem;
    UserControl MenuForm = (UserControl)e.Item.FindControl(TreeListEditFormItem.EditFormUserControlID);
 
    int thisMenu = (int)item.ParentItem.GetDataKeyValue("MenuID");
 
    RadComboBox menuType = (RadComboBox)MenuForm.FindControl("MenuSelectList");
    RadTextBox menuText = (RadTextBox)MenuForm.FindControl("MenuText");
    CheckBox enabled = (CheckBox)MenuForm.FindControl("MenuItemEnabled");
 
    switch (new SubCategory().SelectThisSubCategory(Convert.ToInt32(menuType.SelectedValue), PCSSession.Current.SiteID).TypeDescription.ToLower())
    {
        case "editable content":
            RadTextBox pageTitle = (RadTextBox)MenuForm.FindControl("PageTitle");
            CheckBox defaultHomepage = (CheckBox)MenuForm.FindControl("DefaultHomepage");
            if (new SiteMenu().UpdateThisMenuItem(ThisSiteID, thisMenu, menuType.SelectedValue, menuText.Text, pageTitle.Text, enabled.Checked, defaultHomepage.Checked))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        case "document link":
            UploadedFile uploadedFile = null;
            RadUpload docUpload = (RadUpload)MenuForm.FindControl("DocumentLink");
            docUpload.MaxFileSize = 10000000;
            if (docUpload.UploadedFiles.Count > 0)
            {
                uploadedFile = docUpload.UploadedFiles[0];
 
                if (new SiteMenu().UpdateThisDocumentLink(thisMenu, menuType.SelectedValue, menuText.Text, uploadedFile.GetName(), enabled.Checked))
                {
                    Response.Redirect("/admin/menuManager/");
                }
            }
            else
            {
                if (new SiteMenu().UpdateThisMenuText(thisMenu, menuType.SelectedValue, menuText.Text, enabled.Checked))
                {
                    Response.Redirect("/admin/menuManager/");
                }
            }
            break;
        case "external / custom link":
            RadTextBox linkUrl = (RadTextBox)MenuForm.FindControl("LinkUrl");
            RadComboBox target = (RadComboBox)MenuForm.FindControl("LinkTarget");
            if (new SiteMenu().UpdateThisExternalLink(thisMenu, menuType.SelectedValue, menuText.Text, linkUrl.Text, target.SelectedItem.Text, enabled.Checked))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        case "chamber modules":
            RadComboBox moduleType = (RadComboBox)MenuForm.FindControl("ModulePageType");
            if (new SiteMenu().UpdateThisModuleMenuItem(thisMenu, menuType.SelectedValue, menuText.Text, moduleType.SelectedValue, enabled.Checked))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
    }
}
 
protected void MenuManager_DeleteCommand(object sender, TreeListCommandEventArgs e)
{
    TreeListDataItem item = e.Item as TreeListDataItem;
 
    int thisMenuItem = (int)item.GetDataKeyValue("MenuID");
 
    int menuType = new SiteMenu().SelectThisMenuItem(thisMenuItem, ThisSiteID).MenuTypeID;
    switch (new SubCategory().SelectThisSubCategory(menuType, ThisSiteID).TypeDescription.ToLower())
    {
        case "document link":
            if (new SiteMenu().DeleteThisDocumentLink(thisMenuItem))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        case "editable content":
            if (new SiteMenu().DeleteTheEditableContentPage(thisMenuItem))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
        default:
            if (new SiteMenu().DeleteThisMenuItem(thisMenuItem))
            {
                Response.Redirect("/admin/menuManager/");
            }
            break;
    }
}
 
protected void MenuManager_RowDrop(object sender, TreeListItemDragDropEventArgs e)
{
    int key = (int)e.DraggedItems[0].GetDataKeyValue("MenuID");
 
    int destinationId = 0;
    int sortOrder = 0;
 
    if (IsUnder.Checked)
    {
        destinationId = (int)e.DestinationDataItem.GetDataKeyValue("MenuID");
        sortOrder = 1;
    }
    else
    {
        destinationId = (int)e.DestinationDataItem.GetParentDataKeyValue("ParentID");
        sortOrder = new SiteMenu().SelectThisMenuItem((int)e.DestinationDataItem.GetDataKeyValue("MenuID"), ThisSiteID).SortOrder + 1;
    }
 
    if (destinationId == 0)
    {
        if (key != destinationId)
        {
            MenuList.FirstOrDefault(i => i.MenuID == key).ParentID = destinationId;
            MenuList.FirstOrDefault(i => i.MenuID == key).SortOrder = sortOrder;
 
            foreach (SiteMenu menuItem in MenuList.Where(i => i.ParentID == destinationId))
            {
                if (menuItem.SortOrder >= sortOrder && menuItem.MenuID != key)
                {
                    menuItem.SortOrder += 1;
                }
            }
 
            if (new SiteMenu().UpdateMenuListByParentID(destinationId, MenuList.Where(i => i.ParentID == destinationId).ToList()))
            {
                Response.Redirect("/admin/menuManager/");
            }
        }
    }
    else
    {
        if (key != destinationId && key != MenuList.FirstOrDefault(i => i.MenuID == destinationId).ParentID)
        {
            MenuList.FirstOrDefault(i => i.MenuID == key).ParentID = destinationId;
            MenuList.FirstOrDefault(i => i.MenuID == key).SortOrder = sortOrder;
 
            foreach (SiteMenu menuItem in MenuList.Where(i => i.ParentID == destinationId))
            {
                if (menuItem.SortOrder >= sortOrder && menuItem.MenuID != key)
                {
                    menuItem.SortOrder += 1;
                }
            }
 
            if (new SiteMenu().UpdateMenuListByParentID(destinationId, MenuList.Where(i => i.ParentID == destinationId).ToList()))
            {
                Response.Redirect("/admin/menuManager/");
            }
        }
    }
}

Kevin
Top achievements
Rank 1
 answered on 28 Oct 2012
4 answers
131 views
Hi:

I have gone through the tutorials on the Knockout.js web-site.  I am now converting them to classic asp.net (sans mvc).
Using the ms asp:TextBox, the sample (tutorial #1) converted without a problem, but I am having a problem with telerik:RadTextBox controls.  So, with telerik if I just tab through the knockout bound value is lost and the control is empty.
In my master page:
<telerik:RadScriptManager ID="knockoutAppScriptManager" runat="server">
    <Scripts>
        <asp:ScriptReference Path="Scripts/jquery-1.5.1.js" />
        <asp:ScriptReference Path="Scripts/knockout-2.1.0.js" />
    </Scripts>
</telerik:RadScriptManager>
Standard MS asp controls.
<%@ Page Title="Knockout | Tutorial #1" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Tutorial1.aspx.cs" Inherits="KnockoutApp.Tutorials.Tutorial1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- learn.knockoutjs.com -->
    <p>First name: <strong><asp:Label ID="firstNameLabel" runat="server" data-bind="text: firstName" /></strong></p>
    <p> Last name: <strong><asp:Label ID="lastNameLabel" runat="server" data-bind="text: lastName" /></strong></p>
    <p> Full name: <strong><asp:Label ID="fullNameLabel" runat="server" data-bind="text: fullName" /></strong></p>
    <p>First name: <asp:TextBox ID="firstNameTextBox" runat="server" data-bind="value: firstName" /></p>
    <p> Last name: <asp:TextBox ID="lastNameTextBox" runat="server" data-bind="value: lastName" /></p>
    <asp:Button ID="Button1" runat="server" Text="Go caps" data-bind="click: capitalizeLastName" />
    <!-- js code -->
    <script type="text/javascript">
        function AppViewModel() {
            this.firstName = ko.observable("Bert");
            this.lastName = ko.observable("Bertington");
            this.fullName = ko.computed(function () {
                return this.firstName() + " " + this.lastName();
            }, this);
            this.capitalizeLastName = function () {
                var currentVal = this.lastName();   // Read the current value
                this.lastName(currentVal.toUpperCase()); // Write back a modified value
            };
        }
        // Activates knockout.js
        ko.applyBindings(new AppViewModel());
    </script>
    <!-- end of content -->
</asp:Content>

My RadTextBox:
<%@ Page Title="Knockout | Tutorial #1" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Tutorial1Rad.aspx.cs" Inherits="KnockoutApp.Tutorials.Tutorial1Rad" %>
<%@ Register TagPrefix="Telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- learn.knockoutjs.com -->
    <p>First name: <strong><asp:Label ID="firstNameLabel" runat="server" data-bind="text: firstName" /></strong></p>
    <p> Last name: <strong><asp:Label ID="lastNameLabel" runat="server" data-bind="text: lastName" /></strong></p>
    <p> Full name: <strong><asp:Label ID="fullNameLabel" runat="server" data-bind="text: fullName" /></strong></p>
 
    <p>First name: <telerik:RadTextBox ID="firstNameTextBox" runat="server" data-bind="text: firstName" /></p>
    <p> Last name: <telerik:RadTextBox ID="lastNameTextBox" runat="server" data-bind="text: lastName" /></p>
    <asp:Button ID="Button1" runat="server" Text="Go caps" data-bind="click: capitalizeLastName" />
    <!-- js code -->
    <script type="text/javascript">
        function AppViewModel() {
            this.firstName = ko.observable("Bert");
            this.lastName = ko.observable("Bertington");
            this.fullName = ko.computed(function () {
                return this.firstName() + " " + this.lastName();
            }, this);
            this.capitalizeLastName = function () {
                var currentVal = this.lastName();   // Read the current value
                this.lastName(currentVal.toUpperCase()); // Write back a modified value
            };
        }
        // Activates knockout.js
        ko.applyBindings(new AppViewModel());
    </script>
    <!-- end of content -->
</asp:Content>

I have tried both data-bind="text: firstName" anddata-bind="value: firstName"

Phil
I tried to attach a zip but it would not accept a zip...
Phil
Top achievements
Rank 2
 answered on 28 Oct 2012
3 answers
74 views
Hiya,

As new controls and features are added to some of the Telerik product suites, other suites are being left behind. I am in no way complaining about new features being added to anything, mind you. I am simply asking that some consideration be made for all suites when you add new features to one. Prepare yourself to be amazed by a series of logical arguments that will compel you to take action! Namely, the action I want you to take...

All About Me (or, "The Most Interesting Thing You've Ever Read In Your Whole Life")

My main product makes heavy use of your ASP.Net AJAX controls. However, you have some goodies in your Silverlight controls that would really make some parts of my product shine. Specifically, the property grid and diagrams controls. Now, I know the diagrams control is very new, but the property grid has been available as a Silverlight control for quite some time, and there really is no (non-sucky) alternative out there on the market. Besides, I'd want it to use the Telerik controls for property value selection (RadColorPicker, RadDatePicker, etc).

Now I understand the complexity involved in porting something like the Diagrams control to the ASP.Net AJAX suite, but you guys are the masters! And as for the property grid.. Well, if it were crazy easy, I'd write it, but for you guys it should be a snap, right?

It's All About Love (or, "Gimme Mah Features!")

I hate to come across as one of those people what with their, "why isn't my toolset getting any love?" whiny pitch, so let me try a logical angle here... The future of Silverlight looks... well, icky, Microsoft says it's their platform for development of Windows Phone applications (check your analytics, everybody -- a responsive, mobile-friendly UI is a far better investment than writing a UI just for Windows Phone). Also, they refuse to confirm or deny whether there's even going to be another major release after 5 (read: they wouldn't blood well refuse to confirm the next major release of ASP.Net MVC or Web Forms, so make your own conclusion), and teetering on the edge of irrelevance because of all the crazy nifty stuff you can do using HTML5, CSS3 and JavaScript.

It doesn't even run inside the Windows 8 IE unless you drop to desktop.

Mix-n-Match (or, "Mating with a Corpse -- Why It's Unhealthy")

So, even using mix-and-match to embed the Silverlight controls in order to (kinda) integrate them into my product that makes use of the ASP.Net AJAX suite seems risky, especially since something like the property grid would be ubiquitous. The absolutely worst part of it is that I'd still have to write non-Silverlight code to duplicate the same functionality for those who cannot -- or choose not to -- install the Silverlight plug-in. And honestly, saying "no" to just about anything a browser asks you to install might not be a terrible recommendation to give non-tech-savvy web users these days.

Did I mention I'd still have to duplicate the functionality in HTML anyway?

KendoUI for Web (or, "Why Am I Paying Some Other Guy To Sleep With My Wife?")

Before I forget, let me just ask: Why not clean up the ASP.Net AJAX controls? Why not make them all snazzy with whatever it is the KendoUI for Web stuff is supposed to offer that's so much better? I know it's tempting to scrap something that's become boring and start over with the latest and greatest, but for existing customers (us, in this case), why not do the right thing and re-plumb the old stuff? It makes me extremely nervous (like, a totally manly nervous) that you're dedicating resources to a new suite that looks like it wants to replace the existing suite, only it wants me to rewrite all my code for the same -- and often less -- functionality.

Really, KendoUI for Web doesn't have anywhere near the number of controls. Are we supposed to mix and match ASP.Net AJAX controls with KendoUI for Web? Where does that leave us Web Forms people?

Anyway, as far as KendoUI for Web is concerned, I'd just really love to see the resources that are being used/spent on that project redirected to making the ASP.Net AJAX suite(s) (WebForms/MVC) that much more awesome. And make them all HTML5 sparkly if you like, too.

I'll avoid writing a whole section on disliking the idea of my subscription funding something that's going to make the current suite I've built my product around obsolete. That would just get all emotional and petty.

In Summary

I could have saved us all a whole lot of time by just saying, "Hey, Telerik. May I please, please, pretty please have the Property Grid included in the ASP.Net AJAX controls? Please? Oh and if you could find time for the Diagrams control, that'd be just peachy." But then I couldn't have made it seem like it was about bigger, more important things.

Thank you for your consideration, and for the attention that I desperately crave.
Iana Tsolova
Telerik team
 answered on 28 Oct 2012
1 answer
108 views
I am using a radGrid, on the itemInserted event I have a textbox which takes a name and stores it the table and I am also creating a directory of that name.

Now I am facing problems with renaming the directory I created.
I want to know how I can rename the directory when I want to Edit to change the name. I know this code

System.IO.Directory.Move(@"c:\abc", @"c:\cba");
or
FileIO.FileSystem.RenameDirectory(oldFolderName.Text, newFolderName.Text)

If I use EditCommand event and find the value of the name column But when I will change the name to something else , How will I take the new value and rename the directory accordingly?


Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Oct 2012
2 answers
87 views
Hi, 

I want to create a textbox with a button, I tried using RegexTextBox with RadInputManager.  It works fine and does not cause any postback when use the proper button, but I also have another buttons inside my page that are not related to the functionality of the regex, and when the textbox is invalid, it does not cause postback.  I could not find any way to link inputManager just to the button i desire.  

Is that possible?
Arnold Guzmán
Top achievements
Rank 1
 answered on 26 Oct 2012
1 answer
68 views
I would like to download / import data from following webpage to excel.
http://www.dukascopy.com/tradercontest/?action=liveForecast
Once you go to that page, change instrument to any, so all three parameters are "Any" 

You will see there are quite a few pages with 10 trades on each page and all these trades are are having one of three background colors.

I want to import all these trades from all of the pages in excel on an interval of say 1 or 5 minutes or if the trades are imporeted when the excel is opened, it is acceptable as well.

So I have updated web address to fetch data from page 1,2,3 and likewise which are as follows.

http://www.dukascopy.com/tradercontest/?instrument=USD%2FCHF&side=&state=&trader=&page=1&sort_by=&sort_dir=ASC&action=forecastGrid&ajax=1

http://www.dukascopy.com/tradercontest/?instrument=USD%2FCHF&side=&state=&trader=&page=2&sort_by=&sort_dir=ASC&action=forecastGrid&ajax=1

We have to change the page=1 to page=2 to page=3 and likewise. 

If I use the above updated web addresses, I am not able to grab the back ground color of each trade in a way that the background color appears on first link above.

So the requirement is to import all the trades from all of the web pages with back ground color as a separate column is excel.

Please let me know if anyone have the solution.

Thanks and regards.

Daniel
Telerik team
 answered on 26 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?