Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
229 views
Hi Team,

Presently i have implemented  Double Needed Gauge Control as you can see in this image (Double Needle Gauge ).
As we can see in the Image Red Range ranges from 0 -> 700 and Green ranges from 700 -> 1100 .

Dont we have any way to show both the ranges spreading from Zero just like Rainbow (Colors Running Parallel ).
To be specific in this case :
Both the Red and green Range should start from Zero and Red ending at 700 and Green traversing till 1100.

Does anyone know how to achieve this. ?

Thanks,
Madhav Joshi
Danail Vasilev
Telerik team
 answered on 28 Nov 2012
15 answers
416 views
Hi,

I am currently wanting to implement the RadTreeView drag and drop functionality. I only need to use one tree, but users must be able to modify the tree structure by dragging and dropping items into different areas of the tree. I'm not too familiar with JavaScript, so would appreciate it if someone could help me modify the JavaScript found here to implement the above scenario.

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx

Thanks in advance,
Rosco
Plamen
Telerik team
 answered on 28 Nov 2012
1 answer
60 views
Following piece of code giving me error, please see screen shot attached.

UIHelpers.SetSessionVariable("_isNewDates", false);
          if (RadCalendar1.SelectedDates != UIHelpers.CovertFromArrayList((ArrayList)UIHelpers.GetSessionVariable("_oldDates", new ArrayList())))
          {
              UIHelpers.SetSessionVariable("_isNewDates", true);
          }
 
          UIHelpers.SetSessionVariable("_oldDates", UIHelpers.CovertToArrayList(RadCalendar1.SelectedDates));

Check this link for exact error as I took this screenshot

I just implement RadCalendar instead of my ASP.net Calendar and hope someone can help me.
Vasil
Telerik team
 answered on 28 Nov 2012
1 answer
42 views
Hi Guys,

I know this is a huge step forward in Telerik release and that's why I am asking...
Migrating from Q3.2009 to Q3.2012 using Telerik wizard, I finally got my radlistbox embeded controls no more rendered in IE...
Do I need to redo the entire page or is there some quickfix I missed?

Best regards,
David
Dave
Top achievements
Rank 2
 answered on 28 Nov 2012
6 answers
152 views
Hello,
I know Telerik Grid does not go back to previous state in case of paging when ajaxfied but i found from telerik we can impement Scriptmanager Naviate method to reset Index but its not working it always go for first index on browser back button.
I have scriptmanager in MasterPage and in webpart i have added script manage Proxy control.

Please find code 
<asp:ScriptManager id="ScriptManager" runat="server"
                       EnableHistory="true"
                       EnablePageMethods="false"
                       EnablePartialRendering="true"
                       EnableScriptGlobalization="true"
                       EnableScriptLocalization="true" />

in Webpart .ascx File
<asp:ScriptManagerProxy ID="wsScriptManagerProxy" runat="server" OnNavigate="ScriptManager_Navigate" />

Code 

private static string pageKey = "p";
protected void ScriptManager_Navigate(object sender, HistoryEventArgs e)
        {
            if (e.State.Count <= 0)
            {
                // Setup default state
                workspaceGrid.MasterTableView.CurrentPageIndex = 0;
                return;
            }
 
            string key = e.State.AllKeys[0];
            string state = String.Empty;
 
            if (String.Equals(key, pageKey))
            {
                state = e.State[key];
                int pageIndex = int.Parse(state);
                workspaceGrid.MasterTableView.CurrentPageIndex = pageIndex;
                workspaceGrid.MasterTableView.Rebind();
            }
        }
protected void workspaceGrid_PageIndexChanged(object sender, GridPageChangedEventArgs e)
        {
            //string state = (sender as RadGrid).MasterTableView.CurrentPageIndex.ToString();
            string state = e.NewPageIndex.ToString();
            ScriptManager.GetCurrent(this.Page).AddHistoryPoint(pageKey, state);
        }

Thanks 
Ronak
Tsvetoslav
Telerik team
 answered on 28 Nov 2012
1 answer
103 views
Hello,
I wanted to test second solution from: http://www.telerik.com/help/aspnet-ajax/grid-performing-batch-updates.html

Client side editing.

In code:

public DataTable ProductsTable
{
 
    get
    {
        DataTable res = (DataTable)this.Session["ProductsTable"];
        if (res == null)
        {
            res = DataSourceHelperCS.GetDataTable("SELECT [ProductID], [ProductName], [Discontinued] FROM [Products]");
            this.Session["ProductsTable"] = res;
        }
 
        return res;
    }
}

I have issue with DataSourceHelperCS. How I can avoid mentioned error?
Angel Petrov
Telerik team
 answered on 28 Nov 2012
6 answers
116 views
Hi

Attached files present the issue. Some appointments are drawn wrong width of 0% in month view.
Is this a known issue ? Is there a solution for it ?

Thanks,
Michał
Plamen
Telerik team
 answered on 28 Nov 2012
1 answer
99 views
Hello,

I tried to implement batch updates. In my first try I used following article:

http://www.telerik.com/help/aspnet-ajax/grid-performing-batch-updates.html

I only used different table from Northwind database and used checkboxes for update.

Here you can see my code:

<%@ 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">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
 
        <telerik:radgrid ID="RadGrid1" runat="server" AllowMultiRowEdit="True" DataSourceID="SqlDataSource1"
  OnItemCommand="RadGrid1_ItemCommand"
    OnItemDataBound="RadGrid1_ItemDataBound">
  <MasterTableView DataKeyNames="ProductID" AutoGenerateColumns="false" EditMode="InPlace"
    CommandItemDisplay="TopAndBottom">
    <Columns>
      <telerik:gridboundcolumn ReadOnly="true" DataField="ProductID" UniqueName="ProductID"
        HeaderText="ProductID">
      </telerik:gridboundcolumn>
      <telerik:gridboundcolumn ReadOnly="true" DataField="ProductName" UniqueName="ProductName"
            HeaderText="ProductName">
      </telerik:gridboundcolumn>
      <telerik:GridCheckBoxColumn DataField="Discontinued" DefaultInsertValue=""
                    HeaderText="Discontinued" UniqueName="Discontinued" DataType="System.int16">
      </telerik:GridCheckBoxColumn>
      <telerik:grideditcommandcolumn UniqueName="EditCommandColumn" />
    </Columns>
    <CommandItemTemplate>
      <asp:Button runat="server" ID="UpdateAll" Text="Update All" CommandName="UpdateAll" /></CommandItemTemplate>
  </MasterTableView>
</telerik:radgrid>
<asp:SqlDataSource ID="SqlDataSource1"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [ProductID], [ProductName], [Discontinued] FROM [Products]"
  runat="server"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>

using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == "UpdateAll")
        {
            foreach (GridEditableItem editedItem in RadGrid1.EditItems)
            {
                Hashtable newValues = new Hashtable();
                //The GridTableView will fill the values from all editable columns in the hash
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);
                SqlDataSource1.UpdateCommand = String.Format("Update Products SET Discontinued='{0}' WHERE ProductID='{1}'"
                    , newValues["Discontinued"], editedItem.GetDataKeyValue("ProductID").ToString());
                SqlDataSource1.Update();
                editedItem.Edit = false;
            }
        }
        RadGrid1.Rebind();
    }
 
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem && e.Item.IsInEditMode)
        {
            GridDataItem dataItem = e.Item as GridDataItem;
            //Hides the Update button for each edit form
            dataItem["EditCommandColumn"].Controls[0].Visible = false;
        }
    }
}

It seems that batch update does not work. When I click edit I can change checkbox value but when I click edit on second record change I did disappers. somhow it is not remembered. Can you fix this problem, please?
Angel Petrov
Telerik team
 answered on 28 Nov 2012
1 answer
50 views
By and large the RadEditor control is working very well in our project.

There is one little annoyance.  We run the control with the EditModes="Design".  In this condition, the editor displays a thick featureless grey bar at the bottom.  This is wasted space are far as we're concerned.

Is there any way to get rid of this?  
Rumen
Telerik team
 answered on 28 Nov 2012
1 answer
92 views
Hello,
I am looking for a way to do the following:
http://www.crateandbarrel.com/dining-and-entertaining/individual-bowls/1
In this example they are listing the appropriate data for the page, but they are also "inserting/placing" an image that spans multiple rows and columns that may or may not be part of the dataset.
Has anyone done this with the RadListView or another telerik control?
Thanks.
Galin
Telerik team
 answered on 28 Nov 2012
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?