Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views

I am still having corruption in the date display at the min the week view I have tried everything think of to get the columns wider but is not working

 

01.<legend><i class="fa fa-angle-right"></i>Available Appointments</legend>
02. <asp:UpdatePanel ID="UpdatePanel1" runat="server">
03.  <ContentTemplate>
04.    <div>
05.      <legend>Calendar Layout</legend>
06.      <asp:RadioButtonList ID="rbDisplay"   CellSpacing="5" AutoPostBack="true" RepeatDirection="Horizontal" runat="server">
07.                                <asp:ListItem Value="1"> Verticle </asp:ListItem>
08.                                <asp:ListItem Value="2"> Horizontal </asp:ListItem>
09.                            </asp:RadioButtonList>
10.                        </div>
11.                                <telerik:RadScheduler OnTimeSlotCreated="apertureAppointments_TimeSlotCreated" OverflowBehavior="Auto" runat="server" WeekView-ShowDateHeaders="true" ID="apertureAppointments"
12.                                    TimelineView-UserSelectable="false" DayView-UserSelectable="true" AgendaView-UserSelectable="True" DataKeyField="ID" DataSubjectField="Subject" AllowInsert="false" AllowDelete="false" AllowEdit="false"
13.                                    DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DayView-EnableExactTimeRendering="true" WeekView-UserSelectable="True" SelectedView="WeekView"
14.                                    DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True" MonthView-UserSelectable="True" AgendaView-NumberOfDays="5" RowHeight="40px"
15.                                    RenderMode="Classic" EnableExactTimeRendering="True" Reminders-Enabled="true" Width="800px" Height="1000px" EnableDatePicker="false"
16.                                    DayStartTime="09:00:00" ShowFooter="false" DayEndTime="18:00" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" HoursPanelTimeFormat="HH:mm tt" OnAppointmentClick="apertureAppointments_AppointmentClick" OnTimeSlotContextMenuItemClicking="apertureAppointments_TimeSlotContextMenuItemClicking"
17.                                    EnableDescriptionField="true" AppointmentStyleMode="Default" Skin="Metro">
18. 
19.                                    <AdvancedForm Modal="True" />
20. 
21.                                    <TimeSlotContextMenuSettings EnableDefault="false" />
22.                                    <AppointmentContextMenuSettings EnableDefault="false" />
23.                                    <DayView EnableExactTimeRendering="True" />
24.                                    <AdvancedForm Modal="true"></AdvancedForm>
25. 
26.                                    <ResourceTypes>
27.                                        <telerik:ResourceType KeyField="lookup_code" Name="Managers" TextField="lookup_description" ForeignKeyField="managerId"
28.                                            DataSourceID="ManagersDataSource"></telerik:ResourceType>
29.                                    </ResourceTypes>
30.                                    <ResourceStyles>
31.                                        <%--AppointmentStyleMode must be explicitly set to Default (see above) otherwise setting BackColor/BorderColor
32.                            will switch the appointments to Simple rendering (no rounded corners and gradients)--%>
33.                                        <telerik:ResourceStyleMapping Type="Managers" Text="Natalie Edgar"
34.                                            BackColor="#512479" ApplyCssClass="appointment" />
35.                                        <telerik:ResourceStyleMapping Type="Managers" Text="Clare Coyle"
36.                                            BackColor="#512479" ApplyCssClass="appointment" />
37.                                        <telerik:ResourceStyleMapping Type="Managers" Text="Christine Clarke"
38.                                            BackColor="#512479" ApplyCssClass="appointment" />
39.                                        <telerik:ResourceStyleMapping Type="Managers" Text="Adam Adair"
40.                                            BackColor="#512479" ApplyCssClass="appointment" />
41.  </ResourceStyles>
42. </telerik:RadScheduler>
43. </ContentTemplate>
44.</asp:UpdatePanel>

I just dont no what is wrong that is causing this corruption for when i look at your demos their fine in week view with horzontal grouping ?.

Regards

Magdalena
Telerik team
 answered on 04 Apr 2016
1 answer
236 views

I'm trying to utilize a RadProgressArea to keep track of a task's progress on my ASP page.  I have a relatively simple setup that is functioning fine.  However, the actual progress bar is appearing as a white bar on a white background, which is different from any other demo I've come across.  I've gone through the properties and style options, but there doesn't seem to be any way to specifically set the color of the progress bar.  Is there a way to change it to, say, blue?  Here's what I'm currently working with.

 

<Telerik:RadAjaxPanel runat="server">
  <Telerik:RadProgressArea ID="rpaProgress" runat="server" ProgressIndicators="TotalProgress,TotalProgressBar,TotalProgressPercent"></Telerik:RadProgressArea>
</Telerik:RadAjaxPanel>

I have a RadAjaxManagetProxy and a RadProgressManager defined elsewhere in the page.  In the code behind, I set RadProgressContext.Current.PrimaryTotal, PrimaryValue, PrimaryPercent, and OperationComplete as they need to update.  I get the attached result.
Magdalena
Telerik team
 answered on 04 Apr 2016
1 answer
277 views

Hello everyone,

I've been facing issues with RadTextBox for ASP in MultiLine mode when pressing the enter key. Actually no new line is displayed. When I set the text from codebehind or using binding the text is correctly displayed on multiple lines. This is illustrated in the radtextbox.png file attached.

Below is my code for the RadTextBox element :

<telerik:RadTextBox ID="RadTextBox1"
    Text='<%# DataBinder.Eval(Container, "DataItem.MyField") %>'
    runat="server" TextMode="MultiLine" Rows="8" Columns="40"
    RenderMode="Lightweight">
</telerik:RadTextBox>

In the struct.png file attached you'll find the structure of my web page.

By googling around and visiting many forum threads (including of course telerik) I found many potentials sources and fixes for the issue :

  • DefaultButton : tried with and without but no luck
  • white-space ccs attribute : the pre-wrap is what I need and what is set by default. I also tried normal and pre but still no luck
  • onkeypress event : captured the enter key event but did not work out in the end
  • AcceptsReturn : supposed to be for WinForms but at least I tried

I am using .Net Framework 4.0 and UI for ASP.NET AJAX v.2016.1.225.40.

Does anyone have a clue about this ?

Regards,
Benjamin

Benjamin
Top achievements
Rank 1
 answered on 04 Apr 2016
7 answers
301 views
The code that Telerik provides for a Use custom modal advanced template includes many css classes such as rsAdvanceEdit and rsAdvanceModal.  I would like to style these but I don't know where they are defined. 

Can someone please tell me where I can find the css for them?

<AdvancedEditTemplate>
   <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
       <div class="rsModalBgTopLeft">
       </div>
       <div class="rsModalBgTopRight">
       </div>
       <div class="rsModalBgBottomLeft">
       </div>
       <div class="rsModalBgBottomRight">
       </div>    
       <div class="rsAdvTitle">         
           <h1 class="rsAdvInnerTitle">
               <%# Container.Appointment.Owner.Localization.AdvancedEditAppointment %></h1>
           <asp:LinkButton runat="server" ID="LinkButton1" CssClass="rsAdvEditClose"
               CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
<%# Container.Appointment.Owner.Localization.AdvancedClose%>
           </asp:LinkButton>
       </div>
       <div class="rsAdvContentWrapper">
           <telerik:RadTextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>'
               Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'>
           </telerik:RadTextBox>
           <p>
               Custom content here...
           </p>
           <asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea">
               <div class="rsAdvButtonWrapper">
                   <asp:LinkButton CommandName="Update" runat="server" ID="LinkButton2" CssClass="rsAdvEditSave">
<span><%# Container.Appointment.Owner.Localization.Save%></span>
                   </asp:LinkButton>
                   <asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" CommandName="Cancel"
                       CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                   </asp:LinkButton>
               </div>
           </asp:Panel>
       </div>
   </div>
</AdvancedEditTemplate>
Ivan Danchev
Telerik team
 answered on 04 Apr 2016
3 answers
251 views

Hi,

In my project we are replacing the grid view controls in to Rad Grid controls.

Please let me know how to implement the below code through the Rad Grid control.

for (int i = 0; i < gvEmployee.Rows.Count; i++)
{
employee = ((DropDownList)gvEmployee.Rows[i].FindControl("ddlEmployee")).SelectedValue;
for (int j = i + 1; j < gvEmployee.Rows.Count; j++)
{
if (string.Compare(employee, ((DropDownList)gvLOB.Rows[j].FindControl("ddlEmployee")).SelectedValue) == 0 && employee != "--SELECT--")
{
DoAlert("Please select distinct " + gvHeaderemployee);
return;
}
}
if (employee != "--SELECT--")
{
dtemployeelocal.Rows.Add(employee);
}
}

I need to check the distinct record added in my grid view on Submit button click event

 

Viktor Tachev
Telerik team
 answered on 04 Apr 2016
0 answers
41 views

Hello,

I want to change the text and command name for the LinkButton per row depending on another cell value. I saw this code for reading cells during binding. So when a read a cell and it means to change the link button how can I do it?

Thanks

Private Sub gvLevel3_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles gvLevel3.ItemDataBound
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim cell As TableCell = DirectCast(item("Uniquename"), TableCell)
        Dim value As String = cell.Text
    End If
End Sub

Warren
Top achievements
Rank 1
 asked on 04 Apr 2016
1 answer
245 views

Hi,

 Based on parent dropdowntree i have to bind child dropdowntree.

when i select --select-- in parent dropdowntree child should be blank.

 

i used

dd.DataSource=Nothing

dd.Databind()

but it not working

 

 

Ivan Danchev
Telerik team
 answered on 04 Apr 2016
2 answers
79 views

Hi

I have a RadGrid with grouping, and the expand / close the group with the icon on the left hand side. We have a request that the groups be expanded / closed from the cell that has the group header text, is this possible.

The action would have to toggle so it closes when open and opens when closed.

I have attached an image that shows our requirement.

Andy

Andy Green
Top achievements
Rank 2
 answered on 04 Apr 2016
2 answers
128 views

Hello, 

Sorry in advance for my English because I'm not the best.

I hope that you can help me, because I search since 3 days.

I would like use a custom datasource (Get by WCF, but the signature of the method isn't the same that for a databinding) that I initialise to start the web page.

And after , I would like use the datasource for a radgrid. The radgrid must filter to client side (Because the radgrid is in a modal Popup and if I interact with the server, the modal disappears)

I hope I have understood

 

thank you for taking time for myself

Adrien
Top achievements
Rank 1
 answered on 04 Apr 2016
6 answers
116 views
Any way to substitute drag&drop action for copy not to move?.
thanks
Vessy
Telerik team
 answered on 01 Apr 2016
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
Andrey
Top achievements
Rank 1
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
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?