Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I have looking everywhere for a simple step by step method for enabling basic grouping in a grid either design or code. This link (http://www.telerik.com/help/aspnet-ajax/grid-design-grouping.html) shows fields for selection, I do not see the fields for selection. I have attached a screen print of what I can see. Thanks in advance.
Kostadin
Telerik team
 answered on 27 Jan 2015
2 answers
200 views
Hello team,

Avtar this side from Percept Software Systems

I using Rad scheduler and testing view on IPAD. I found two issues please find attached snapshot.
1) First issue is RadSchedulerContextMenu is opening only on first column (Any row's first column) click
2) Column alignment is not correct. Headers and content columns have mismatch

Thanks & Regards,
Avtar singh
Dimitar
Telerik team
 answered on 27 Jan 2015
12 answers
712 views
I tried to set up Radcombobox with "check all" option which as  the demo did in the below link:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx


However, even I set EnableCheckAllItemsCheckBox="true" , the check all option doesn't show at all.  Finally I copied the exact code  from the demo to my test page, the "check all" option still doesn't appear. another interesting thing is that I can't find the EnableCheckAllItemsCheckBox property in the properties window of visual studio. 


Anything I did wrong? plus, how can I get " x item checked" information working in the Radcombobox if the concatenated string length of options being selected is longer than the width of combobox?  as the pic I attached in the image.
 

any suggestions I would be really appreciated. 

Thanks. 
Boyan Dimitrov
Telerik team
 answered on 27 Jan 2015
7 answers
1.8K+ views
Hi,

I have managed to show only month and year using RadDatePicker.
<telerik:RadDatePicker ID="radEndDatePicker" runat="server" Skin="Hay" Width="208px" AutoPostBack="true" OnSelectedDateChanged="radEndDatePicker_SelectedDateChanged">
                                            <DateInput ID="DateInput2" DateFormat="MMMM yyyy" runat="server" Enabled="true">
                                            </DateInput>
                                            <Calendar ID="Calendar2" runat="server">
                                                <FastNavigationSettings TodayButtonCaption="Current Month" OkButtonCaption="     OK    "/>
                                            </Calendar>
                                            <ClientEvents OnDateSelected="OnEndDateSelected" />
                                        </telerik:RadDatePicker>

Please help on following items:
1. I need a way to rearrange the months.
Currently months are rendered as shown in the attachment here. But I need to order months to be shown as :
Jan         Jul
Feb        Aug
Mar        Sep
Apr        Oct
May       Nov
Jun        Dec

I tried Orientation property of Calender but it didnt work.

2. I need to hide backward and forward buttons shown for year.
3. All three buttons showing Current Month, OK and Cancel are different, how can I adjust the height to make it all look aligned?
Please help asap.

Thanks.
Maria Ilieva
Telerik team
 answered on 27 Jan 2015
1 answer
247 views
Hi 

I have autogenerated columns showing dates as radgrid columns for a particular month 

eg 

                    01-Jan-15     02-Jan-15   03-Jan-15
xyz
abc
123

I should be able to click on the dates and refresh the data

Please help 

Thanks 
Raja
Eyup
Telerik team
 answered on 27 Jan 2015
2 answers
158 views
Hello,

I am having problem with radgrid on ie 11 and firefox 35.0. I had a radgrid that allowed user to double click and it will open radwindow. It is working fine on chrome. But nothing happened when user double click on row in ie and firefox. I found the below javascript error when I tried to debug.

SCRIPT28: Out of stack space
File: Telerik.Web.UI.WebResource.axd, Line: 11584, Column: 1

SCRIPT28: Out of stack space
File: Telerik.Web.UI.WebResource.axd, Line: 11580, Column: 52

But  it is  working fine when I use compatibility view on ie. To open radwindow user can also click once on row and click edit button outside of radgrid. This function is working fine. Only double click on row is not working. Kindly help me on this issues. 

I am using telerik version 2014.3.1209.40.

Thank you.
Best regards,
Ei Wai
Ei Wai
Top achievements
Rank 1
 answered on 27 Jan 2015
3 answers
527 views
Hi,

I am using the AjaxControlToolkit AutoCompleteExtender inside an ASP.NET AJAX RadGrid.  It works fine with the following code:

<script type="text/javascript" language="javascript">
    function GetDogID(source, eventArgs) {
        var DogIDTxt = document.getElementById('<%=DogIDTxt.ClientID%>');
        DogIDTxt.value = eventArgs.get_value();
    }
</script>
<telerik:GridTemplateColumn DataField="trialCode" HeaderText="trialCode"
            SortExpression="trialCode" UniqueName="trialCode">
            <EditItemTemplate>
                <asp:TextBox ID="trialCodeTextBox" runat="server" autocomplete="off" onKeyPress="KeyPress()"></asp:TextBox>
 <cc1:AutoCompleteExtender ID="trialCodeTextBox_AutoCompleteExtender" runat="server"
            DelimiterCharacters="" Enabled="True"
            ServicePath="/assets/webservice/DogList.asmx" TargetControlID="trialCodeTextBox"
            ServiceMethod="GetCompletionList" MinimumPrefixLength="2"
            CompletionSetCount="20" CompletionInterval="0" OnClientItemSelected="GetDogID"
        >
        </cc1:AutoCompleteExtender>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="trialCodeLabel" runat="server" Text='<%# Eval("trialCode") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>

I use a web service to pull a list of values from a database and all is well.

However...

I am using the OnClientItemSelected method (relatively new to AutoCompleteExtender so that I am able to pull back a value pair from the web service: 1.) the text value (which I'm displaying as 'autocomplete' in the RadGrid textbox while in edit mode and 2.) a primary key ID value of the item that i'm placing on a label control somewhere else on the page for now while i'm trying to figure out how to get it inside the RadGrid for use in updating.

What I need to do is be able to submit the update (or add a new record) from the RadGrid and use the primary key value on the page and NOT the text value pulled from the autocomplete.

The user needs to be able to select from a 'friendly' text-based list of about 3,000 items (hence, the need for autocomplete).  Then, once selected, the primary key (from the value pair that was returned from the web service) needs to be the value that the RadGrid inserts when making the update---not the text value as there could be duplicates.

Is this possible? 

Chris

Here's the web service i'm using:

<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<System.Web.Script.Services.ScriptService()> _
Public Class DogList
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()
        Dim connString As String = ConfigurationManager.AppSettings("DataConnect2")
        Dim conn As New SqlConnection(connString)
        Dim mycommand As New SqlCommand
        Dim rs As SqlDataReader
        Dim items As New List(Of String)

        'we add the prefixText into our SQL query to retrieve the options
        'for our autocomplete
        Dim strsql As String = "SELECT registrationNumber, dogName + ' - #' + registrationNumber As 'TheDog' FROM Dogs WHERE dogName LIKE '" & Replace(prefixText, "'", "''") & "%' ORDER BY dogName ASC"
        mycommand.Connection = conn
        mycommand.CommandText = strsql

        Try
            conn.Open()
            rs = mycommand.ExecuteReader
            If rs.HasRows Then

                'we loop through the results adding each result to our list of
                'items
                Do While rs.Read
                    Dim thevalues As String = AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(rs("TheDog").ToString(), rs("registrationNumber").ToString())
                    items.Add(thevalues)
                Loop

            End If

        Catch ex As Exception
            items.Add(ex.ToString)
            ' this will show the exception in the autocomplete list if
            ' there are any errors
        Finally
            mycommand.Dispose()
            conn.Close()
            conn.Dispose()

        End Try
        Return items.ToArray ' we return our list of items as an array

    End Function




Suzy
Top achievements
Rank 2
 answered on 27 Jan 2015
3 answers
615 views
I am trying to use a control which will only allow users to select the Month and Year. BUT, I need to also not allow them to choose future dates based on todays date. I  am working in vb.net and had found this example, but cannot get it to work in vb. http://birenpanigrahi.blogspot.com/2013/11/radmonthyearpicker-validation-restrict.html

Any help would be greatly appreciated. I have also tried to use a RadDatePicker which I can restrict the future date based on todays date as the date changes, but I do not want the days to display for selection. If there is a way to only allow RadDatePicker to show Month and Year in the popup instead of Day, Months and Years, I would take that as well.

Thank you.
Vasil
Telerik team
 answered on 27 Jan 2015
2 answers
250 views
I'm trying to set the background color of the selected text area (ie: displayed when the drop down is closed) on the RadDropDownTree programmatically.

The screen has multiple RadDropDownTree controls, each of which the client can configure to be mandatory or optional, and when mandatory the client can also select for these to be displayed in a different color.   

Setting the dropdowntree.BackColor is not working (setting dropdowntree.EmbeddedTree.BackColor sets the drop down background which is not what we want).

I can set the area I need the background color applied to in the css with
.RadDropDownTree_WebBlue .rddtInner .rddtFakeInput
{
    background-image: none !important;
    background-color: White;
}

but need to do this on a control-by-control basis from the code behind.

Can you advise how I can go about this?
Nigel
Top achievements
Rank 1
 answered on 26 Jan 2015
4 answers
251 views
How remove the default toolbar in telerik:GridHTMLEditorColumn?
I just want to use my own buttons I create server side....
Kjell
Top achievements
Rank 1
Iron
Iron
 answered on 26 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
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
Bronze
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?