Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
170 views
Hello Telerik-Team,

I have some problems with the radupload:

First:
Please tell me, how to increase the width of the browse-button.

Second:
I have set the tabindex of the Rad upload Control with the property TabIndex="1", but it is not working.

I hope someone can help me
Peter Filipov
Telerik team
 answered on 29 Nov 2011
1 answer
147 views
Hi,

I'm struggling to put together what seems like it should be quite simple -

Enabling multiplefileselection on async upload and instead of simply seeing a list of 
files, seeing thumbnails for the newly-uploaded files instead.

Would anyone be able to provide me with some sample code to do this ?

Peter Filipov
Telerik team
 answered on 29 Nov 2011
2 answers
46 views
Please have a look at this jing video.

It shows 2 passes through the process of uploading documents in my app. The first pass is in IE8 native mode, the 2nd in Compatibility mode.

The page you can see is in a modal RadWindow. The page contains a Multipage control and the RadAsyncUpload control is on one of those tabs.

You will see that when more than a screenful of files is uploaded, the list tramples all over the page.

This, obviously, happens in IE7 too.

Whilst I'd be happy if the Gods made it so IE7 never happened, I'm instructed to ask if there is a way of fixing the behaviour of RadAsyncUpload in this environment.

--
Stuart
Peter Filipov
Telerik team
 answered on 29 Nov 2011
4 answers
699 views
I'm using the RadSocialShare control on a product details page in an eCommerce app and it was working fine for most products, but a few would not display the buttons.  In Chrome's javascript console I saw it was throwing the uncaught syntaxerror due to an apostrophe in the TitleToShare property's value.  As soon as I removed the apostrophe it started working....hope this helps someone else!
bojanv
Top achievements
Rank 2
 answered on 29 Nov 2011
5 answers
227 views
<script type="text/javascript">
    function focusItem(panelbar, args) {
        var item = args.get_item();
        if (item.get_level() == 0)
            item.focusFirstChild();
    }
 </script>
 
    <telerik:RadPanelBar ID="PostsRadPanelBar" runat="server" Skin="Web20"
        Font-Size="16px"  onclientitemfocus="focusItem"
        ExpandMode="SingleExpandedItem" >
        <Items>
            <telerik:RadPanelItem Text="Office" Expanded="True">
                <Items>
                    <telerik:RadPanelItem Text="Office Detail">
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Addresses">
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Communications">
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Site Specifics">
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
 
 
            <telerik:RadPanelItem Text="Positions">
                <Items>
                    <telerik:RadPanelItem Text="Position Detail">
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Assignment Detail (FSO)">
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
 
 
            <telerik:RadPanelItem Text="Products & Services">
                <Items>
                    <telerik:RadPanelItem Text="Products & Services Information">
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
 
 
            <telerik:RadPanelItem Text="Residences">
                <Items>
                    <telerik:RadPanelItem Text="Residence Information">
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
 
 
            <telerik:RadPanelItem Text="Vehicles">
                <Items>
                    <telerik:RadPanelItem Text="Vehicle Detail">
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Purchase & Disposition">
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
 
 
            <telerik:RadPanelItem Text="Security">
                <Items>
                    <telerik:RadPanelItem Text="Security Information">
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
I am implementing my first panelbar, simple with two levels only, at least so far. My goal is that:
(a) Page loads with the first top level item open and other items closed. (works)
(b) Page loads with the first second level item under the first top level item with focus. (doesn't work)
(c) When a second-level item is selected (including at load) Javascript is called in which I can implement an action (haven't worked on this yet)
(d) When a top level item is selected/expanded, the first second level item under that item is focused/selected (that is, I want it to highlight and also to implement an action). (this doesn't work, and is where I am mainly stuck now).

I have tried to implement the focus/highlight part of (d) through a code sample I found in the Telerik documentation using the onclientitemfocus event, and I get the following error:

htmlfile:  Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept focus.


I get this same error if I move the JS to onclientitemexpand event handler. And I get it if I set the panel bar so all the top level items are expanded.

What am I doing wrong? I have attached my code sample.

(Also, since some kind person who knows how this works is probably going to look at this, what do I need to do to get the font-size setting to make any difference? It looks like the font-size setting is ignored. Do I actually have to modify some skin class?)

Thank you very much.




Bozhidar
Telerik team
 answered on 29 Nov 2011
6 answers
185 views
Hi,

I have got a custom Appointment class (JobAppointment), which works off a database, has recurrence support and works well with the windows version of the RadScheduler.

Now, we want to provide the same functionality in the web version. We want to keep the database structure and content common between the two versions, but the Appontment class can change between the two versions.

We are currently able to work with Appointments in the web version, but the Appointments with recurrence rules are no different to the normal appointments. Appointment occurences for an appointment with recurrence are currently not being shown in the scheduler.

In cases like this, it is perhaps best to demonstrate with an example.

Database Fields/Appointment Class Properties:
  • ID: 79
  • DateStart: 5/10/2011 10:00:00 AM
  • DateEnd: 5/10/2011 11:00:00 AM
  • Description: Email tagging dept filter
  • Comment: This should default to a department specified by the user in the options.
  • RecurrenceRule: FREQ=DAILY;COUNT=5
  • ParentID: 0

The Scheduler is set up as follows:

RadScheduler1.DataKeyField = "ID"
RadScheduler1.DataStartField = "DateStart"
RadScheduler1.DataEndField = "DateEnd"
RadScheduler1.DataDescriptionField = "Comment"
RadScheduler1.DataSubjectField = "Description"
RadScheduler1.DataRecurrenceField = "RecurrenceRule"
RadScheduler1.DataRecurrenceParentKeyField = "ParentID"
 
RadScheduler1.DataSource = mColAppointments
RadScheduler1.DataBind()

Note that mColAppointments is the List(Of JobAppointment) - a collection of Appointment objects.

There are two Issues I can see with the above:

  1. The recurrence rule is in the format used by the windows version. This is probably not being interpreted correctly by the web version. Therefore, I do not see the 5 occurrences from this appointment.
  2. The ID and ParentID are long fields, therefore absence of a parent ID is represented by 0. Unlike the windows version, the web version is treating as if all appointments are appointment occurences. Therefore it displays the "Edit this occurence or Edit the series" dialog.

In both cases, I think the solutiion might lie in doing some sort of translation when reading and writing the recurrence rule and parent id to/from the database. But I am not sure what exactly is required here.

PS - I have not submitted a support ticket as I thought this may be useful to others using this forum.

Any help much appreciated.
Regards.

Plamen
Telerik team
 answered on 29 Nov 2011
6 answers
119 views
Hello everyone,

I have a bound radgrid with a button and I would like to create another radgrid imediately underneath the clicked button row.

Please see below image links to understand what I'm trying to achive.

Bound radgrid -> http://www.freeimagehosting.net/8a57a
Bound radgrid with another radgrid underneath clicked row -> http://www.freeimagehosting.net/6a981

Please let me know if this is possible to achive and if so, some directions on what to use.

Thanks in advance

Joao

Joao
Top achievements
Rank 1
 answered on 29 Nov 2011
2 answers
80 views
How do you use the CustomValidator and RadComboBox together WHEN LOADONDEMAND is enabled??? Because If user wants to supply a value freehand by typing it in, I have to 1.make sure it is not left on "--- PLEASE SELECT---"  2. check input value against a regex, 2. insert the value into the db if not already there. Please help!
Ivana
Telerik team
 answered on 29 Nov 2011
7 answers
801 views
Hi there,

I'm trying to use a custom validator to validate a RadComboBox (to ensure the first item is not selected). I have followed an example on the ASP.NET controls that basically said to do this:

function validateGroup(events, args) {  
 
    var combo = <%=RadComboBoxGroupListing.ClientID%>;  
      
    if(combo.GetText() == combo.Items(0).Text)  
    {  
        args.IsValid = true;  
    }  
    else 
    {  
        args.IsValid = false;  
    }         
 

However it seems as if the GetText method is not defined anymore. From my reading on the AJAX controls it says it is now get_text, but that doesn't work either.

How can I use a custom validator with client-side validation to ensure that the first item of a RadComboBox is not selected?

Thanks!
Ivana
Telerik team
 answered on 29 Nov 2011
10 answers
237 views
Hi Telerik Team,

Please, a little help...

When I run my application in the first time, the image don´t appears centralized. If I transfer one item to listbox and delete, the image is centralized.

Some tip?

Thanks, best

Daniel

<telerik:RadListBox ID="RadListBox2" runat="server" Skin="Sunset" AllowReorder="true"
    EnableDragAndDrop="true" SelectionMode="Multiple" Culture="pt-BR" Height="200px" Width="250px"
    EmptyMessage="Selecione a(s) Empresa(s)">
    <EmptyMessageTemplate>
       <img src="images\interrogacao_01.gif" alt="Nenhuma Empresa selecionada" style="vertical-align:middle;">
    </EmptyMessageTemplate>
</telerik:RadListBox>
Peter Filipov
Telerik team
 answered on 29 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?