Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
216 views
Good morning, I did the download version of the components in 2008, but the combobox performance was low when I populated with 9000 records, the installation was easy. Now I downloaded the 2009 version, it installs normally and shows no error, but when I add a component on the form is displayed a message "STRUCTURE FORMATEC invalid" and does not add any component. Someone has been there?

Best Regards
José Luiz
Top achievements
Rank 1
 answered on 10 Mar 2009
3 answers
313 views
Hi,

Can anyone tell me how can I get current month on client-side? I need to fire web service on OnCalendarViewChanged and pass current month. Something like:

<script type="text/javascript">
 
function ViewChanged(sender, eventArgs)
 {
   var month = getMonth();
  myWebServiceMethod(month); 

 }
<
/script>
<
telerik:RadCalendar ID="RadCalendar1" runat="server">
 
<ClientEvents OnCalendarViewChanged="ViewChanged" />
</
telerik:RadCalendar>


-Mantas-
Daniel
Telerik team
 answered on 10 Mar 2009
4 answers
218 views
Hi there!

I'm adding ScriptManager as dynamical like this.

    Protected Overloads Overrides Sub OnPreInit(ByVal e As EventArgs)  
        Dim myScriptManager As ScriptManager = ScriptManager.GetCurrent(Me)  
        If myScriptManager Is Nothing Then 
            myScriptManager = New ScriptManager()  
            myScriptManager.ID = "ScriptManager1" 
            Dim myControl As Control = Me.FindControl("Form1")  
            If myControl IsNot Nothing Then 
                myControl.Controls.AddAt(0, myScriptManager)  
            End If 
        End If 
        MyBase.OnPreInit(e)  
    End Sub 

And I get this error

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: The control with ID 'R1t' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.  
   at Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control)  
   at Telerik.Web.UI.RadDataBoundControl.get_ScriptManager()  
   at Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl()  
   at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e)  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   --- End of inner exception stack trace ---  
   at System.Web.UI.Page.HandleError(Exception e)  
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   at System.Web.UI.Page.ProcessRequest()  
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)  
   at System.Web.UI.Page.ProcessRequest(HttpContext context)  
   at ASP.t2_aspx.ProcessRequest(HttpContext context)  
   at clsHttpHandler.clsHttpHandlerController.ProcessRequest(HttpContext context) in N:\Inetpub\wwwroot\TB_Server_Dev\Common Projects\clsHttpHandler\clsHttpHandlerController.vb:line 32  
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   
 

I'm also using a handler to get cache and nicer url without querys. It's more code behind here...
    Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest  
        Dim url, pathTranslated, strPath As String 
        url = context.Items("url")  
        pathTranslated = context.Items("path")  
 
        strPath = HandleRequest(context, url, pathTranslated)  
        context.Handler = PageParser.GetCompiledPageInstance(url, strPath, context)  
        context.Handler.ProcessRequest(context)  
    End Sub 

In the web.config it looks like this
        <httpHandlers> 
            <remove verb="*" path="*.asmx"/>  
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/>  
      <add verb="*" path="tbimage.aspx" type="RenderUtils.HttpImageHandler, RenderUtils"/>  
      <add verb="*" path="*.aspx" type="clsHttpHandler.HttpXmlHandler, clsHttpHandler"/>  
    </httpHandlers> 

Do I need to use RadScriptManager? Something gets wrong when I add the context back. Any ideas here?

/Thanks
Philip Saltskog
Top achievements
Rank 2
 answered on 10 Mar 2009
3 answers
245 views
Hi,
I testing the RadAjaxManager version 2008.2.1001.35 and have the folow problem:
When I cause a Exception, this exception don't is showed for my client. If I turn off the AjaxManager, the error appear, if I turn on, the exception don't show.

Here a short sample of my test:
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            throw new Exception("Erro aqui"); 
        } 
    } 

Exception with RadAjaxManager enabled:
[Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Erro aqui' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 497"  data: no] 
http://localhost:2296/ScriptResource.axd?d=1GY4RXHYwBwgKWzh2AM6bUDkaYg5j8XpWH_s9iPzAysRQSXCRcmHBSLn7X8KRD15vb_BkPhMpI8wtG864MygjTVbihyBlzvoYm32GnlMsw81&t=ffffffff81a68333 
Line 6391 

Exception with
 Erro aqui 
Descrição: Ocorreu uma exceção não tratada durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código. 
 
Detalhes da Exceção: System.Exception: Erro aqui 
 
Erro de Origem: 
 
Linha 17:         protected void Button1_Click(object sender, EventArgs e) 
Linha 18:         { 
Linha 19:             throw new Exception("Erro aqui"); 
Linha 20:         } 
Linha 21:     } 
 
 
Arquivo de Origem: D:\Pessoal\MeusDocumentos\Visual Studio 2008\Projects\WebApplication2\WebApplication2\Default.aspx.cs    Linha: 19  


Iana Tsolova
Telerik team
 answered on 10 Mar 2009
2 answers
98 views
For reference, I am using version 2008.03.1125.35.

I have a row still in insert mode and am trying to set a value during a postback.  I have a text box with an affiliated button which launches a different window which allows users to select a value.  When that value is chosen, I want to modify the text box value of the grid in the resultant postback.

It looks like the values of the grid are entirely set by the postback data and databinding is skipped.

Does anyone have any ideas for how to do this?  Or point me at examples. 

I looked for quite awhile but did not find anything -- sorry if I missed something obvious. 

My thanks to anyone who looks at this.

-Kyle



Kyle
Top achievements
Rank 1
 answered on 10 Mar 2009
0 answers
104 views
I've downloaded the Sample Scheduler with the Demo and I noticed that they populated the scheduler with an xml document that was in the App_Data Folder of the Solution and worked fine.  I tried to populate the scheduler differently by dynamically creating an Xml document and have it fed into the XmlSchedulerProvider as a Parameter and it errored out looing for a file in the Document and settings folder of my machine.
Arnold
Top achievements
Rank 1
 asked on 10 Mar 2009
6 answers
523 views
We have a 4 layer hierarchy RADGrid (1 - MasterTableView and 3 GridTableViews).  On each layer there are 4 asp:LinkButtons(Divisions, Sites, Accounts, and Fiscal Year).  We want to expand or collapse the RADGrid by clicking on either the ExpandCollapseColumn or the asp:LinkButton.  For example we want the user to be able to click (or double-click) on the Division or the <ExpandCollapseColumn> (MasterTableView) and they would see the Sites (The first GridTableView).  If they click it again it should collapse the Sites.  We currently handle the OnDetailTableDataBind,  OnItemCommand,  and OnNeedDataSource events. We are using advanced data-binding methods (NeedDataSource and DetailTableDataBind) and these are working correctly.  We are able to get the DataKeyValue in the ItemCommand.  Can anyone provide some assistance on how to do this?
Darrell
Top achievements
Rank 1
 answered on 10 Mar 2009
0 answers
110 views
can you give a suggestion. i need a textbox with color sql-code.
so it display in textbox like this
select 

how can i do this? example?

also if it possible i need to spell check sql code
k
Top achievements
Rank 1
 asked on 10 Mar 2009
2 answers
131 views

Hi,

I was wondering if anybody has experience the following problem or something similar:
I running a moss2007 with “Danish language” and the full-featured RadEditorSharePoint  5.3.2.0, I wanted to have Danish language in the RadEditor so I translated the App_GlobalResources files and copied them to “…
wss\VirtualDirectories\80\App_GlobalResources”. Then I added “<property name="Language">da-DK</property>” in to my ConfigFile.xml and the ListConfigFile.xml in “…Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources”.

Now the RadEditor field control shows the correct Danish language translations, but when I add a RadEditor Web Part it only translates some of the controls to Danish and the rest is in English.

I also tried to change the language to German and French with the same result.

Any ideas what is wrong.

Araz
Top achievements
Rank 1
 answered on 10 Mar 2009
1 answer
134 views
Hi,
In case the format of the Calendar embedded in the Scheduler is annoying anyone else (basically, the images for selecting and mouseover were too big for the day slots), just add this to the head of your page :

<style type="text/css">  
        .RadCalendar_Web20 .rcMain .rcRow a   
        {  
            line-height:34px !important;  
        }  
</style> 
Serrin
Top achievements
Rank 1
 answered on 10 Mar 2009
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?