Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
255 views

Hello, 

I am trying to implement RadListView similar to this ListView - DataGrouping Demo. But I got very strange behaviour on page changes. I've set PageSize="5" in DataPager.

  • Page 1: shows (5) items from 1 - 5 (Correct)
  • Page 2: shows (10) items from 6 - 15 (Incorrect. Extra 5 items)
  • Page 3: shows (15) items from 11 - 25 (Even worse. Extra 5 new items and 5 previous items. 11 to 15 was already shown on page 2)
  • Page 4: shows (20) items from 16 - 35 (I've no idea)
  • Page 5: shows (20) items from 21 - 40
  • Page 6: shows (15) items from 26 - 40 (Reduced 5 items. All duplicated records from previous pages)
  • Page 7: shows (10) items from 31 - 40 (Reduced 5 more items. All duplicated records from previous pages)
  • Page 8: shows (5) items from 36 - 40 (Reduced 5 more items. All duplicated records from previous pages)
  • Page 9: shows (5) items from next group
  • Same Pattern ...

I am not sure my markup have problem or my data have. You can see​ my sample code that will create above result below. I also attached screen shots for faster reference.

Please help and thanks in advanced.

Sample.aspx.cs

protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
{
    RadListView1.DataSource = PrepareData();
}
 
private DataTable PrepareData()
{
    DataTable l_Table = new DataTable();
    l_Table.Columns.Add("ID");
    l_Table.Columns.Add("Code");
    l_Table.Columns.Add("Group");
    l_Table.Columns.Add("PIN");
 
    l_Table.Rows.Add(new object[] { 1, "A10001", "A", 8096 });
    l_Table.Rows.Add(new object[] { 2, "A10002", "A", 3029 });
    l_Table.Rows.Add(new object[] { 3, "A10003", "A", 9427 });
    l_Table.Rows.Add(new object[] { 4, "A10004", "A", 8792 });
    l_Table.Rows.Add(new object[] { 5, "A10005", "A", 7166 });
    l_Table.Rows.Add(new object[] { 6, "A10006", "A", 1002 });
    l_Table.Rows.Add(new object[] { 7, "A10007", "A", 4989 });
    l_Table.Rows.Add(new object[] { 8, "A10008", "A", 8108 });
    l_Table.Rows.Add(new object[] { 9, "A10009", "A", 8547 });
    l_Table.Rows.Add(new object[] { 10, "A10010", "A", 3651 });
    l_Table.Rows.Add(new object[] { 11, "A10011", "A", 2418 });
    l_Table.Rows.Add(new object[] { 12, "A10012", "A", 7482 });
    l_Table.Rows.Add(new object[] { 13, "A10013", "A", 2696 });
    l_Table.Rows.Add(new object[] { 14, "A10014", "A", 7149 });
    l_Table.Rows.Add(new object[] { 15, "A10015", "A", 8167 });
    l_Table.Rows.Add(new object[] { 16, "A10016", "A", 1995 });
    l_Table.Rows.Add(new object[] { 17, "A10017", "A", 4006 });
    l_Table.Rows.Add(new object[] { 18, "A10018", "A", 7834 });
    l_Table.Rows.Add(new object[] { 19, "A10019", "A", 6419 });
    l_Table.Rows.Add(new object[] { 20, "A10020", "A", 1864 });
    l_Table.Rows.Add(new object[] { 21, "A10021", "A", 2777 });
    l_Table.Rows.Add(new object[] { 22, "A10022", "A", 7167 });
    l_Table.Rows.Add(new object[] { 23, "A10023", "A", 6995 });
    l_Table.Rows.Add(new object[] { 24, "A10024", "A", 7136 });
    l_Table.Rows.Add(new object[] { 25, "A10025", "A", 2612 });
    l_Table.Rows.Add(new object[] { 26, "A10026", "A", 3543 });
    l_Table.Rows.Add(new object[] { 27, "A10027", "A", 3262 });
    l_Table.Rows.Add(new object[] { 28, "A10028", "A", 5829 });
    l_Table.Rows.Add(new object[] { 29, "A10029", "A", 3409 });
    l_Table.Rows.Add(new object[] { 30, "A10030", "A", 6428 });
    l_Table.Rows.Add(new object[] { 31, "A10031", "A", 2510 });
    l_Table.Rows.Add(new object[] { 32, "A10032", "A", 3874 });
    l_Table.Rows.Add(new object[] { 33, "A10033", "A", 6840 });
    l_Table.Rows.Add(new object[] { 34, "A10034", "A", 8446 });
    l_Table.Rows.Add(new object[] { 35, "A10035", "A", 6599 });
    l_Table.Rows.Add(new object[] { 36, "A10036", "A", 9215 });
    l_Table.Rows.Add(new object[] { 37, "A10037", "A", 8140 });
    l_Table.Rows.Add(new object[] { 38, "A10038", "A", 9804 });
    l_Table.Rows.Add(new object[] { 39, "A10039", "A", 9179 });
    l_Table.Rows.Add(new object[] { 40, "A10040", "A", 7315 });
    l_Table.Rows.Add(new object[] { 41, "B10001", "B", 9307 });
    l_Table.Rows.Add(new object[] { 42, "B10002", "B", 6832 });
    l_Table.Rows.Add(new object[] { 43, "B10003", "B", 2386 });
    l_Table.Rows.Add(new object[] { 44, "B10004", "B", 2283 });
    l_Table.Rows.Add(new object[] { 45, "B10005", "B", 3295 });
    l_Table.Rows.Add(new object[] { 46, "B10006", "B", 6314 });
    l_Table.Rows.Add(new object[] { 47, "B10007", "B", 1433 });
    l_Table.Rows.Add(new object[] { 48, "B10008", "B", 2250 });
    l_Table.Rows.Add(new object[] { 49, "B10009", "B", 1658 });
    l_Table.Rows.Add(new object[] { 50, "B10010", "B", 4967 });
    l_Table.Rows.Add(new object[] { 51, "B10011", "B", 6391 });
    l_Table.Rows.Add(new object[] { 52, "B10012", "B", 6217 });
    l_Table.Rows.Add(new object[] { 53, "B10013", "B", 5478 });
    l_Table.Rows.Add(new object[] { 54, "B10014", "B", 2037 });
    l_Table.Rows.Add(new object[] { 55, "B10015", "B", 3961 });
    l_Table.Rows.Add(new object[] { 56, "B10016", "B", 8989 });
    l_Table.Rows.Add(new object[] { 81, "C10001", "C", 5405 });
    l_Table.Rows.Add(new object[] { 82, "C10002", "C", 9161 });
    l_Table.Rows.Add(new object[] { 83, "C10003", "C", 7635 });
    l_Table.Rows.Add(new object[] { 84, "C10004", "C", 4567 });
    l_Table.Rows.Add(new object[] { 85, "C10005", "C", 1197 });
    l_Table.Rows.Add(new object[] { 86, "C10006", "C", 3379 });
    l_Table.Rows.Add(new object[] { 87, "C10007", "C", 4782 });
    l_Table.Rows.Add(new object[] { 88, "C10008", "C", 5650 });
    l_Table.Rows.Add(new object[] { 89, "C10009", "C", 7737 });
    l_Table.Rows.Add(new object[] { 90, "C10010", "C", 7174 });
    l_Table.Rows.Add(new object[] { 91, "C10011", "C", 8038 });
    l_Table.Rows.Add(new object[] { 92, "C10012", "C", 1445 });
    l_Table.Rows.Add(new object[] { 93, "C10013", "C", 9798 });
    l_Table.Rows.Add(new object[] { 94, "C10014", "C", 6405 });
    l_Table.Rows.Add(new object[] { 95, "C10015", "C", 2384 });
    l_Table.Rows.Add(new object[] { 96, "C10016", "C", 3403 });
    l_Table.Rows.Add(new object[] { 97, "C10017", "C", 6483 });
    l_Table.Rows.Add(new object[] { 98, "C10018", "C", 8907 });
    l_Table.Rows.Add(new object[] { 99, "C10019", "C", 5507 });
    l_Table.Rows.Add(new object[] { 100, "C10020", "C", 4660 });
    l_Table.Rows.Add(new object[] { 101, "C10021", "C", 9608 });
    l_Table.Rows.Add(new object[] { 102, "C10022", "C", 5091 });
    l_Table.Rows.Add(new object[] { 103, "C10023", "C", 7184 });
    l_Table.Rows.Add(new object[] { 127, "D10001", "D", 5775 });
    l_Table.Rows.Add(new object[] { 128, "D10002", "D", 6340 });
    l_Table.Rows.Add(new object[] { 129, "D10003", "D", 1671 });
    l_Table.Rows.Add(new object[] { 130, "D10004", "D", 2434 });
    l_Table.Rows.Add(new object[] { 131, "D10005", "D", 2740 });
    l_Table.Rows.Add(new object[] { 132, "D10006", "D", 5798 });
    l_Table.Rows.Add(new object[] { 133, "D10007", "D", 5826 });
    l_Table.Rows.Add(new object[] { 134, "D10008", "D", 6959 });
    l_Table.Rows.Add(new object[] { 135, "D10009", "D", 2469 });
    l_Table.Rows.Add(new object[] { 136, "D10010", "D", 6864 });
    l_Table.Rows.Add(new object[] { 137, "D10011", "D", 8379 });
    l_Table.Rows.Add(new object[] { 138, "D10012", "D", 8301 });
    l_Table.Rows.Add(new object[] { 139, "D10013", "D", 7469 });
    l_Table.Rows.Add(new object[] { 140, "D10014", "D", 2079 });
    l_Table.Rows.Add(new object[] { 141, "D10015", "D", 5101 });
    l_Table.Rows.Add(new object[] { 142, "D10016", "D", 9003 });
    l_Table.Rows.Add(new object[] { 143, "D10017", "D", 7630 });
    l_Table.Rows.Add(new object[] { 144, "D10018", "D", 4189 });
 
    return l_Table;
}

Sample.aspx

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="DataGroupPlaceHolder3"
        OnNeedDataSource="RadListView1_NeedDataSource"
        AllowPaging="True" GroupAggregatesScope="AllItems" DataKeyNames="ID">
        <ItemTemplate>
            <div style="display: inline-block; background-color: white; padding: 10px; margin: 10px;">
                <div>
                    <b>ID: </b>
                    <%#Eval("ID")%>
                </div>
                <div class="category model">
                    <b>Code: </b>
                    <%#Eval("Code")%>
                </div>
                <div class="category">
                    <b>PIN: </b>
                    <%#Eval("PIN")%>
                </div>
            </div>
        </ItemTemplate>
        <LayoutTemplate>
            <asp:Panel ID="DataGroupPlaceHolder2" runat="server">
            </asp:Panel>
            <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
                Skin="Silk" PageSize="5" class="clearfix">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" FirstButtonText="First" PrevButtonText="Prev"></telerik:RadDataPagerButtonField>
                    <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="10"></telerik:RadDataPagerButtonField>
                    <telerik:RadDataPagerButtonField FieldType="NextLast" NextButtonText="Next" LastButtonText="Last"></telerik:RadDataPagerButtonField>
                </Fields>
            </telerik:RadDataPager>
        </LayoutTemplate>
        <GroupSeparatorTemplate>
        </GroupSeparatorTemplate>
        <DataGroups>
            <telerik:ListViewDataGroup GroupField="Group" DataGroupPlaceholderID="DataGroupPlaceHolder2"
                SortOrder="Ascending">
                <DataGroupTemplate>
                    <asp:Panel runat="server" ID="Panel3" GroupingText='<%# "Group:<b>" + (Container as RadListViewDataGroupItem).DataGroupKey + "</b>"%> '>
                        <asp:PlaceHolder runat="server" ID="DataGroupPlaceHolder3"></asp:PlaceHolder>
                    </asp:Panel>
                </DataGroupTemplate>
                <GroupAggregates>
                    <telerik:ListViewDataGroupAggregate Aggregate="First" DataField="Group" />
                </GroupAggregates>
            </telerik:ListViewDataGroup>
        </DataGroups>
    </telerik:RadListView>
</telerik:RadAjaxPanel>     

Robin
Top achievements
Rank 2
 answered on 09 Jun 2015
1 answer
106 views

Hi all,

 I'm trying to validate some fields in a FormTemplate inside of a RadGrid and everything is working fine except for one problem. Whenever the submit button is pressed, an async postback is triggered and after postback the validators are triggered. Functionality wise it works fine, the update/insert isn't persisted, but I don't understand why the post-back is occurring (and causing the ajax loading panel to trigger) instead of the validation occurring all on the client side. Is it possible to prevent the post-back? Form is below and the page is using RadAjaxManager for async. Thanks.

<EditFormSettings EditFormType="Template" CaptionFormatString="Create/Edit Broker" PopUpSettings-Modal="True">
    <FormTemplate>
        <div class="form-template">
            <table>
                <tr>
                    <td>Name</td>
                    <td>
                        <asp:TextBox ID="tbName" runat="server" Text='<%# Bind("NAME") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="tbName" ValidationGroup="form" ErrorMessage="Required!" Display="Dynamic" CssClass="required" />
                    </td>
                </tr>
                <tr>
                    <td>Broker</td>
                    <td>
                        <icl:KeyNameDropDown runat="server" ID="ddlBroker" AppendDataBoundItems="True" />
                        <asp:RequiredFieldValidator ID="rfvBroker" runat="server" InitialValue="0" ControlToValidate="ddlBroker" ValidationGroup="form" ErrorMessage="Required!" Display="Dynamic" CssClass="required" />
                    </td>
                </tr>
                <tr>
                    <td>Is Active</td>
                    <td>
                        <asp:CheckBox ID="cbActive" runat="server" Checked='<%#  Eval("ISACTIVE").ToString().Equals("True") %>' />
                    </td>
                </tr>
            </table>
 
            <asp:LinkButton ID="btnUpdate" runat="server"
                Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' ValidationGroup="form" />
        </div>
    </FormTemplate>
</EditFormSettings>

Eyup
Telerik team
 answered on 09 Jun 2015
0 answers
199 views
Model:-
public class PurchaseOrder
{
 
public string PlanedDate { get; set; }
public DateTime? PlanedDateTime { get; set; }
public string PlanedDateString { get; set; }
 
public string CompletionDate { get; set; }
 
        [Display(Name = "Completion Date")]
        public DateTime? CompletionDateTime { get; set; }
        public string CompletionDateString { get; set; }
 
 
 
}
 
 
 
Controller:-
private void ModifyFilters(IEnumerable<IFilterDescriptor> filters)
        {
            if (filters.Any())
            {
                foreach (var filter in filters)
                {
                    var descriptor = filter as FilterDescriptor;
 
                    if (descriptor != null && (descriptor.Member == "PlanedDateTime" || descriptor.Member == "ModifiedDateTime" || descriptor.Member == "CompletionDateTime" ||
                    descriptor.Member == "CharterDateTime" || descriptor.Member == "UpLiftDateTime" || descriptor.Member == "PurchaseOrderDateTime" || descriptor.Member == "InvoiceSubmittedDateTime"))
                    {
                         descriptor.Value = Convert.ToDateTime(descriptor.Value.ToString().Trim()).ToShortDateString();
                        //Not Equal Op  We send Only Date
                    }
  if (descriptor != null && descriptor.Member == "PlanedDateTime")
                    {
                        descriptor.Member = "PlanedDate";
                        
                    else if (filter is CompositeFilterDescriptor)
                    {
                        ModifyFilters(((CompositeFilterDescriptor)filter).FilterDescriptors);
                    }
                }
            }
        }

 

 

Controller:-
  public ActionResult PurchaseCellarOrder_Read([DataSourceRequest] DataSourceRequest request, FormCollection formcol)
        {
         XrmServiceContext xrm = new XrmServiceContext(CrmService.Service);
            var totalRecordCount = 0;
 
            Guid ParentCustomerId = xrm.ContactSet.SingleOrDefault(i => i.Id == new Guid(HttpContext.User.Identity.Name)).ParentCustomerId != null ? xrm.ContactSet.SingleOrDefault(i => i.Id == new Guid(HttpContext.User.Identity.Name)).ParentCustomerId.Id : Guid.Empty;
          List<PurchaseOrderModel> purchaseOrderList = new List<PurchaseOrderModel>();
            if (ParentCustomerId != Guid.Empty)
            {
                ModifyFilters(request.Filters);
                   po.PlanedDate = entity.Attributes.Contains("tcrmb_planneddate") ? (TimeZoneInfo.ConvertTimeFromUtc(Convert.ToDateTime(entity.Attributes["tcrmb_planneddate"].ToString()), timezone)).ToShortDateString().Trim() : "--";
                    po.PlanedDateTime = entity.Attributes.Contains("tcrmb_planneddate") ? (TimeZoneInfo.ConvertTimeFromUtc(Convert.ToDateTime(entity.Attributes["tcrmb_planneddate"].ToString()), timezone)).Date : (DateTime?)null;
                    po.PlanedDateString = entity.Attributes.Contains("tcrmb_planneddate") ? entity.FormattedValues["tcrmb_planneddate"] : "--";
   purchaseOrderList.Add(po);
             }
      var page = request.Page;
         
       request.Page = 1;
 
            var result = purchaseOrderList.ToDataSourceResult(request);
            if (totalRecordCount <= request.PageSize)
            {
                result.Total = purchaseOrderList.Count;
            }
            else
            {
                result.Total = totalRecordCount;
            }
 
            return Json(result);
}
View:-
 
 
@model SupplierPortal.Models.PurchaseOrderModel
@using Kendo.Mvc.UI
 
@(Html.Kendo().Grid<SupplierPortal.Models.PurchaseOrderModel>().Name("PurchaseCellarOrders")
                        .DataSource(ds => ds.Ajax()
                            .Read(r => r.Action("PurchaseCellarOrder_Read", "PurchaseOrder"))
                        .Model(m => m.Id(p => p.PurchaseOrderId))
                        .ServerOperation(true)
                         .Sort(sort => sort.Add(po=>po.ModifiedDateTime).Descending())        
                         .PageSize(50).Events(e => e.RequestEnd("requestEnd"))
                        )
                        .Columns(cols =>
                        {
                            cols.Bound(con => con.PurchaseOrderId).Title("<input type='checkbox' id='checkAll'/>").Filterable(false).Sortable(false)
                                .ClientTemplate("<input type='checkbox'  #=PurchaseOrderId ? checked='':'' # class='check-box' onchange='SetCheckBOX(this)'/>");
 
                            cols.Bound(con => con.PHCNumber).Title("PHC");
                            cols.Bound(con => con.PubName);
                            cols.Bound(con => con.PostCode);
                            cols.Bound(con => con.CaseNumber).Visible(false);
                            cols.Bound(con => con.PONumber).Title("Purchase Order Number");
                            cols.Bound(con => con.CharterDate).Format("{0:dd/MM/yyyy}").Visible(false);
                            cols.Bound(con => con.CharterDateTime).ClientTemplate("#=CharterDateString #");
                            cols.Bound(con => con.PlanedDate).Format("{0:dd/MM/yyyy}").Visible(false);
                            cols.Bound(con => con.PlanedDateTime).ClientTemplate("#=PlanedDateString #").Title("Planned Date");
                            cols.Bound(con => con.CompletionDate).Format("{0:dd/MM/yyyy}").Visible(false);
                            cols.Bound(con => con.CompletionDateTime).Title("Work Done Date").ClientTemplate("#=CompletionDateString #");
                            cols.Bound(con => con.Status).Filterable(false).Sortable(false).Visible(false);
                            cols.Bound(con => con.StatusReason).Sortable(false).Title("Status Reason");
                            cols.Bound(con => con.Classification).Width(120);
                            cols.Bound(con => con.ModifiedDate).Format("{0:dd/MM/yyyy}").Visible(false);
                            cols.Bound(con => con.ModifiedDateTime).ClientTemplate("#=ModifiedDateString #");
                            cols.Bound(con => con.InvoiceSubmittedDate).Format("{0:dd/MM/yyyy}").Visible(false);
                            cols.Bound(con => con.InvoiceSubmittedDateTime).Title("Invoice Submitted").ClientTemplate("#=InvoiceSubmittedDateString #");
                            cols.Bound(con => con.OnHold);
                            cols.Bound(con => con.OnHoldBool).Visible(false);
 
                            //cols.Bound(con => con.PONumber);
 
 
                        })
                                                 .Selectable(selectable => selectable.Mode(GridSelectionMode.Multiple).Type(GridSelectionType.Row))
        //.Events(events => events.DataBound("onDataBound"))
                                                 .Pageable()
                                                 .Sortable()
                                                 .Filterable()
 
    )

 

 here I got Filter Binding issues...when Give 28/05/2014 in Planned Date 28/05/2015  "On or Before"  in Controller Side I got Full record But it Excute  the Following line

 var result = purchaseOrderList.ToDataSourceResult(request); 

Some Of the Records are missing ....I unable to find where the ..issues 

I attach Following image First one is webportal one...in this we missing 2  records of planned date 08/05/2015 and 07/05/2015 but it exist in Controller At the time of binding...It Show in second image .....help me here ...where is the  issues.

 

 

Sairam
Top achievements
Rank 1
 asked on 09 Jun 2015
2 answers
1.7K+ views

Hi support Team,

 In Kendo ui Grid ...I am Apply the Composite Filter ...But Problem with The ...Here in Filter ....I have some  "True" or "False"  Column ......Instead of Showing The "True"  ...."Y" and "False" ...."N"...So  I am Apply Following Logic For that 

 C# Code When User Gives  "Y" or "N"....based on That  .....setting True or False.

   private static void addFilter(XElement newFilter, FilterDescriptor firstFilter, string crmAttributeName, GetCrmColumnName getColumnInfo)
     {
            if (firstFilter.Member == "OnHold")
         {
                if (firstFilter.Value.ToString().ToLower() == "y")
                {
                    firstFilter.Value = true;
                }
                else if (firstFilter.Value.ToString().ToLower() == "n")
                {
                    firstFilter.Value = false;
                }
            }
                newFilter.Add(new XElement("condition",
                    new XAttribute("attribute", crmAttributeName),
                    new XAttribute("operator", getOperator(firstFilter.Operator, crmAttributeName)),
                    new XAttribute("value", String.Format(getOperatorFormat(firstFilter.Operator), firstFilter.Value.ToString().Trim()))));           
        }

 After Result Came I Need To ..Assign Same "Y" or "N"

So I Write The Following code

    foreach (var n in request.Filters)
            {           
                    if (((FilterDescriptor)(n)).Member == "OnHold")
                    {
                        if (((FilterDescriptor)(n)).Value.ToString().ToLower() == "true")
                        {
                            ((FilterDescriptor)(n)).Value = "y";
                        }
                        else
                        {
                            ((FilterDescriptor)(n)).Value = "n";
                        }
                    
                }          
            }

 

It Work Fine ....For Normal Filter ...When ...I suppose ....Use CompositeFilter Then  I got Problem....If ...Work with Composite Filter ..I need Display ...Not Empty or an error...

 

 

  foreach (var n in request.Filters)
            {
                if (n is CompositeFilterDescriptor==true)
                {
                    if (((CompositeFilterDescriptor)(n)).FilterDescriptors.Count() >= 2)
                    {
                     
                    }
                }
                else
                {       
                    if (((FilterDescriptor)(n)).Member == "OnHold")
                    {
                        if (((FilterDescriptor)(n)).Value.ToString().ToLower() == "true")
                        {
                            ((FilterDescriptor)(n)).Value = "y";
                        }
                        else
                        {
                            ((FilterDescriptor)(n)).Value = "n";
                        }
                    }
                }          
            }

Currently.....It  Work For Composite Filter also..But when .....we Include Filter Of "Y" or "N".....I got ...Problem....When User Give even Though ..."Y" or "N"...Columns in the Composite Filter.....We need to Display....matched Columns.....

 

 

Sairam
Top achievements
Rank 1
 answered on 09 Jun 2015
7 answers
252 views

Hi Team,

We are using Telerik Rad editor in our SharePoint 2013 environment and activated "Use RadEditor to edit HTML fields" feature to replace the default Rich Html editor with Rad Editor. When we edit a page and make any changes in Rad editor content and check in the page, sometimes Rad editor looses its content and blank page gets checked in.

Kindly suggest how can we resolve this issue.

Thanks & Regards,

Brijesh Patil

Ianko
Telerik team
 answered on 09 Jun 2015
1 answer
71 views

Hi There,

When looking for your client side documentation for RadComboBox today I notice that much of the API I am used to is not present. eg. set_text() and other accessors.

It appears there is only trackChanges and commitChanges listed as methods on the RadComboBox.

See http://docs.telerik.com/devtools/aspnet-ajax/controls/combobox/client-side-programming/objects/radcombobox-object

 

Just wondering where I can get access to this documentation online now.

 

Regards,

Daniel

Ivan Danchev
Telerik team
 answered on 09 Jun 2015
4 answers
881 views

Hi,

I am just wondering if there is full working example of a RadGrid with file download functionality anywhere?

My requirements are pretty simple - 

1. One of the grid columns will contain the actual name of the file (including extension) which I want to present as a clickable link (using asp:LinkButton maybe?).

2. Once the link is clicked the actual path to the physical file will have to be assembled in the code behind (don't want to expose file system details to the client apart from the file name).

3. The browser will allow the user to download the file in the normal way.

That's it. Just wondering if there is a good working example of this anywhere? Please let me know if any clarification is required. 

Thanks :)

Eyup
Telerik team
 answered on 09 Jun 2015
8 answers
1.5K+ views
Hello,

I'm having some trouble with getting the header column of the datagrid I'm exporting to excell to display what I want.  I have the grid display the header the way I want but when I export the grid the excel spread sheet has the header as the column names in my database table.  Can I change that so the spreadsheet headers say what I want?

Thanks,
Kirk
Eyup
Telerik team
 answered on 09 Jun 2015
2 answers
105 views

Hi,

I have developed an application with Telerik 2013 Q1. components. Previously the application was in .Net 3.5 . Now i have upgraded our application to .Net framework 4.0 and hosted our application in Win Server 2012 . The problem we are facing is, All the controls are working fine locally but after hosting. There is an issue with RadCombo. It is not rendering perfectly. or it became read only. we have dynamically populated the Radcombo.

RadCombo is not opening now.

Please help me, as we need this asap..

 

Thanks

Neel

Indranil
Top achievements
Rank 1
 answered on 09 Jun 2015
7 answers
190 views

I am using a radgrid to display data. I want to place a banner on the pdf file that gets downloaded.

this is my code:

<PageHeader>
<MiddleCell Text="<img src='Images/CME-Transcript-HeaderLong.jpg' />" TextAlign="Center" />

<RightCell TextAlign="Center" />
</PageHeader>

 

this inserts a small image in the center but I need it to be displayed as the same length as my radgrid on the pdf. How do I change the size of this image to make it a banner size?

 

Also, I am displaying some data generated dynamically in the middle of the header. I need to move it below the header but before the radgrid on the pdf. I need to display it in a horizontal line above the grid. How do I go about changing the position of data?

 

headerText += "<br /><span style='font-size:8px;font-family:Segoe UI;'>Report Date: " + DateTime.Now.Date.ToShortDateString() + "</span>" ;
headerText += "<br /><span style='font-size:8px; font-family:Segoe UI;'>" + lblParticipantName.Text + "</span>";
headerText += "<br /><span style='font-size:8px; font-family:Segoe UI;'>SDMS Member #: " + lblNo.Text + "</span>";

RadGrid1.ExportSettings.Pdf.PageHeader.RightCell.Text = headerText;

Thanks,

Kostadin
Telerik team
 answered on 09 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?