Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
466 views
I am struggling with radEditor for about several months now, and so far, I sent several threads on this forum and created a support ticket during my demo period. As we solve problems with workarounds, problems keep coming one by one. That is just another one.

By saying "disabled", I mean that I cannot click, or write anything on the textarea even if there is text on the load of the page. When I change the edit mode to HTML (from the default Design mode) functionality restores and I can come back to Design mode and continue using the editor normally. That is very annoying for the user to change the edit mode every time they open the page that holds radEditor.

I have created a demo page where the problem can be seen clearly.
http://datepicker.akssite01.tk/akspanel/Haberler

Use the username "demo" and password "123456" for login.

When you enter, click the green "Add" labeled button and try to enter some info in the textarea of radeditor. You will see that you can't.

Also, when you click a row on the table "Edit" button appears near the Add button. When you click on it, radeditor loads with text in it, but it also doesn't appear until you change the edit mode to Html from Design mode by clicking the buttons at the bottom of the editor. When you click the edit mode changer buttons to change edit mode, editor restores its functionality and continues to work all right until the next refresh of the page.

I am not getting any js errors on the console. Using Chrome for testing, but Firefox and Opera are the same for that matter. IE is just a disaster I am keeping my distance from.

I really need help from Telerik support on this one. May be you can help us to clear our problems all at once with the help of this sample project and I can convince my manager to use your editor on our projects for good. I am willing to provide any help possible in order to solve that issue. Just let me know.

Thanks!





Andreas
Top achievements
Rank 1
 answered on 05 Jun 2015
1 answer
135 views
Is there a way to show the loading panel gif and assign it to a control from an external ajax request?  By external ajax request I mean I doing a jQuery ajax request from a linked js file.  I can move this code inline but note I'm not using the ajaxmanager control.  
Konstantin Dikov
Telerik team
 answered on 05 Jun 2015
2 answers
133 views

hi,

i try to get my imagegallery same pic wich in folder's name 

ImageGallerr.ImagesFolderPath="Image/"

image is the name of my foder but it not work and whene i make the same url in propertie it work 

plz i need help very quickly 

Eyup
Telerik team
 answered on 05 Jun 2015
2 answers
151 views

So, I've got a grid configured as such

.DataSource(dataSource => dataSource
     .Ajax()
     .ServerOperation(false)
     .PageSize(250)
     .Read(read => read.Action("_readData", "Data", new { Id= Model.Id })))
.Scrollable(scrolling => scrolling.Enabled(true))
.Sortable()
.Pageable(paging => paging.Enabled(true)
                 .PageSizes(false)
                 .Input(false)
                 .Info(true)
                 .Numeric(false)
                 .PreviousNext(false)
                 .Messages(m => m.Display("Total Records: {2}")))

In the _readData() method of my controller, all data is retrieved and returned and the Total Records displayed reflects that.

var data = ReadData();
DataSourceResult result = data.ToDataSourceResult(request);
return Json(result);

However, the grid itself only displays 250 (the PageSize) items, even though all the items were returned, and nothing else gets displayed.

If I set Virtual(true) on the scrollable, then the grid will call out to the server again as I scroll, and once again all items data is retrieved, but it seems to only make use of the returned items PageSize at a time -- each time I scroll more than that, it calls back to the server to once again get all items, etc.

I thought ServerOperation(false) would tell the grid that all data will be requested through a single request so it wouldn't have to call back to the server each time.

The only thing I've found to work is to set PageSize(100000) (with or without virtual scrolling and with or without ServerOperation doesn't seem to affect it) to ensure that the number of items displayed is all the data that was returned, which in this case is only about 3000. This works, but seems pretty hacky.

Is there a better way to accomplish what I want?

Jay
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 05 Jun 2015
6 answers
264 views
Hi;
Is there an "Official" BreadCrumb control or do we need to work with ASP.Net Repeater to accomplish that?
Thanks!
Vessy
Telerik team
 answered on 05 Jun 2015
4 answers
610 views

 Hello,

I am trying to export telerik radgrid into excel 2007 i.e. .xlsx format.  I am using VS 2013.Though its exported, but column formats are not coming correctly. Its working perfectly in .xls format.

Code for .xls is working correctly :

        if (gvAttendanceDetails.Items.Count > 0)
        {
            isExport = true;
            gvAttendanceDetails.ExportSettings.ExportOnlyData = true;
            gvAttendanceDetails.ExportSettings.IgnorePaging = true;
            gvAttendanceDetails.ExportSettings.OpenInNewWindow = true;
            gvAttendanceDetails.ExportSettings.FileName = Guid.NewGuid().ToString();
            gvAttendanceDetails.MasterTableView.Caption = lblSummary.Text + "<br/>" + lbllDepartment.Text + ":" + lblDepartemnt.Text + "<br/>" + lbllManager.Text + ":" + lblManager.Text + "<br/>" +
                 lbllNoOfWrk.Text + ":" + lblNoOfWrk.Text + "<br/>" + lbllDaysPrsnt.Text + ":" + lblDaysPrsnt.Text + "<br/>" +
                    lbllDaysAbsent.Text + ":" + lblDaysAbsent.Text + "<br/>" + lbllLeaveDuty.Text + ":" + lbllLeaveDuty.Text + "<br/>" +
                    lbllSelfService.Text + ":" + lblSelfService.Text + "<br/>" + lbllWeekend.Text + ":" + lblWeekend.Text + "<br/>";
            gvAttendanceDetails.MasterTableView.ExportToExcel();
        }
        else
        {
            RadWindowManager1.RadAlert("There are no Details available", null, null, "Error", "");
        }

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

The only line highlighted below i have added to export into .xlsx

             if(gvAttendanceDetails.Items.Count > 0)
             {
isExport = true;
gvAttendanceDetails.ExportSettings.ExportOnlyData = true;
gvAttendanceDetails.ExportSettings.IgnorePaging = true;
gvAttendanceDetails.ExportSettings.OpenInNewWindow = true;
gvAttendanceDetails.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Xlsx;

gvAttendanceDetails.ExportSettings.FileName = DateTime.Now.ToString().Replace(":", "");
gvAttendanceDetails.MasterTableView.Caption = lblSummary.Text + "<br/>" + lbllDepartment.Text + ":" + lblDepartemnt.Text + "<br/>" + lbllManager.Text + ":" + lblManager.Text + "<br/>" +
lbllNoOfWrk.Text + ":" + lblNoOfWrk.Text + "<br/>" + lbllDaysPrsnt.Text + ":" + lblDaysPrsnt.Text + "<br/>" +
lbllDaysAbsent.Text + ":" + lblDaysAbsent.Text + "<br/>" + lbllLeaveDuty.Text + ":" + lbllLeaveDuty.Text + "<br/>" +
lbllSelfService.Text + ":" + lblSelfService.Text + "<br/>" + lbllWeekend.Text + ":" + lblWeekend.Text + "<br/>";

gvAttendanceDetails.MasterTableView.ExportToExcel();
}else

{

}

 

In the attached file i have highlighted in yellow color. Head format is coming correctly, its coming in a single line. And in time column is coming incorrectly.

Can anyone help on this.

Thanks in advance.

Kostadin
Telerik team
 answered on 05 Jun 2015
5 answers
286 views

Hi,

Using the RadGrid in Batch Editing mode and the EditType is set to row. The following (miss-) behaviour may also be reproduced on the demo page (http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx):

  • change some values in an existing row
  • click on "Add new record" to insert a new row
  • click on "Delete" on the newly inserted row (without inserting any data)
  • now try to save the changes => the "Save changes" button doesn't work anymore

May be it has something to do with the combo box in the grid. In another grid without a combobox I have a slightly different behaviour. The "Save changes" is working but it also tries to save the deleted (empty) row.

I also tried to save from the client side with javascript. In the first scenario the hasChanges() function gets an error:

var hasChanges = grid.get_batchEditingManager().hasChanges(grid.get_masterTableView());

Regards
Roni

 

Konstantin Dikov
Telerik team
 answered on 05 Jun 2015
4 answers
282 views

Hi,

Does the form decorator work (apply themes) with the asp:Literal control?

Danail Vasilev
Telerik team
 answered on 05 Jun 2015
1 answer
597 views

var results = from t in context
      where t.Name == userName
      select t;
 
RadGrid1.DataSource = results;
RadGrid1.DataBind();

I have a RadGRid which is populated via code behind with data from an Odata endpoint, as above.

Some of the fields returned contain dates.

I need to create a calculated column which subtracts the current from the date in one of the bound field and returns a value in days.

How can that be performed from code behind and in what event?

 

 I can create the column as below but not sure how to setup the Expression attribute.

GridCalculatedColumn gcc = new GridCalculatedColumn();
gcc.DataFields = new string[] { "CreatedDate" };
gcc.Expression = ???
RadGrid1.MasterTableView.Columns.AddAt(1, gcc);
Viktor Tachev
Telerik team
 answered on 05 Jun 2015
3 answers
562 views

Does anybody have an example on how to databind a RadioButtonList inside of a RadListView? I have been trying for hours so any help will be much appreciated.

Here is a small code snippet:

<telerik:RadListView ID="rlvQuestions" DataSourceID="EntityDataSource1" runat="server"
    ItemPlaceholderID="QuestionsContainer" DataKeyNames="EMPLID,Q_ORDER,FISCAL_YEAR">
    <LayoutTemplate
            <fieldset id="FiledSet1"
                    <legend>Questions</legend
                        <div class="RadListView RadListView_<%# Container.Skin %>">
                        <asp:PlaceHolder ID="QuestionsContainer" runat="server"></asp:PlaceHolder
                        </div
                </fieldset
        </LayoutTemplate
                                  
        <ItemTemplate
            <fieldset>
                <table style="width:100%; border:none;">
                <tr>
                <td style="width:60%; vertical-align:top; padding-top:2px; text-align:left">
                    <div style="width:520px; margin:0 0;">
                        <div style="width:20px; height:auto; text-align:left; float:left; display:inline;">
                            <asp:Label ID="lblQNum" CssClass="SectionLabel" runat="server" Text='<%# Bind("Q_ORDER")%>'></asp:Label>.
                        </div>
                        <div style="width:500px; height:auto; text-align:left; float:left; display:inline;">
                            <asp:Label ID="Label2" CssClass="PopupTeal" runat="server" Text='<%# Bind("QUESTION")%>' /><br />
                        </div>
                    </div>
                </td>
                <td style="width:40%; text-align:left">
                    <asp:Label ID="lblbAssessment" CssClass="DisplayTextBold"
                        runat="server" Text="" />
                    <asp:RadioButtonList ID="rbAssessment" CssClass="DisplayTextBold"
                        RepeatColumns="2" RepeatDirection="Vertical"
                        RepeatLayout="Table" runat="server">
                        <asp:ListItem Value="Exceeded Goals"  />
                        <asp:ListItem Value="Achieved Goals" />
                        <asp:listitem Value="Did Not Meet Goals" />
                        <asp:ListItem Value="N/A" />
                    </asp:RadioButtonList>
                </td>
                </tr>
Konstantin Dikov
Telerik team
 answered on 05 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?