Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
137 views

I have a RadWizard control in my RadGrid FormTemplate. I have controls in the Wizard steps bound to the grid data source.

How can I get the Wizard Finish button to save changes in the form? 

Normally I would assign a CommandName "Update" to a button in the FormTemplate but here I can't find a way of doing that on the Finish button in the wizard.

Another way, I tried to handle the Finish button clicked event but it doesn't seem to work:

        protected void wizPlan_FinishButtonClick(object sender, WizardEventArgs e)
        {
            this.grPlans.MasterTableView.PerformUpdate((sender as RadWizard).NamingContainer as GridEditFormItem);
        }

 

Plamen
Telerik team
 answered on 14 Apr 2016
7 answers
132 views
I'm asking about the "resource view" of the calendar ("groupby").

Let's say Dr Jones is the 1st column, Dr Smith the 2nd and Dr Leroy the 3rd.  If Dr Jones only works from 3pm to 5pm how do I gray out the "off-times" for HIM ONLY (his column only)?

I store all the work hours for the people in a seperate table.

Also, how do I customize the TITLE of the column?  For example change "Dr Jones" to "Dr Jones MD"?
Nencho
Telerik team
 answered on 14 Apr 2016
1 answer
109 views

Hi Telerik Team,

Pls, I have some issues - see attached image.

1. When I edit a task in a window, how to translate the text "Assign"?

2. When I edit % complete in a row or in a window, how to change for spinbutton increase one by one, 1% until 100%?

3. In gantt header how to change the date format to "dom 03/4 - sáb 16/4"?

 

Thanks, Daniel

Nencho
Telerik team
 answered on 14 Apr 2016
1 answer
79 views
We are using Telerik Web UI component version 2015.1.310.40

We have below issue while posting the message in RadEditor, we are validating and restricting the characters up to 2000 character.

Issue 1: We are losing the format while pasting the text from WordPad where it is working from MS-Word

Issue 2: There were some issues while validating the count (number of character) when keying and pasting, is there any defined method to use?

<telerik:RadEditor EditModes="Design" ID="txtMessage" OnClientLoad="OnClientLoad"
                                                            CssClass="radEMailDiv" runat="server" BackColor="White" EnableResize="false"
                                                           StripFormattingOnPaste="MSWord" OnClientCommandExecuted="getCount">

Please suggest the solution to be used.
Ianko
Telerik team
 answered on 14 Apr 2016
1 answer
176 views

I need to use the following ItemTemplate for styling reasons, however ClickToOpen="true" does not work. What needs to be added in order for ClickToOpen to work properly? If I remove the ItemTemplate block it works as expected.

<telerik:RadMenu ID="RadMenu1" runat="server" ClickToOpen="true" Skin="Bootstrap">
    <Items>
        <telerik:RadMenuItem Text="Item 1">
            <ItemTemplate>
                <div class="caption">
                    <a href="#"><span><i></i>Item 1</span></a>
                </div>
            </ItemTemplate>
            <Items>
                <telerik:RadMenuItem Text="Sub Item 1"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 2"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 3">
                    <Items>
                        <telerik:RadMenuItem Text="Sub Sub Item 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 2"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 3"></telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Item 2">
            <ItemTemplate>
                <div class="caption">
                    <a href="#"><span><i></i>Item 2</span></a>
                </div>
            </ItemTemplate>
            <Items>
                <telerik:RadMenuItem Text="Sub Item 1"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 2"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 3">
                    <Items>
                        <telerik:RadMenuItem Text="Sub Sub Item 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 2"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 3"></telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

Veselin Tsvetanov
Telerik team
 answered on 14 Apr 2016
1 answer
74 views

Hi, 

 

I am  new to Kendo and I am facing a very confusing problem that i cant solve.

 

I have a grid which contains 5 columns like so - RoleName, Description, isActive, isDeleted, Action.

Now i have validation just on the RoleName Column.

 

My issue is, I should not let the user Input duplicate RoleName on edit or on creating a new record. For example, RoleName = Admin already exists on the grid and when the user creates a new record he shouldn't be able to enter Admin again, i got this part to work however when the user edits the already existing row which contains "Admin" as the rolename and changes isActive, the validation fires again telling Admin already exists and i cant edit that row. How do i fix this?

 

fields: {
                            Id: { type: "number", editable: false },
                            RoleName: {
                                type: "string",
                                validation: {
                                    required: true,
                                    validateOnBlur: false,
                                    rolenameValidation: function (input) {
                                        if (input.is("[name='RoleName']") && input.val() !== "" && NetAppAssetRecoveryRoleAdminMethods.IfRoleNameExists(input.val())) {
                                            input.attr("data-rolenameValidation-msg", "Role Name already exists");
                                            return false;
                                        }
                                        else if (NetAppAssetRecoveryRoleAdminMethods.IfRoleNameExists(input.val()) == undefined)
                                        {
                                            input.attr("data-rolenameValidation-msg", "Role Name can contain only characters");
                                            return false;
                                        }
                                        return true;
                                    }
                                }
                            },.....
...............
...............

 

Konstantin Dikov
Telerik team
 answered on 14 Apr 2016
1 answer
67 views

I am needing to change the duration into the timeslote created event as I am using that to show holidays but i see in the event the duration is readonly when i access that is their anyway to change that at all please.

 

01.protected void apertureAppointments_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
02.      {
03.          int i = 0;
04.          bool isFound = false;
05.          List<tblApertureNetShiftPattern> _list = new List<tblApertureNetShiftPattern>();
06.          _list = _dal.getHolidays();
07.          List<Resource> resources = new List<Resource>(apertureAppointments.Resources.GetResourcesByType("Managers"));
08.          Resource res = resources[5];
09. 
10.          foreach (tblApertureNetShiftPattern sp in _list)
11.          {
12.              if (_list.Count >= 1)
13.                  i++;
14.              else
15.                  i = 0;
16. 
17.              DateTime dt1 = Convert.ToDateTime(_list[i - 1].startdate);
18.              DateTime dt2 = Convert.ToDateTime(_list[i - 1].endDate);
19. 
20.              TimeSpan span = dt2.Subtract(dt1);
21.              if (e.TimeSlot.Start == dt1 && e.TimeSlot.Resource.Text == sp.manager_name)
22.              {
23.                  isFound = true;
24.                  if (DoDateRangesOverlap(e.TimeSlot.Start, e.TimeSlot.End, dt1, dt2) && isFound == true)
25.                  {
26.                      Label temperatureLabel = new Label();
27. 
28.                      if (sp.appointmentType == Constants.shiftDayoff)
29.                      {
30.                          e.TimeSlot.CssClass = "DayOfCssStyle";
31.                          temperatureLabel.CssClass = "DayOfCssStyle";
32.                          temperatureLabel.Text = sp.Description;
33.                      }
34.                      else if (sp.appointmentType == Constants.shiftHoliday)
35.                      {
36.                          e.TimeSlot.CssClass = "HolidayCssStyle";
37.                          temperatureLabel.CssClass = "HolidayCssStyle";
38.                          temperatureLabel.Text = sp.Description;
39.                      }
40.                      else if (sp.appointmentType == Constants.shiftStat)
41.                      {
42.                          e.TimeSlot.CssClass = "statCssStyle";
43.                          temperatureLabel.CssClass = "statCssStyle";
44.                          temperatureLabel.Text = sp.Description;
45.                      }
46.                      else if (sp.appointmentType == Constants.shiftsickDay)
47.                      {
48.                          e.TimeSlot.CssClass = "SickDayStyle";
49.                          temperatureLabel.CssClass = "SickDayStyle";
50.                          temperatureLabel.Text = sp.Description;
51.                      }
52.                      else
53.                          temperatureLabel.Text = "OCCUPIED";
54. 
55.                      Image imageControl = new Image();
56. 
57.                      imageControl.ImageUrl = @"~\images\aperturenet\Calendar\resources\holidays.png";
58. 
59.                      temperatureLabel.BackColor = System.Drawing.Color.Orange;
60. 
61.                      e.TimeSlot.Control.Controls.AddAt(1, temperatureLabel);//add the image
62.                      e.TimeSlot.Control.Controls.AddAt(2, imageControl);
63.                  }
64.              }
65.          }
66.      }

Veselin Tsvetanov
Telerik team
 answered on 14 Apr 2016
1 answer
77 views

Hello team,

I am using rad scheduler, while inserting new appointment email address is saved in the table. When exporting the appointment i want that email address is also get export with the appointment and when i send the appointment i want that email id is get filled in "To" filed in outlook .

Also How to change the caption of custom attributes in edit pop up in scheduler.

Thanks in Advance.

Nencho
Telerik team
 answered on 14 Apr 2016
3 answers
76 views

hi,

how to get reference to breadcrumb box in fileexplorer grid?  I'd like to make it editable?

is it possible?

thanks

Vessy
Telerik team
 answered on 13 Apr 2016
1 answer
129 views

When I implement in my usercontrol from your demo:

 

<telerik:RadMediaPlayer RenderMode="Lightweight" ID="RadMediaPlayerFake" runat="server">
      <PlaylistSettings YouTubePlaylist="PLvmaC-XMqeBb991YNEWAHYL9ZJAeURr-r" Mode="Buttons" ButtonsTrigger="MouseDown" />
</telerik:RadMediaPlayer>

 

The app responses with:

The remote server returned an error: (410) Gone.

What could be causing this? The channel id is OK...

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 13 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?