Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
54 views
I'm trying to write my first web app using RadGrids.  

As far as design is concerned, the grid data source is set in the NeedDataSource event.  The editing of records is done in a FormTemplate popup that contains conventional ASP.Net DropDownlists.  The DropDowns are bound in the ItemCreated event.

All of this works so far.  I can both add and edit records.  

First of all, is the above conventional design practice?  

My problem is that I'm trying to trigger a shift to Add mode when initially loading the page, to immediately display the template popup.  My first test using PreRender and RadGrid1.MasterTableView.IsItemInserted = true went well, but that was with a simple screen with default Popup.  When I try to do this anywhere in the code with the above screen, I get crashes related to the dropdowns no matter where I put the IsItemInserted.

Suggestions?
Boris
Top achievements
Rank 1
 answered on 01 Nov 2012
3 answers
239 views
Hi,

I'm trying to use the RadFilter control with entities from Entity Framework that have Navigation Properties (collections). The RadFilter works very well on 'normal' Properties (string, int, date, etc.) but I couldn't find a solution for 'enumerable' Properties (list, array, etc.).

For example:
- Entity 'Article' has a navigation property 'Items'
- Entity 'Item' has a property 'Name'

How can i use the RadFilter control to find all 'Articles' with 'Items' that have the property 'Name' set to "whatever"?

Doe's anybody know a solution how to filter these kind of properties?

Regards,
Martin
Andrey
Telerik team
 answered on 01 Nov 2012
1 answer
82 views
I'm trying to install a RadUpload component in the FormTemplate of a RadGrid.  I'm looking at the instructions in http://www.telerik.com/help/aspnet-ajax/upload-getting-started.html.

I see what looks like a discrepancy between steps 1 and 4. 

The image in Step one shows an httpModules item = <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> 
Step 4 states that the item should be <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />

Why the extra part?  (Come to think of it, there's the same feature in step 6.)

Also, I think I have it installed well enough to test (at least as far as getting a file into the default Files folder.)  Still I wonder if I have it exact.  When I have the FormTemplate open for editing, the RadLoad control is the one thing I cannot directly select on the screen.  (I can select it in the Properties dropdown.)  Is this normal?
Plamen
Telerik team
 answered on 01 Nov 2012
4 answers
135 views
I'm well aware that the combobox has some fairly complicated capabilities.  But for now I just don't have the time to explore them.

What do I have to do to get the dropdown list to behave normally?  i.e.  A single vertical list of choices?
Boris
Top achievements
Rank 1
 answered on 01 Nov 2012
1 answer
49 views
my grid

 <EditItemTemplate>
                                        <telerik:RadDatePicker  ID="dtTravelDate" DateInput-DateFormat="MM/dd/yyyy" DateInput-DisplayDateFormat="MM/dd/yyyy"
                                            DbSelectedDate='<%# Eval("Travel_Date") %>' runat="server" CssClass="ClaimDateControl"
                                            Width="100px">
                                        </telerik:RadDatePicker>
                                      <asp:RequiredFieldValidator ID="reqTravelDate" runat="server" ControlToValidate="dtTravelDate" EnableClientScript="true"
                                            ErrorMessage="*" ValidationGroup="Test"> </asp:RequiredFieldValidator>
                                    </EditItemTemplate>

and my itembound event code as follows

 

 if (e.Item is GridEditableItem && e.Item.IsInEditMode)
                    {

                        if (e.Item is GridEditFormInsertItem)
                        {
                            ((e.Item as GridEditFormItem).FindControl("PerformInsertButton") as LinkButton).ValidationGroup = "Test";
                        }
                        else
                        {
                            ((e.Item as GridEditFormItem).FindControl("UpdateButton") as LinkButton).ValidationGroup = "Test";
                        }
                    }

my issues is every time before validate control fired griditemcommand event ...



please please hepl me

thanks in advance

Eyup
Telerik team
 answered on 01 Nov 2012
1 answer
106 views
Dear,


Thanks for the help already, however I have a problem that also detect even be visible on the site own Telerik.


As the explanation of the case is kinda complicated, I will try to summarize and detail.


The control Calendars (RadDatePicker and RadTimeDatePicker) do not accept the displayed day on Sunday of Week 43 of the calendar, or any day that is existing in the sunday column in the third row of the calendar is not accepted.


Strangely components, subtract one day from the calendar, if that date is requested. For example the current anoa, the Sunday of the week 43 October is the day 21 (10/21/2012), but when you select that date The components alter the same to day 10.20.2012, even if the day is entered event occurs.


After some testing, I noticed that this only occurs in October, and only in week 43 and Sunday, regardless of the year.


Ask it to be seen, and if the pages can be observed:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx


Best Regards
Angel Petrov
Telerik team
 answered on 01 Nov 2012
10 answers
205 views

Is there any way to create an AppointmentCollection and manually fill with Appointment objects, along the lines of:

Create new AppointmentCollection
Grab Appointments from database
Loop through, add new Appointment objects to AppointmentCollection
Call AppointmentCollection.GetAppointmentsInRange

Currently I am doing this, but there must be an easier way to do without having to use a RadScheduler.

                // Check for a conflict                  
                var appointments = dc.Appointments.Select(b => b.IsCancelled == false);  
                RadScheduler scheduler = new RadScheduler();  
                scheduler.DataKeyField = "AppointmentID";  
                scheduler.DataSubjectField = "Subject";  
                scheduler.DataStartField = "Start";  
                scheduler.DataEndField = "End";  
                scheduler.DataRecurrenceField = "RecurrenceRule";  
                scheduler.DataRecurrenceParentKeyField = "RecurrenceParentID";  
                scheduler.DataSource = appointments;  
                scheduler.DataBind();  
 
                return scheduler.Appointments.GetAppointmentsInRange(startTime, endTime).Count == 0; 


Cheers,
Mike

Plamen
Telerik team
 answered on 01 Nov 2012
1 answer
178 views
I'm exporting to excel using biff format and I need to implement the below.
1) How do I group ceratin column names and assign a group name to them. This group header name needs to span the columns grouped and appear at the top. Please see my sample excel sheet attached.

2) how do I specify different colors for different columns in the exported excel sheet while exporting to excel in radgrid. I do not want to use html formatting due to excel warning message.

Please help with code.
Kostadin
Telerik team
 answered on 01 Nov 2012
1 answer
195 views
Hi,

I've a radgrid and I export the contents to PDf.

1) How do I auto-fit my page height and page width to the data. I do not want to hard code values for page height and page width in my aspx. PDF need to automatically adjust according to the data in the grid.

2) How do I automatically open up a pdf with "75%" resolution while clicking the' export to PDF" button

Please explain with code samples.
Kostadin
Telerik team
 answered on 01 Nov 2012
1 answer
190 views
We are using RadNumericTextBox with decimal digits allowed:(see the markup below)

<telerik:RadNumericTextBox ID="txtSomeData" runat="server"
    Font-Names="tahoma, sans-serif" Font-Size="11px"
    MaxLength="5" MaxValue="24" MinValue="0" Width="90px"
    ShowSpinButtons="true" Type="Number" Value="0.0">
    <NumberFormat DecimalDigits="2" PositivePattern="n hours" DecimalSeparator="." AllowRounding="true" />
    <InvalidStyle ForeColor="Crimson" />
    <EnabledStyle HorizontalAlign="Center" CssClass="fieldlabelSmall" />
</telerik:RadNumericTextBox>

The problem we are facing is, when we manually put a decimal value, while using spin button to increment/ decrement, the value wont increase/ decrease after a random number.
e.g. type 5.2 in text box now try to decrease by clicking on down arrow(spin button), for me it wont decrease beyond 2.2
similarly for decimal value of 2 digit, problem would occur for both increment and decrement.(for me on giving 12.44, it give problem at 8.44 on decreasing and 15.44 on increasing)

Version Used: 2012.1.215.35
DFal
Top achievements
Rank 1
 answered on 01 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?