Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Hi Telerik Team,

Problem:

We have purchased license your latest asp.net Ajax version for 4.5.We are in process of migrating our apps from our old classic Rad
controls for 2.0 to latest version of UI ASP.Net AJAX 4.5. On deep diving into your latest framework and architectural changes, found there are far too many
breaking changes and requires painful effort to migrate. It isn’t straightforward as mentioned in some your forums.  The upgrade wizard doesn’t help. The some of the control classes, properties,methods names have drastically changed from the old version to the new one.Moreover, not all changes have been documented. The upgrade process is risky and time consuming. But we need to go for the upgrade as we migrating our project to dotnet 4.5 framework.

Expectation from support team:

We need continuous technical support during the upgrade process in next 1 month. We have two projects to be converted. Will be posting
snippets of code to give us direction on upgrade if appropriate documentation not found in telerik site for controls/classes we are using.

Current status:

On referencing Radcontrols dlls to new “telerik.web.ui” and changing the namespaces from “telerik.webcontrols” to “telerik.web.ui” we got 74 errors
during build. After fixing some of the issues referring to doc on backward compatibility, the Errors are now reduced to 46.

To start with, posting few code snippets where we get errors:

Error 1: “Member not found” for each property within the “with”  stmnt

RadRotator = New RadRotator

          With _RadRotator
                .ID = "R"
                .FrameTemplate = Me.CreateFrameTemplate()
                .FrameTimeout = 3000
                .Height =System.Web.UI.WebControls.Unit.Pixel(Me.FrameHeight)
                .PauseOnMouseOver = True
                .TransitionType = RadRotator.RotatorTransitionType.Slideshow
                .TransitionEffect =RadRotator.RotatorTransitionEffect.Fade
                .UseRandomSlide = False
                .UseSmoothScroll = True

Error 2:  “RadToolbarToggleButton” is not defined. “b.buttonimage” is not defined

Code:
Dim b As RadToolbarButton
       If ButtonGroup Is Nothing Then
                b = New RadToolBarButton
       Else
                b = New RadToolbarToggleButton
        With CType(b, RadToolbarToggleButton)
                    .ButtonGroup = ButtonGroup
                    .Toggled = Toggled
        End With

       End If

            b.CommandName = CommandName
            b.ButtonImage = ButtonImage
            b.ToolTip = ToolTip

 We have to deliver the upgrade version to customer in one month time. A prompt help will be greatly appreciated from telerik team.

Thank you,

Kiesha.

 
Keisha
Top achievements
Rank 1
 answered on 21 Apr 2014
3 answers
409 views
Hello,
I have a RadGridwhich contains a GridButtonColumn named "Update" and a button under the RadGrid wich is invisible.
I want to set the button visible after click to the GridButtonColumn "Update".

code Asp:

<div id="lprulesdetails-container">
      <telerik:RadGrid ID="RadGridLPRulesDetails" runat="server" AllowPaging="True" AllowFilteringByColumn="true"
            AllowAutomaticDeletes="true" AllowAutomaticUpdates="true" PageSize="5">
            <MasterTableView AutoGenerateColumns="false">
                <Columns>
                    ...................
                    <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Update" 
                        Text="Update" UniqueName="Update" ItemStyle-Width="100px">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
            <PagerStyle Mode="NumericPages"></PagerStyle>
        </telerik:RadGrid>
<div id="lprulescontainer">
        <div id="lprulesaddcontainer" runat="server">
            <div id="grid-action">
                <div class="action-operation-left">
                    <telerik:RadButton ID="RadButtonCancelAdding" runat="server" Text="Cancel" Visible="false">
                        <Icon PrimaryIconCssClass="rbCancel" PrimaryIconLeft="4" PrimaryIconTop="4" />
                    </telerik:RadButton>
                </div>
          ........................
</div>

Code VB.net

Private Sub RadGridLPRulesDetails_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridLPRulesDetails.ItemCommand
       If e.CommandName = "Update" Then
            RadButtonCancelAdding.Visible = True
        End If
    End Sub


Where is the matter?

Thanks :)

Princy
Top achievements
Rank 2
 answered on 21 Apr 2014
9 answers
494 views
Was wondering if there was something i hadn't implemented properly perhaps.

I've got a radcombobox populated with countries. I have markfirstmatch set to true, and allowcustomtext set to false, and i want them to chose an item in the list.

This works fine, however, its not as efficient as perhaps i would like it to be. For example, United Arab Emirates, United States , and United Kingdom. I start typing United, but after that it jumps straight to the first one(united arab emirates) in the list with united, and then won't allow me to add a space and continue typing. I'd like to be able to type in the full country if i desire.
Plamen
Telerik team
 answered on 21 Apr 2014
3 answers
157 views
I want the first column in the grid (first cell of each row) to have the same style as the column headers. Since I allow the user to change themes/skins I don't want a hard-coded/static style... I want to reference the current skins CSS and apply the Header style to the first cell in each row. Is this possible? (makes the grid look like it has row headers but not really) Thanks in advance.
Mike
Top achievements
Rank 1
 answered on 21 Apr 2014
13 answers
1.4K+ views
I have a simple rad ComboBox with a value field and a text field.  I bind the combobox to a data source and this works fine.  Now I  want to highlight the selectedvalue.  But I cannot get this to work.  Here is my code:

<

Telerik:radComboBox id="cbPolicyAccountValueSource"

DataTextField="value"

DataValueField="key"

runat="server">

</Telerik:radComboBox>

cbPolicyAccountValueSource.DataSource = LifePolicyAccountValue.PolicyAccountValueSources

cbPolicyAccountValueSource.DataBind()


Dim

PolicyAccountValueSourceEnumId As Object = DataBinder.Eval(DataItem, "PolicyAccountValueSourceEnumId")


cbPolicyAccountValueSource.SelectedValue =

CInt(PolicyAccountValueSourceEnumId)


If I run in debug mode, the above field (PolicyAccountValueSourceEnumId) has the selected value I want the combobox to be selected.  But it is not.  No item is selected.

What am I doing wrong?

Thanks,
Bob

Shinu
Top achievements
Rank 2
 answered on 21 Apr 2014
1 answer
684 views
Hi all,

I am trying to use the component AutoCompleteBox with a local Webservice. But I got an issue.

So I run Fiddler webdebug, and I can see an error 500, in the detail, I saw:

POST http://localhost:49257/agent/Ws/_WS_SearchCity.asmx/GetCompanyNames HTTP/1.1
Accept: */*
X-Requested-With: XMLHttpRequest
Content-Type: application/json; charset=utf-8
Referer: http://localhost:49257/agent/AcquereurAction.aspx?aID=8&sID=2c0d3ed4-4d34-4ce0-b437-70cf387c56e2
Accept-Language: fr-FR
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Host: localhost:49257
Content-Length: 122
DNT: 1
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=pdwak0ep3ear4yj3nzsvv2ae

{"context":{"Text":"puteaux","MaxResultCount":-1,"IsCaseSensitive":false,"ClientData":"ClientData_Passed_To_The_Service"}}



And the detail is:

Server Error in '/agent' Application.Unknown web method GetCompanyNames.
Parameter name: methodName 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.ArgumentException: Unknown web method GetCompanyNames.
Parameter name: methodName

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
Stack Trace: 

[ArgumentException: Unknown web method GetCompanyNames.
Parameter name: methodName]
System.Web.Script.Services.WebServiceData.GetMethodData(String methodName) +216
System.Web.Script.Services.RestHandler.CreateHandler(WebServiceData webServiceData, String methodName) +63
System.Web.Script.Services.RestHandler.CreateHandler(HttpContext context) +298
System.Web.Script.Services.RestHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +185
System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +119
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +226
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +145
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155






However, my code folow this sample


http://www.telerik.com/help/aspnet-ajax/autocompletebox-databinding-webservice.html













Michel
Top achievements
Rank 1
 answered on 19 Apr 2014
3 answers
117 views
Hi,

I need to emulate the expand node by lod on demand through js or vb.net code.

Could you help me?


Thanks,
Marcos
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
132 views
If I have multiple Maximized radwindows opened, it seems setActive no longer works.  Is there a way to make the desired maximized rad window on top via client API?

thank you!
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
292 views
Is there any way for validating the filename on clientside?

I need to upload an specific filename, so If the filename isnt the one is required the upload process must stop, avoiding the bandwith consume.

How can I do this?

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
1 answer
121 views
I have constructed a treeview with treenode.
I have set navigateURL of treenode as follows :
node.navigateURL = string.Format(@"javascript:alert('hello');");

When I click on treenode, the javascript in NavigateURL is executed twice. Il displays the alert 2 times.
Normally, it should display the alert only 1 time.

In my project, I have set navigateURL to load a page. Since it loads the same page 2 times, I have performance issue.
Can u tell me why the navigateURL is called twice ?
What to do so that my treenode calls navigateURL only once?
Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?