Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
409 views
Hello,

I am listing items with checkboxes and I would like to use the strikethrough on the text of an item when the checkbox is checked. Kind of like a ToDo list and marking them completed. I also need to change it back when unchecking it. And I want to load the data that way. I guess I can always loop through and check to mark them and apply the css if needed.

Would this be easier to do with a gridview control also especially since I am data binding it?

Thanks,
Warren


Magdalena
Telerik team
 answered on 21 Apr 2014
6 answers
140 views

Are there any plans to have Typescript declarations for the various client side controls of the ASP.Net AJAX product? I'm developing a project in typescript and using the client APIs of the various controls a lot (TreeView, Menu's, etc) and having declarations would greatly help.


Thanks!

Guy

Rumen
Telerik team
 answered on 21 Apr 2014
2 answers
381 views

Hi,

I want to have a checkbox that binds to a field which stores 'Y' or 'N' instead of boolean value.  Is there an event which I can put the codes to alter true/false back to 'Y'/'N' before saving back to the database? Is this even possible?

In the ItemTemplate I am using label to display the content of the field, so it has no problem displaying. In the EditItemTemplate, here's what I'm doing:

aspx:
<asp:CheckBox runat="server" Text="Vendor" ID="ThirdPartyVendorCheckbox" />
 <asp:HiddenField runat="server" ID="hiddenThirdPartyVendor" Value='<%# Eval("thirdparty_vendor") %>' />

Code-Behind:

protected void RadListView1_ItemDataBound(object sender, RadListViewItemEventArgs e)
 
{
 
    if (e.Item is RadListViewEditableItem && e.Item.IsInEditMode)
 
    {
 
        CheckBox chkbox = e.Item.FindControl("ThirdPartyVendorCheckbox") as CheckBox;
 
        HiddenField hf = e.Item.FindControl("hiddenThirdPartyVendor") as HiddenField;
 
        string txtVal = hf.Value;
 
        if (txtVal != "Y")
 
            chkbox.Checked = true;
 
        else
 
            chkbox.Checked = false;
 
    }
 
}


Thank you,

Helen

Eyup
Telerik team
 answered on 21 Apr 2014
14 answers
3.4K+ views
I hate to waste your time because I know you must have answered this question before.  I did find one answer to it in the forums, but the example did not work on my system, so..........

I would like to display "Yes" or "No" for a SQL Server Boolean column in the RadGrid instead of a checkbox (your checkboxes in the grid are so "faded" that it is very difficult to tell if they are checked or not) or instead of "True"/"False".

I would prefer to write the code for this in the VB code behind page if possible. If not, I can add it to the .aspx page if needed.

The Boolean field is named "TextActive", although it really doesn't matter.

Thanks in advance for your assistance.

Lynn
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2014
2 answers
118 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
423 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
504 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
164 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.5K+ 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
692 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?