Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
84 views
We are a shop that currently uses VS2008. We would like to upgrade our apps to VS2010 initially using the 3.5 framework. Sometime later, we would like to upgrade our apps to the 4.0 framework.

We had an architect in our company try and convert VS2008 to VS2010 project and worked fine except for the Telerk tools. He could not get the present version of the DLL to work. Our current version is: 2009.3.1314.35

What is the proper upgrade path in order to accomplish the above scenario?
Sebastian
Telerik team
 answered on 10 Dec 2010
1 answer
100 views
Hi,

I am having a result set with the structure of
Level1                         Level2           Level3               CalcField
---------------------------------------------------------------------------
Akron                Cleveland OH         2007-QTR 1     206172.0000
Akron                Cleveland OH         2007-QTR 2     225291.0000
Akron                Cleveland OH         2007-QTR 3     210866.0000
Allen                  Dallas-Fort Worth  TX 2009-QTR 1 27241.0000
Allen                  Dallas-Fort Worth  TX 2009-QTR 2 62850.0000
Allen                  Dallas-Fort Worth  TX 2009-QTR 3 100539.0000

And the output of the treelist should be,
Akron
        Cleveland OH               642329.0000
               2007-QTR 1         206172.0000
               2007-QTR 2         225291.0000
               2007-QTR 3         210866.0000
Allen  
       Dallas-Fort Worth         90091.0000
               TX 2009-QTR 1   27241.0000
               TX 2009-QTR 2   62850.0000

I have gone through the samples with ParentKeyname and DataKeyNames Concept.But i dont have the parentid concept in my query.
Can anyone help me..its urgent..
Any best way to achieve this?

Tsvetoslav
Telerik team
 answered on 10 Dec 2010
10 answers
208 views
I was wondering if Telerik has plans to create a mobile controls bundle that is based on the ASP.Net AJAX controls and skins. I noticed component one has a mobile and iphone products out (very limited selection i must say) and was hopping Telerik will do the same sooner or later. As far as i know there aren't many controls for mobile websites out on the market, and I personally would like to keep my mobile websites consistent with their desktop versions. I know in theory we can use the .net controls but they do seem to add a lot to the size of a page.
Sebastian
Telerik team
 answered on 10 Dec 2010
6 answers
91 views
Hi,

   I have used Radwindow in my project which returns location value that is selected in that window.. I have used javascript for returning location value.. The Problem is it works fine in IE8 browser, but the value is not getting returned in Safari..
<telerik:RadWindowManager ID="RadWindowManager2" OnClientShow="" runat="server" OnClientClose=""
       ReloadOnShow="false">
       <Windows>
           <telerik:RadWindow ID="radWindowLocationPopup" OpenerElementID="" OffsetElementID=""
               ClientCallBackFunction="CallBackFunctionService" Behavior="Close" VisibleTitlebar="false"
               Modal="true" Width="578px" runat="server" Height="450px" NavigateUrl=" " VisibleStatusbar="false">
           </telerik:RadWindow>
       </Windows>
   </telerik:RadWindowManager>

and the code in javascript are,
function OpenRadWindowLocaltionPopup(externalScheduling) {
    var Url = "./Locationpopup.aspx?EnableScheduling=" + externalScheduling;
    var oWnd = radopen(Url, "radWindowLocationPopup");
    oWnd.SetUrl(oWnd.GetUrl());
    return false;
}
function CallBackFunctionService(radWindow, returnvalue) {
    try {
        if (returnvalue != "") {
            var textBoxLocation = document.getElementById("ctl00_ContentPlaceHolder1_textBoxExternalLocation");
            var hiddenLocationID = document.getElementById("ctl00_ContentPlaceHolder1_hiddenFieldLocationId");
            var hiddenLocationName = document.getElementById("ctl00_ContentPlaceHolder1_hiddenLocationName");
            var rtnValue = returnvalue.split("~");
            hiddenLocationID.innerText = rtnValue[1];
            textBoxLocation.value = rtnValue[0];
            hiddenLocationName.value = rtnValue[0];
        }
        else {
            document.getElementById("ctl00_ContentPlaceHolder1_textBoxExternalLocation").value = "";
        }
        CheckExternalSchedulingEnable();
    }
    catch (err) {
    }
    return false;
}

Do i need to do any change in javascript to make it work efficiently in safari.. Please guide me..

Thanks,
Hema.
Georgi Tunev
Telerik team
 answered on 10 Dec 2010
4 answers
374 views
Hi,
after postback I set focus to RadComboBox. But I would also like the cursor to be positioned at the end of the text field in radcombobox.
How can I position the cusrsor at the end?
Thanks:)
Yana
Telerik team
 answered on 10 Dec 2010
4 answers
157 views
Hi there.

I have a scheduler that I would like to expand to 100% of the available screen, but NOT expand beyond that.  Setting the height of the Scheduler to 100% and then the overflow behaviour to EITHER scroll or expand does not seem to do the trick - in both instances, the scheduler expands to extend the height of the window.  This is a problem because Chrome and IE do not seem to like it when you drag appointments higher or lower up the screen (ie require an "automatic" scroll) if it is the window's scrollbar that must be used instead of the schedulers.

I can set the height of the scheduler to say 1000 pixels to get the functionality that I'm after, but of course I won't necessarily know the height of the window.  And I can set the height with javascript onload etc, but that gets messy when dealing with ajax postbacks and dealing with window resizes etc.  Am I missing something simple?

Thanks,

Matthew

Veronica
Telerik team
 answered on 10 Dec 2010
5 answers
100 views
Hi.  After upgrading to Q3 2010, export to pdf is now throwing a run time error (see below).  The export functionality was working fine with Q2 2010.  Also noticed the export to PDF no longer works on the demo page:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/pdfexport/defaultcs.aspx

System.NullReferenceException: Object reference not set to an instance of an object.
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.CreateBase14Font(String pdfFontID, Base14Font base14)
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.MakeFont(String pdfFontID, Font font)
  at Telerik.Web.Apoc.Pdf.FontSetup.AddToResources(PdfFontCreator fontCreator, PdfResources resources)
  at Telerik.Web.Apoc.Render.Pdf.PdfRenderer.StopRenderer()
  at Telerik.Web.Apoc.StreamRenderer.StopRenderer()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

Description: 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.

Exception Details: System.SystemException: System.NullReferenceException: Object reference not set to an instance of an object.
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.CreateBase14Font(String pdfFontID, Base14Font base14)
  at Telerik.Web.Apoc.Pdf.PdfFontCreator.MakeFont(String pdfFontID, Font font)
  at Telerik.Web.Apoc.Pdf.FontSetup.AddToResources(PdfFontCreator fontCreator, PdfResources resources)
  at Telerik.Web.Apoc.Render.Pdf.PdfRenderer.StopRenderer()
  at Telerik.Web.Apoc.StreamRenderer.StopRenderer()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
Daniel
Telerik team
 answered on 10 Dec 2010
1 answer
69 views
Hello,

I have a RadGrid I am using for customer maintenance. I would like the users to be able to insert, update and delete customers from this RadGrid. I'd also like to notify them that "Insert for customer: XXXXXX succeeded", "Customer XXXXXX updated" or "Unable to delete customer XXXXXX" after the insert/update/delete either succeeds or fails. Since I am setting the RadGrid's DataSource property in the RadGrid1_NeedDataSource event, I don't think that I can use AllowAutomaticDeletes, AllowAutomaticInserts, or AllowAutomaticUpdates along with the ItemDeleted, ItemInserted, or ItemUpdated events (if I can, I must have been doing something wrong).

Is there a way to notify the user the status of the operation without setting the RadGrid's DataSourceID and enabling Automatic operations?

Thanks,
Casey

***EDIT - I was able to accomplish this by setting a session variable in the ItemCommand of the RadGrid and then adding a new literal control to the end of the RadGrid with the session variable text as the message. 
Tsvetoslav
Telerik team
 answered on 10 Dec 2010
1 answer
137 views
Hi all,
I've some problem (I weakness in english language but I'll try to explain.)  
Firstly, I've created dynamically column from telerik gridview but I couldn't save new data to datatable

About telerik gridview that I try to this code 

 void grid_UpdateCommand(object source, GridCommandEventArgs e)
    {
        Hashtable newValues = new Hashtable();
        GridEditableItem item = e.Item as GridEditableItem;
        item.OwnerTableView.ExtractValuesFromItem(newValues, item);
        Response.Write("Updated Name: " + newValues["ContactName"].ToString());

    }
 void grid_UpdateCommand(object source, GridCommandEventArgs e)
    {
        Hashtable newValues = new Hashtable();
        GridEditableItem item = e.Item as GridEditableItem;
        item.OwnerTableView.ExtractValuesFromItem(newValues, item);
        Response.Write("Updated Name: " + newValues["ContactName"].ToString());

    }
 void grid_UpdateCommand(object source, GridCommandEventArgs e)
    {
        Hashtable newValues = new Hashtable();
        GridEditableItem item = e.Item as GridEditableItem;
        item.OwnerTableView.ExtractValuesFromItem(newValues, item);
        Response.Write("Updated Name: " + newValues["ContactName"].ToString());

    }
void grid_UpdateCommand(object source, GridCommandEventArgs e)
   {
       Hashtable newValues = new Hashtable();
       GridEditableItem item = e.Item as GridEditableItem;
       item.OwnerTableView.ExtractValuesFromItem(newValues, item);
       Response.Write("Updated Name: " + newValues["ContactName"].ToString());
 
   }

this code is perform to gather new value (when you key in new value in editable textbox),In runtime mode will through to   grid_UpdateCommand method. that's ok  (I can show new value )

But my purpose want to loop all new value (when you key in new value) into my Data-table 
as following 
Hashtable newValues = new Hashtable();
            foreach (GridEditableItem Item in grid.MasterTableView.Items)
            {
               
                Item.OwnerTableView.ExtractValuesFromItem(newValues, (GridEditableItem)Item);
                string str = newValues[0].ToString();
            }

But I couldn't  get new value when I loop from grid (I couldn't use ExtractValuesFromItem method it displayed error message as "Unable to cast object of type 'MyItemTemplate' to type 'System.Web.UI.IBindableTemplate'."

How should I do this problem ? 

Thanking in advance
 Bhadhai
Martin
Telerik team
 answered on 10 Dec 2010
1 answer
98 views
I'm ready to post a small, but helpful project in the Code Library.  However, there isn't a Button section in the Code Library yet.  Any "expected" date on adding the Button section to the Code Library?

Thanks!
Georgi Tunev
Telerik team
 answered on 10 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?