Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
136 views
I am looking to print a TreeList without having the dependency of Excel or PDF. Is there a method other than exporting the innerHTML onto a page and printing the new page?
Kostadin
Telerik team
 answered on 12 Oct 2016
5 answers
475 views
We have a radScheduler and we want the users to right-click to bring-up a context menu in order to edit.  This allows us to present a set of choices specific to the day or the appointment they are editing.  It gives us greater control.

We do not want them to be able to double-click the day or appointment.  We want double-clicking to do absolutely nothing.

How can this be accomplished?
Anton
Telerik team
 answered on 12 Oct 2016
1 answer
142 views

I have a radGrid with EnablePostBackOnRowClick="True".

it includes an OnSelectedIndexChanged event: OnSelectedIndexChanged="grdSpecialtyMedTasks_OnSelectedIndexChanged"

It includes a column :<telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" ItemStyle-Width="20px"/>

My codebehind includes :

protected void grdSpecialtyMedTasks_OnSelectedIndexChanged(object sender, EventArgs e)
{                                                       // when I click a row, I hit this code every time
GridDataItem selectedItem = (GridDataItem)grdSpecialtyMedTasks.SelectedItems[0];
DropDownList ddlDest = (DropDownList)selectedItem.FindControl("ddlDest");
if (ddlDest.SelectedValue != "Default")
    {
    btnProcessTask.Enabled = true;
    }
...

protected void btnProcessTask_Click(object sender, EventArgs e)
{
if (grdSpecialtyMedTasks.SelectedItems[0] != null) // occasional index out of range error hits here
     {       
    processTask(sender, e);
     }
}

---------------------------

When user selects anywhere in the row, the client select checkbox is checked and vices-versa, so that seems to work nicely.

Also when either of the above happens I can see that the OnSelectedIndexChanged fires as I hit a breakpoint each time. (double click hits breakpoint twice.)

Problem is that the row does not APPEAR to have been selected / does not get highlighted until the user double-clicks the row. WHY?

In case it matters, both times when I hit breakpoint in the OnSelectedIndexChanged method, IsPostBack is set to True.

The potential is that the user thinks they are processing Row X when in fact they are processing Row Y.

Also, occasionally I am getting am index out of range error in the btnProcessTask_Click method.

--------------------------

Any assistance greatly appreciated :)

 

 

Viktor Tachev
Telerik team
 answered on 12 Oct 2016
1 answer
202 views

hi

How do I do a foreach loop in the RadScheduler ItemDataBound event?

I have a code here would like to have a lightGray background color if the class end time is lesser than current time and i would like to loop through each item so that gray out the correct items. Thanks

 

 protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
    {
        DataRowView row = (DataRowView)e.Appointment.DataItem;
        DateTime endtime = DateTime.Parse(row["ClassEndTime"].ToString());
        if (endtime <= DateTime.Now)
        {
            e.Appointment.BackColor = System.Drawing.Color.LightGray;
        }
              


    }

Nencho
Telerik team
 answered on 12 Oct 2016
1 answer
152 views

I have set up a page using <telerik:RadAjaxManager> and <asp:Panel>. The <asp:Panel> is ajaxified.

Within the <asp:Panel> I have a button. This button is supposed to "escape" the AJAX mechanism and reload the whole page via PostBack when being pushed.

What do I need to do to have the button reload the whole page, not just the <asp:Panel> area?

Loïc
Top achievements
Rank 1
 answered on 12 Oct 2016
3 answers
807 views

Hello,

  I am using RadText  with TextMode="Password" and used Password Strength Settings this works perfect,Now my requirement is, there should have icon to toggle password (show/hide) field. Please find attached screen shot please let me know is there any kind of control which supports similar kind of functionality.

Vessy
Telerik team
 answered on 12 Oct 2016
2 answers
273 views

 I am trying to set focus in radgrid batch edit cell in  page  load. I have used the following code in gridcreated and rowselected event but i can't get focus in that cell please give me some suggestion. 

      var MasterTableView = SummarySerialNumberGrid.get_masterTableView();

      var row = MasterTableView.get_selectedItems()[0];
      var SerialNumberCell = MasterTableView.getCellByColumnUniqueName(row, "serialnumber");
      var bthEditManager = SummarySerialNumberGrid.get_batchEditingManager();
           bthEditManager.openCellForEdit(SerialNumberCell);

sathesh
Top achievements
Rank 1
 answered on 12 Oct 2016
4 answers
246 views

Hi Telerik,

Can you please create a working sample project in VB with a RadGrid that has the following properties/specs:

 

  1. Multiple columns (FIRST_NAME, LAST_NAME, AGE)
  2. Allow sorting and filtering on all three columns
  3. EditMode="InPlace", EditType="Cell", OpenEditingEvent="DblClick"
  4. CommandItemTemplate with "Edit","Save Changes" and "Cancel Changes" link buttons.
  5. The "Save Changes" and "Cancel Changes" link buttons are not displayed at first.
  6. And because initially EditMode="InPlace", NO edits should be allowed when any row or cell is double-clicked.
  7. When the "Edit" link button is clicked:
  • the "Edit" link button is hidden and the "Save Changes" and "Cancel Changes" appear
  • EditMode is changed to "Batch"
  • When double-clicking any cell of any row, ONLY the AGE cell of the row that was clicked will be editable.
  • When edting a cell (AGE), pressing the ENTER key should move the cursor to the same cell (AGE) but on the next row.
  • When the "Save Changes" link button is clicked, it should save whatever changes were made and also do some stuff on the server-side.
  • When the "Cancel Changes" link button is clicked, it should discard whatever changes were made and also do some stuff on the server-side.
  • The "Save Changes" and "Cancel Changes" link buttons should disappear and the "Edit" link button should re-appear.

I've been pulling my hair over this for the past 3 days and I can't seem to make it work. If my requirements are not possible, can you please suggest an alternative - my MAIN concern is that the Grid should only allow editing when the "Save Changes" and "Cancel Changes" link buttons appear after the "Edit" link button is clicked.

As always, many thanks in advance.

 

Virgil Rodriguez

Virgil Rodriguez
Top achievements
Rank 1
 answered on 11 Oct 2016
2 answers
135 views

I'm having issues rendering the Gantt Control inside of a custom control. I've set up my control in line with the sample project for using a custom provider, which works outside of my project just fine. When I try and render it within my project, nothing but the divs seem to be rendered. I compared that to what was rendered by the sample project, and a lot of things seem to be missing. I've attached a image of the rendered html.

 

 

I get one JavaScript error "A.delayedClick is not a function". Any help would be greatly appreciated.

 

 

Jeremy
Top achievements
Rank 1
 answered on 11 Oct 2016
5 answers
122 views
Dear All,
Does anyone know how to add an option for image caption to the latest (full version )radeditor?

Kind Regards,
Marja
Rumen
Telerik team
 answered on 11 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?