Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
279 views
Hola,


      Hay alguna forma de globalizar el idioma de los controles al espaƱol?


Saludos.


Miguel Santiago
Kate
Telerik team
 answered on 22 Oct 2012
1 answer
38 views
Hi Is there one place I can go to find a list of enhancements to the rad Ajax controls since the Q2 2010 release. (As far as web development is concerned). I am trying to assess the benefit of upgrading to a more recent release for my business. Thanks Clive
Eyup
Telerik team
 answered on 22 Oct 2012
0 answers
67 views

Hello

I am considering such scenario - one web service for appointments and multi-client schedulers.
I have created asp.net page with radscheduler and webservice binding.
Now I am trying to use this web service for winforms scheduler (I am performing some operations in web service so solution with direct db access is unacceptable for me and I would like to have everything in one piece, in web service).
So I am trying to get appointments from this web service - unfortunately it is JSON service so it is not so easy..
I can't deserialize such method in forms client

public List<AppointmentData> GetJSONScheduler(SchedulerInfo schedulerInfo)

 

I am suceesfully invoke this method (but I have to make some modifications in JSON string before send it) and I can't deserialize return List
I have been trying:

DataContractJsonSerializer dJSON = new DataContractJsonSerializer(typeof(List<AppointmentData>);
 
List<AppointmentData> sr = (List<AppointmentData>)dJSON.ReadObject(str);
 
//str is response from HttpWebResponse
 
  
 
JavaScriptSerializer jscriptDeserializer = new JavaScriptSerializer();
 
 jscriptDeserializer.RecursionLimit = 100;
 
 List<AppointmentData> srResult = jscriptDeserializer.Deserialize<List<AppointmentData>>(sbResponse.ToString());
 
//sbResponse is StringBuilder made from GetResponseStream() of HttpWebResponse

 

Do you have any advices?

Thanks in advance
Regards

Michał
Top achievements
Rank 1
 asked on 22 Oct 2012
0 answers
51 views

I created two web solutions, A and B. And I added a data entry web form (DataEntery.aspx) into Solution A, with third party user controls and form authentication.

I want to use the web page DataEntery.aspx into solution B. What is the best method for it?

Shajan
Top achievements
Rank 1
 asked on 22 Oct 2012
5 answers
143 views
After installing your latest version of Telerik Rad Ajax Controls RadControlsForAspNetAjaxControlPanel_2012_3_1016.exe (and no other upgrades to the other products)...
When I open an existing project that uses Telerik in Visual Studio 2010, it immediately gives the error that Visual Studio has stopped working and kicks me out.

However, if I open Visual Studio without an existing project, it opens fine.

This occurred right after installing your project and having done nothing else and happens to all 4 of my projects that use Telerik.

Ack!

Please help. How do I back out and get the previous version?

thanks.
Biliana Ficheva
Telerik team
 answered on 22 Oct 2012
1 answer
51 views
Hi All,

I am using ClientEvents-OnRowSelected function in radgrid. and using Webservice method in that client events. all browsers working fine. but Safari only doesn't calling that webservice method in only OnRowSelected method. but in same page i am using various function this webservice method working Safari also. Please check and let me know why it's not calling that particular method.

Please let me know.


Thanks in Advance,
Dhamodharan.S
Radoslav
Telerik team
 answered on 22 Oct 2012
4 answers
238 views
Hi,

I would like to use RadChart in my web application. I would like the radchart to show real time data to the customers over web.

Could anyone please let me know whether ASP.NET chart control supports live charting or do I need to go for silverlight control??

Thanks,
Mahesh
Kalyan
Top achievements
Rank 1
 answered on 22 Oct 2012
4 answers
272 views
Hi,
my client wants to see a combobox where he could write patterns of items while list of all items containing the pattern is decreased.
At the same time he wants that the items will be shown with check boxes so at the end of operation he could check several of them
.
I have learned all examples that you show in your demo projects but did not find exactly what I want. Particularly I tried to use CheckBoxes property but then I found in http://www.telerik.com/help/aspnet-ajax/combobox-usability-checkboxes.html that
"Load On Demand functionality is not supported".  Really when I tried this option with empty list of RadComboBoxItems the application stopped to react.
Also I tried to use template based on ideas from http://www.telerik.com/community/forums/aspnet-ajax/combobox/add-item-template-to-radcombobox-dynamically.aspx
But I use handler of ItemsRequested  event. I succeeded to show a combo with check boxes whose number of items is decreased when an user inserts some text. But when I let to combo to be closed and then tried to open it I get an error: The state information is invalid for this page and might be corrupted.
I add some code then I use.
So the question: is it possible to realize the above task?
  Thank you
Evgeny

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Data;
  
  
public partial class TestPages_TestComboCheckBoxes : System.Web.UI.Page
{
  
    protected void Page_Init(object sender, EventArgs e)
    {
        //this is name of combo
        rcbMitkanKav.ItemTemplate = new ItemTemplate();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
  
        if (!IsPostBack)
            LoadData();
    }
  
    protected void rcbMitkanKav_ItemsRequested(object sender, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
    {
        DataTable dtMitkanimKavim = new DataTable();
        const string MethodName = "SearchPopWindow.rcbMitkanKav_ItemsRequested";
          
  
        int UserErrorCode = 6;
        try
        {
            string sComboText = e.Text;
            //pattern to search
            string sSearchLetter = "";
            if (sComboText == "")
            {
                sSearchLetter = "";
            }
            if (sComboText != "")
            {
                sSearchLetter = sComboText;
            }
  
            try
            {
                if (sSearchLetter.Length < 3)
                    return;
                int queryId = 1;
                dtMitkanimKavim = GetSearchResultByWord(sSearchLetter, queryId);
                int itemsPerRequest = 30;
                int itemOffset = e.NumberOfItems;
                int endOffset = itemOffset + itemsPerRequest;
                if (endOffset > dtMitkanimKavim.Rows.Count)
                {
                    endOffset = dtMitkanimKavim.Rows.Count;
                }
                if (endOffset == dtMitkanimKavim.Rows.Count)
                {
                    e.EndOfItems = true;
                }
                else
                {
                    e.EndOfItems = false;
                }
  
  
  
                rcbMitkanKav.DataSource = dtMitkanimKavim;
                rcbMitkanKav.DataBind();
               
  
  
                 
            }
            catch
            {
                e.Message = "אין ×Ø×©×•×ž×•×Ŗ";
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
  
  
  
    private void LoadData()
    {
        try
        {
            ///here code to load data from database int a table and save it in Session
  
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
  
    /// <summary>
    /// 
    /// </summary>
    /// <param name="sSearchWord">curren input</param>
    /// <param name="queryId"></param>
    /// <returns></returns>
    public DataTable GetSearchResultByWord(string sSearchWord, int queryId)
    {
        DataTable dt = new DataTable();
        //build new datable is contain two columns
        dt.Columns.Add("ComboValue");
        dt.Columns.Add("ComboText");
  
  
        DataRow newRow = null;
        string currentValue = string.Empty;
        ///array of rows from a table according to current input sSearchWord
        DataRow[] drSelected = null;
        ///replace "'" to sql select
        if (sSearchWord.Contains("'"))
            sSearchWord = sSearchWord.Replace("'", "''");
        try
        {
            drSelected = SessionManager.dtMitkanimKavim.Select("NameReferenceId LIKE '" + "%" + sSearchWord + "%" + "'") as DataRow[];
            //add array to new datable
            foreach (DataRow row in drSelected)
            {
                 
                dt.Rows.Add(row);
            }
        }
        catch (Exception ex)
        {
  
            throw ex;
        }
        return dt;
    }
  
  
      
     
  
     
}
class ItemTemplate : ITemplate
{
  
    public void InstantiateIn(Control container)
    {
  
        CheckBox chk = new CheckBox();
        //chk.ID = "chk1";
        chk.Attributes.Add("onclick", "SetCheckedStateToServer()");
  
  
        Label lbl = new Label();
  
  
  
        Table table = new Table();
        TableRow mainRow = new TableRow();
  
        TableCell cell1 = new TableCell();
        cell1.Controls.Add(chk);
        cell1.DataBinding += new EventHandler(cell1_DataBinding);
        mainRow.Cells.Add(cell1);
  
        TableCell cell2 = new TableCell();
        cell2.Controls.Add(lbl);
        cell2.DataBinding += new EventHandler(cell2_DataBinding);
        mainRow.Cells.Add(cell2);
  
        table.Rows.Add(mainRow);
  
        container.Controls.Add(table);
    }
  
    private void cell1_DataBinding(object sender, EventArgs e)
    {
  
        TableCell target = (TableCell)sender;
  
        (target.Controls[0] as CheckBox).Checked = true;
    }
  
    private void cell2_DataBinding(object sender, EventArgs e)
    {
        TableCell target = (TableCell)sender;
        RadComboBoxItem item = (RadComboBoxItem)target.BindingContainer;
  
        (target.Controls[0] as Label).Text =
            ((DataRowView)(item.DataItem)).Row[1].ToString();
    }
  
  
  
}
eugen100
Top achievements
Rank 1
 answered on 22 Oct 2012
1 answer
133 views
I have 2 columns in my datasource(not in the grid) that I want to access in order to format columns that I do have in the grid. I am applying my formatting in the ItemDataBound event.
Scenario:
Let's say my datasource has 4 columns. Select Field1, Field2, Field3, Field4 from myTable. In the grid I have Field1 with Unique column name "Field1" and Field2 with Unique column name "Field2". Can I access Field3 and Field4 from the datasource(not the grid) and format Field1 and Field2 with values that I analyze  in fields 3 and 4?
I know I can access Fields 3 and 4 if I put them in the grid with "display=false", but I fear this just adds more unecessary html in the grid(and I have 8 grids on the form). I seem to remember something about accessing the MasterTableView, but I can't find the post anywhere.

Thanks in advance,

Dana Cobb
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
112 views
Hi All,

In Rad list box, if we select "<ButtonSetting ShowReorder = "true">" then we get button only for "Move UP" and "Move Down" as shown in attached image "Verticle.png".
However, i require buttons "Move Left" and "Move Right" as shown in attached image "Horizontal.png".

What changes require to get this?
Dipal
Top achievements
Rank 1
 answered on 22 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?