Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
96 views

Hi

I am using Telerik Radeditor and in my application, I want to show the content from editor to the div.

But my application's base css is changing the UI of the editor content which I am rendering in the div. Is there any way, I can apply the editor's css to my div? So that I can get the same look and feel to the div as well

Thanks in advance.

Avinash
Top achievements
Rank 1
 asked on 08 Aug 2016
12 answers
325 views
Looking through a few of my telerik projects and can see the following javascript errors showing up quite a lot.

Exception was thrown at line 1128, column 9009 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:9711a23a-6cf5-4e6c-87f5-29e6585b3026:16e4e7cd:f7645509:22a6274a:86526ba7:874f8ea2:ed16cbdc:b7778d6c:c08e9f8a:e085fe68:82923ac3:1bb784d4
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 1128, column 9238 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:9711a23a-6cf5-4e6c-87f5-29e6585b3026:16e4e7cd:f7645509:22a6274a:86526ba7:874f8ea2:ed16cbdc:b7778d6c:c08e9f8a:e085fe68:82923ac3:1bb784d4
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4, column 9009 in http://localhost:49573/ScriptResource.axd?d=mbGZm65DzNC0tMTq0Elbcc2M1lDuhchN4BXVn4uPZtnyhlRXLPnt-p-dAYxFV7TeQsitN7kLc7Oz6BpWqdRbINK33ULDqonSEovmFOF83pRjvHvKgGo7T1rrGIJbqjjyBiTz_w2&t=ffffffffbde351db
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4, column 9238 in http://localhost:49573/ScriptResource.axd?d=mbGZm65DzNC0tMTq0Elbcc2M1lDuhchN4BXVn4uPZtnyhlRXLPnt-p-dAYxFV7TeQsitN7kLc7Oz6BpWqdRbINK33ULDqonSEovmFOF83pRjvHvKgGo7T1rrGIJbqjjyBiTz_w2&t=ffffffffbde351db
0x800a139e - JavaScript runtime error: SyntaxError


I generally have a RadFormDecorator and RadAjaxManager.  If I remove these, the errors go away.  Any more detail on this?
Maria Ilieva
Telerik team
 answered on 08 Aug 2016
1 answer
346 views

GridExcelExportFormat.Xlsx:

Problems using german special characters like ö ä ü, will be exported as HTML special character &xxx (see screen1.png)

Why?
Maria Ilieva
Telerik team
 answered on 08 Aug 2016
1 answer
80 views

So, I'm trying to use the tab strip and while I know it should be a five minute item, it's turned into a nightmare.  Essentially, all I ever get is the first tab and pageview, the tabs don't respond and the pageview doesn't change.  What am I doing wrong?

<telerik:RadAjaxManager runat="server" >

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />

<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /></UpdatedControls></telerik:AjaxSetting><telerik:AjaxSetting AjaxControlID="RadTabStrip1" ><UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadMultiPage1" /><telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /></UpdatedControls></telerik:AjaxSetting></AjaxSettings></telerik:RadAjaxManager>

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"MultiPageID="RadMultiPage1" SelectedIndex="0">

<Tabs>

<telerik:RadTab runat="server" PageViewID="RadPageView1" Text="A" >

</telerik:RadTab>

<telerik:RadTab runat="server" PageViewID="RadPageView2" Text="B">

</telerik:RadTab>

<telerik:RadTab runat="server" PageViewID="RadPageView" Text="C">

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">

<telerik:RadPageView ID="RadPageView1" runat="server" Width="100%" >` CONTENT HERE

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">` CONTENT HERE

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView3" runat="server" Width="100%">` CONTENT HERE

</telerik:RadPageView>

</telerik:RadMultiPage>

Thank you!

Veselin Tsvetanov
Telerik team
 answered on 08 Aug 2016
15 answers
410 views
I have multiple RadListBoxes and I want to enable Drag and Drop between them. I found a KB article describing how do to this. I downloaded it and it "works". That is to say you can drag items from any list box and drop them on any other. What the demonstration doesn't show is how to make these changes appear back on the server. Ultimately I want the server to remember the new configuration of ListBoxes. Is there a simple way to achieve this?

The KB article I referred to is here

Martin
Fatma
Top achievements
Rank 1
 answered on 06 Aug 2016
2 answers
227 views

So I have a grid with a "custom" editform.  The form opens fine, the cancel button works but when I click on "Update"... nothing. Setting a breakpoint on the event, it's not even firing.  I'd really appreciate any suggestion on what I'm doing wrong. 

My XAML is:

<telerik:RadGrid ID="pendingVehiclesRadGrid" runat="server" AutoGenerateColumns="False"
CellSpacing="0" GridLines="None" AllowPaging="True"
onneeddatasource="pendingVehiclesRadGrid_NeedDataSource"
OnUpdateCommand="pendingVehiclesRadGrid_UpdateCommand"
onitemcommand="pendingVehiclesRadGrid_ItemCommand" >
<MasterTableView DataKeyNames="status,charity,make,model,year,vin,date,id,salePrice,bid,note"
EditMode="EditForms" PageSize="20">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn CommandName="History" Text="History" UniqueName="detailBtn" HeaderText="History" HeaderButtonType="PushButton" AutoPostBackOnFilter="True">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn HeaderText="Charity" ItemStyle-Width="140px" FilterControlAltText="Filter column2 column"
UniqueName="column3" DataType="System.String" DataField="charity" ReadOnly="True">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="VIN" ItemStyle-Width="140px" FilterControlAltText="Filter column6 column"
UniqueName="column7" DataType="System.String" DataField="vin" >
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Year" ItemStyle-Width="140px" FilterControlAltText="Filter column2 column"
UniqueName="column2" DataType="System.Int32" DataField="year">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Make" ItemStyle-Width="140px" FilterControlAltText="Filter column column"
UniqueName="column" DataType="System.String" DataField="make">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Model" ItemStyle-Width="140px" FilterControlAltText="Filter column1 column"
UniqueName="column1" DataType="System.String" DataField="model">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Last Update" ItemStyle-Width="140px" FilterControlAltText="Filter column1 column"
UniqueName="column5" DataType="System.DateTime" DataField="date" ReadOnly="True">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Min. Bid" ItemStyle-Width="140px" FilterControlAltText="Filter column1 column"
UniqueName="column8" DataType="System.Decimal" DataField="bid" DataFormatString="{0:C}" >
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Sale Price" ItemStyle-Width="140px" FilterControlAltText="Filter column1 column"
UniqueName="column6" DataType="System.Decimal" DataField="salePrice" DataFormatString="{0:C}" Display="False">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Notes" ItemStyle-Width="140px" FilterControlAltText="Filter column1 column"
UniqueName="unsoldNotesColumn" DataType="System.String" DataField="note" Display="True">
<ItemStyle Width="140px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Latest Status" ItemStyle-Width="240px">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "Status")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox RenderMode="Lightweight" runat="server" ID="pendingVehiclesRadGridupdateComboBox" DataTextField="Status"
DataValueField="ID" DataSourceID="LinqDataSource1" >
</telerik:RadComboBox>
</EditItemTemplate>
<ItemStyle Width="240px"></ItemStyle>
</telerik:GridTemplateColumn>
<telerik:GridEditCommandColumn FooterText="EditCommand footer" UniqueName="pendingVehiclesRadGridEditCommandColumn"
HeaderText="Edit" HeaderStyle-Width="100px" UpdateText="Update">
<HeaderStyle Width="100px"></HeaderStyle>
</telerik:GridEditCommandColumn>


</Columns>
<EditFormSettings EditColumn-DataType="System.String">
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>

My codebehind looks like this:

private void LoadpendingVehicleRadGrid()
{

CAAData2DataContext db = new CAAData2DataContext();
var validStatuses = new[] { "Assigned", "Donor Called", "Dispatched", "Waiting",
"Title Rec'd", "Sending Title", "Cancelled", "Waiting"};
var ud = db.Updates
.Where(c => !c.Sold)
.GroupBy(c => c.Vehicle, x => x, (x, gr) => new
{
key = x,
list = gr.ToList().OrderByDescending(z => z.TimeStamp).First()
})
.Where(x => validStatuses.Contains(x.list.Status))
.Select(x => x.list).ToList();
var unSoldVehicles = (from u in ud
join v in db.Vehicles on
u.Vehicle equals v.ID
join c in db.Customers on
v.Charity equals c.ID
select new
{
status = u.Status,
make = v.Make,
model = v.Model,
Year = v.Year,
vin = v.VIN_,
charity = c.Name,
date = u.TimeStamp,
id = u.Vehicle,
salePrice = v.SalePrice,
bid = v.MinimumBid,
note = u.Note
}).OrderBy(z => z.charity).ToList();
pendingVehiclesRadGrid.DataSource = unSoldVehicles;



}

protected void pendingVehiclesRadGrid_UpdateCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Update")
{
GridEditableItem item = (GridEditableItem)e.Item;
RadComboBox combo = (RadComboBox)item.FindControl("pendingVehiclesRadGridupdateComboBox");
String note = (item["unsoldNotesColumn"].Controls[0] as TextBox).Text;
var status = (string)item.GetDataKeyValue("status");
if (combo.SelectedItem.Text != status)
{
if (combo.SelectedItem.Text == "Vehicle Sold")
{
CAAData2DataContext dc = new CAAData2DataContext();
Update soldUpdate = new Update();
soldUpdate.Note = note;
soldUpdate.Status = combo.SelectedItem.Text.ToString();
soldUpdate.TimeStamp = DateTime.Now;
soldUpdate.Vehicle = (int)item.GetDataKeyValue("id");
soldUpdate.UpdatedBy = "Paul";
dc.Updates.InsertOnSubmit(soldUpdate);
dc.SubmitChanges();
var vehicleSold = from u in dc.Updates
where u.Vehicle == (Int32)item.GetDataKeyValue("id")
select u;
foreach (Update u in vehicleSold.ToList())
{
u.Sold = true;
}
dc.SubmitChanges();
var vehiclePrice = from v in dc.Vehicles
where v.ID == (Int32)item.GetDataKeyValue("id")
select v;
Vehicle soldVehicle = vehiclePrice.ToList().FirstOrDefault();
GridEditableItem editedItem = e.Item as GridEditableItem;
String price = (editedItem["Column6"].Controls[0] as TextBox).Text;
decimal salePrice = Convert.ToDecimal(price);
soldVehicle.SalePrice = salePrice;
dc.SubmitChanges();

}
else
{
CAAData2DataContext db = new CAAData2DataContext();
Update newUpdate = new Update();
newUpdate.Status = combo.SelectedItem.Text.ToString();
newUpdate.TimeStamp = DateTime.Now;
newUpdate.Vehicle = (int)item.GetDataKeyValue("id");
newUpdate.UpdatedBy = "Paul";
newUpdate.Note = note;
db.Updates.InsertOnSubmit(newUpdate);
db.SubmitChanges();

}


}

}
}

protected void pendingVehiclesRadGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.IsInEditMode)
{
GridEditableItem editItem = (GridEditableItem)e.Item;
RadComboBox combo = (RadComboBox)editItem.FindControl("pendingVehiclesRadGridComboBox");
combo.DataBind();
combo.SelectedValue = DataBinder.Eval(editItem.DataItem, "ID").ToString();
}
}

Thanks in advance... I'm under a lot of pressure to get this working and beats me what's wrong...



Paul
Top achievements
Rank 1
Iron
 answered on 05 Aug 2016
1 answer
113 views

Hi telerik

here is my scenario:

I have a textbox a submit button and two grids in one page

in textbox, users have to insert a name and in that two grids insert some rows

after user pushes submit button all grids rows and textbox's value must insert into database and two grids have to connect whit the textbox record's id;

actually I'm trying to do all these process by just one click

so is there any recommendation to do this?

Kasra
Top achievements
Rank 1
 answered on 05 Aug 2016
3 answers
178 views

Hi There,

I run into an issue that the loading panel is not showing with RadScheduler. I created a test page from the code of the telerik demo, it stills not showing the loading panel, just showing flashes between the postback (when changes the monthview to weekview etc). Please help. Thanks.

Following the the code of SchedulerTest.aspx, and SchedulerTest.aspx.cs

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SchedulerTest.aspx.cs" Inherits="SchedulerTest" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
       <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div>
    <telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" DayStartTime="08:00:00"
        DayEndTime="18:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
        OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
        DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
        DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"
        DataReminderField="Reminder">
        <AdvancedForm Modal="true"></AdvancedForm>
        <TimelineView UserSelectable="false"></TimelineView>
        <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
        <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
        <Reminders Enabled="true"></Reminders>
    </telerik:RadScheduler>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    </div>
    </form>
</body>
</html>

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class SchedulerTest : System.Web.UI.Page
{
    private const string AppointmentsKey = "Telerik.Web.Examples.Scheduler.BindToList.CS.Apts";
 
    private List<AppointmentInfo> Appointments
    {
        get
        {
            List<AppointmentInfo> sessApts = Session[AppointmentsKey] as List<AppointmentInfo>;
            if (sessApts == null)
            {
                sessApts = new List<AppointmentInfo>();
                Session[AppointmentsKey] = sessApts;
            }
 
            return sessApts;
        }
    }
 
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
 
        if (!IsPostBack)
        {
            Session.Remove(AppointmentsKey);
 
            InitializeResources();
            InitializeAppointments();
        }
 
        RadScheduler1.DataSource = Appointments;
    }
 
    protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
    {
        Appointments.Add(new AppointmentInfo(e.Appointment));
    }
 
    protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
    {
        AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);
 
 
        RecurrenceRule rrule;
 
        if (RecurrenceRule.TryParse(e.ModifiedAppointment.RecurrenceRule, out rrule))
        {
            rrule.Range.Start = e.ModifiedAppointment.Start;
            rrule.Range.EventDuration = e.ModifiedAppointment.End - e.ModifiedAppointment.Start;
            TimeSpan startTimeChange = e.ModifiedAppointment.Start - e.Appointment.Start;
            for (int i = 0; i < rrule.Exceptions.Count; i++)
            {
                rrule.Exceptions[i] = rrule.Exceptions[i].Add(startTimeChange);
            }
            e.ModifiedAppointment.RecurrenceRule = rrule.ToString();
        }
 
        ai.CopyInfo(e.ModifiedAppointment);
    }
 
    protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
    {
        Appointments.Remove(FindById(e.Appointment.ID));
    }
 
    private void InitializeResources()
    {
        ResourceType resType = new ResourceType("User");
        resType.ForeignKeyField = "UserID";
 
        RadScheduler1.ResourceTypes.Add(resType);
        RadScheduler1.Resources.Add(new Resource("User", 1, "Alex"));
        RadScheduler1.Resources.Add(new Resource("User", 2, "Bob"));
        RadScheduler1.Resources.Add(new Resource("User", 3, "Charlie"));
    }
 
    private void InitializeAppointments()
    {
        DateTime start = DateTime.UtcNow.Date;
        start = start.AddHours(6);
        Appointments.Add(new AppointmentInfo("Take the car to the service", start, start.AddHours(1), string.Empty, null, new Reminder(30).ToString(), 1));
        Appointments.Add(new AppointmentInfo("Meeting with Alex", start.AddHours(2), start.AddHours(3), string.Empty, null, string.Empty, 2));
 
        start = start.AddDays(-1);
        DateTime dayStart = RadScheduler1.UtcDayStart(start);
        Appointments.Add(new AppointmentInfo("Bob's Birthday", dayStart, dayStart.AddDays(1), string.Empty, null, string.Empty, 1));
        Appointments.Add(new AppointmentInfo("Call Charlie about the Project", start.AddHours(2), start.AddHours(3), string.Empty, null, string.Empty, 2));
 
        start = start.AddDays(2);
        Appointments.Add(new AppointmentInfo("Get the car from the service", start.AddHours(2), start.AddHours(3), string.Empty, null, string.Empty, 1));
    }
 
    private AppointmentInfo FindById(object ID)
    {
        foreach (AppointmentInfo ai in Appointments)
        {
            if (ai.ID.Equals(ID))
            {
                return ai;
            }
        }
 
        return null;
    }
}
 
 
 
 
 
class AppointmentInfo
{
    private readonly string _id;
    private string _subject;
    private DateTime _start;
    private DateTime _end;
    private string _recurrenceRule;
    private string _recurrenceParentId;
    private string _reminder;
    private int? _userID;
 
    public string ID
    {
        get
        {
            return _id;
        }
    }
 
    public string Subject
    {
        get
        {
            return _subject;
        }
        set
        {
            _subject = value;
        }
    }
 
    public DateTime Start
    {
        get
        {
            return _start;
        }
        set
        {
            _start = value;
        }
    }
 
    public DateTime End
    {
        get
        {
            return _end;
        }
        set
        {
            _end = value;
        }
    }
 
    public string RecurrenceRule
    {
        get
        {
            return _recurrenceRule;
        }
        set
        {
            _recurrenceRule = value;
        }
    }
 
    public string RecurrenceParentID
    {
        get
        {
            return _recurrenceParentId;
        }
        set
        {
            _recurrenceParentId = value;
        }
    }
 
    public int? UserID
    {
        get
        {
            return _userID;
        }
        set
        {
            _userID = value;
        }
    }
 
    public string Reminder
    {
        get
        {
            return _reminder;
        }
        set
        {
            _reminder = value;
        }
    }
 
    private AppointmentInfo()
    {
        _id = Guid.NewGuid().ToString();
    }
 
    public AppointmentInfo(string subject, DateTime start, DateTime end,
        string recurrenceRule, string recurrenceParentID, string reminder, int? userID)
        : this()
    {
        _subject = subject;
        _start = start;
        _end = end;
        _recurrenceRule = recurrenceRule;
        _recurrenceParentId = recurrenceParentID;
        _reminder = reminder;
        _userID = userID;
    }
 
    public AppointmentInfo(Appointment source)
        : this()
    {
        CopyInfo(source);
    }
 
    public void CopyInfo(Appointment source)
    {
        Subject = source.Subject;
        Start = source.Start;
        End = source.End;
        RecurrenceRule = source.RecurrenceRule;
        if (source.RecurrenceParentID != null)
        {
            RecurrenceParentID = source.RecurrenceParentID.ToString();
        }
 
        if (!String.IsNullOrEmpty(Reminder))
        {
            Reminder = source.Reminders[0].ToString();
        }
 
        Resource user = source.Resources.GetResourceByType("User");
        if (user != null)
        {
            UserID = (int?)user.Key;
        }
        else
        {
            UserID = null;
        }
    }
}

Meng
Top achievements
Rank 1
 answered on 05 Aug 2016
1 answer
271 views

I have some custom filtering on a grid I'm doingwith comboboxes and AJAX. Each combobox is linked to the grid the the rad ajaxmanager like so:

 

                    <telerik:AjaxSetting AjaxControlID="ddlXXX">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>

 

I'm calling a GetDate() method that returns a data table to bind the grid to the data source in the page_prerender event.  All works well, except for when I uncheck a checkbox in the combobox. If I check a checkbox it causes the post back and the GetData() method is called, but if I uncheck a checkbox the GetData() method is never called and the filtering isnt refreshed. Am I missing something in the Page LifeCycle? Why wouldn't the Page_PreRender event be called when I uncheck a checkbox inside a combobox? Should the DataBind be called at another point in the page's lifecycle?

Peter Milchev
Telerik team
 answered on 05 Aug 2016
1 answer
200 views

Hi all,

 

In RadGrid when the Virtualization feature is enabled and ocurres a postback the Grid scrolls to top even if the SaveScrollPosition property is set to True. This behavior can be reproduced in Demo page: http://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx following these steps:

  • Scroll to any position
  • Click in any column to Sort
  • After that a post back ocurres and the scroll bar is back to the initial position

This is a bug? There's any workaround to solve this issue?

 

Regards!

 

Maria Ilieva
Telerik team
 answered on 05 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?