Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Currently I'm facing a strange issue with RadGrid and  RadAjaxManager. While using the paging functionality everything works fine as after the page is loaded or refreshed. But as soon as I start using the pager and change the pages the page size drop down gets disabled.

It does not happen if I don't use RadAjaxManager, but in return I get an annoying page refresh which I'm trying to avoid.
At the moment I was able to solve this issue with ajax UpdatePanel but I'd rather stick with Telerik components if I can.

Do you have any idea what's going on here?

Thanks,
Sam
Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
133 views
Hi,

I've got a RadScheduler with a customized Advanced Edit Form in place, and everything works fine when adding/editing appointments via double-clicking. However, I now need to launch the Advanced Form server-side, and I'm unable to do so successfully. I'm using ShowAdvancedEditForm() to launch it, and when tracing through execution I can see that everything in AdvancedForm.ascx is being run as expected, but the Form is never displayed. Instead, the user is returned to the RadScheduler without any visible change.

Any suggestions as to what I might be doing wrong? I've attached the relevant server-side method below, along with my RadScheduler definition from the page itself. I'm guessing it's because I'm not handling the server-side OnFormCreated event, but after looking at the demos and documentation, I'm at a loss at to what I'd have to do in order to handle it.

private bool EditAppointment(string appointmentID)
{
    // Load the existing Appointment
    Guid appointmentGuid = new Guid(appointmentID);
    Appointment editApt = RadScheduler_Main.Appointments.FindByID(appointmentGuid);
    if (editApt == null)
    {
        return false;
    }
    RadScheduler_Main.ShowAdvancedEditForm(editApt);
    return true;
}

<telerik:RadScheduler ID="RadScheduler_Main" runat="server" StartInsertingInAdvancedForm="true" MinutesPerRow="15"
            Height="80%" SelectedView="TimelineView" FirstDayOfWeek="Monday" OnAppointmentInsert="RadScheduler_Main_AppointmentInsert"
            OnClientFormCreated="schedulerFormCreated" GroupingDirection="Vertical" OnClientAppointmentClick="OnClientAppointmentClick"
            OnAppointmentUpdate="RadScheduler_Main_AppointmentUpdated" OverflowBehavior="Scroll" AppointmentContextMenuSettings-EnableDefault="true"
            OnFormCreated="RadScheduler_Main_OnFormCreated">
            <AdvancedForm Modal="true" />
            <Reminders Enabled="false" />
            <TimelineView NumberOfSlots="5" />
              
            <ResourceStyles>
                <telerik:ResourceStyleMapping Type="App" ApplyCssClass="rsCategoryOrange" Text="ELN" />
                <telerik:ResourceStyleMapping Type="App" ApplyCssClass="rsCategoryGreen" Text="Reporting" />
                <telerik:ResourceStyleMapping Type="App" ApplyCssClass="rsCategoryYellow" Text="Stability" />
                <telerik:ResourceStyleMapping Type="App" ApplyCssClass="rsCategoryBlue" Text="Sample Tracker" />
            </ResourceStyles>
            <AdvancedEditTemplate>
                <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
                    Subject='<%# Bind("Subject") %>'
                    Start='<%# Bind("Start") %>'
                    End='<%# Bind("End") %>'
                    RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                    ApplicationID = '<%# Bind("Applicationid") %>'
                    Task='<%# Bind("Taskid") %>' />
            </AdvancedEditTemplate>
            <AdvancedInsertTemplate>
                <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Insert"
                    Subject='<%# Bind("Subject") %>'
                    Start='<%# Bind("Start") %>'
                    End='<%# Bind("End") %>'
                    RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' 
                    ApplicationID = '<%# Bind("Applicationid") %>'/>
            </AdvancedInsertTemplate>
        </telerik:RadScheduler>
Plamen
Telerik team
 answered on 15 Jun 2011
1 answer
197 views
Hi

I have a master/detail ASP.NET setup with a grid in the middle cell of the master/detail setup. Below is the setup of the grid. When I drag a column up to be grouped, the grid shrinks from a horizontal scrollable grid to one where all the columns are shrunk so that they fit without scrolling. Searched high and low for the necessary setting but to no avail.

Before and after images attached

Help appreciated

   <telerik:RadGrid ID="RadGridData" runat="server" 
    AllowFilteringByColumn="True" AllowSorting="True" GridLines="None" 
    ShowGroupPanel="True" AllowPaging="True" 
        onneeddatasource="RadGridData_NeedDataSource" PageSize="25" 
        ShowStatusBar="True" ViewStateMode="Enabled">
        <MasterTableView Width="100%" Height="100%">
        </MasterTableView>
       <ClientSettings AllowDragToGroup="True" AllowAutoScrollOnDragDrop="False">
           <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" />
       </ClientSettings>
<MasterTableView>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
</MasterTableView>
  
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
    </telerik:RadGrid>
Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
84 views
Hello,

We have recently added the following functionality to a radgrid per the example below:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid

This is working perfectly, however we would like the column filtering to be limited to the available results after a filter.
With the current setup the column filter options are for the entire dataset.

Is it possible for us to limit to the column results to allow for further filter granularity?

One way we thought may work would be to grab the data from the grid after the filter and allow the column to query it for the column filtering options... we were not able to get the datasource of the grid after the filter.

Any suggestions?

Thanks.
Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
56 views
Please take a look at the pic below, as you can see, I have resized my page to fit within the windows, however, the horizontal scroller (as I have marked red), still show up like that (looks like my page is so so horizontally large), it makes my Visual Studio become hang sometime, due to the fact the page is so "large". Please help me how to fix it.

http://imageshack.us/f/577/screenshotva.png

* I noticed that it's happen whenever I drop in any RadComboBox in the page. (The problem is gone after I remove ALL the RadComboBox on the page). Is it a bug within RadComboBox?
Dimitar Terziev
Telerik team
 answered on 15 Jun 2011
1 answer
53 views
hi

i have loaded a treeview from backend now i want to know how to get the value of the checked node in javascript
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2011
7 answers
98 views
Hi,
I need to traslate (localization) the days names in week view to hebrew and could'nt find how to do that through the Localization-... properties of the RadScheduler control.
For example from Sunday to ראשון
Is there a resource file i need to update for the translation?
Thank you.
Veronica
Telerik team
 answered on 15 Jun 2011
1 answer
88 views
When tabbing to the 'select' button on the RadAsyncUpload control and pressing enter, the default click behaviour isn't executed (i.e. the file dialog isn't displayed). Is there a way to get this to work; I've tried binding to the keypress event but the control isn't available in $(document).ready.

This is requirement for disability access, in particular user with sight impairment using screen readers.

Thanks in advance

Dave
Peter Filipov
Telerik team
 answered on 15 Jun 2011
2 answers
139 views
Hi,

Just want to know how to pass parameter from a window to another. In my case, I have a grid and when I open a window, I want to pass the value of the selected row to the new window and put it in a TextBox. To do so, I retrieve the value of the selected row and I put it in a HiddenField. In my new window, I was able to take the parameter and set it in the textbox, but the textbox wasn't refresh. So, here is my code :

document.getElementById("myTextBox").value = GetRadWindow().BrowserWindow.JsFn();

The JsFn() just return the value of the hidden field.

So, once there, how do a refresh my textbox. Or is it a more simple or efficient way to pass a parameter ? Thank you for your answer.
David
Top achievements
Rank 1
 answered on 15 Jun 2011
1 answer
353 views

hi

i use RadAsyncUpload for upload images to my site.

but when adobe flash player not installed in users computer and wants to upload, i get this error

System.Web.HttpException (0x80004005): The file '/Telerik.RadUploadProgressHandler.ashx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at http://elix.ir:80/Telerik.RadUploadProgressHandler.ashx?AsyncProgress=true&RadUrid=510fe1ef-2edf-4e70-be7c-40fe89b586a00&_=1245777283396

any body can tell me how can i fix this error?

I use telerik.web.UI v2011.1.419.40

and my web.config is:
 

<?xml version="1.0"?>
<configuration>
    <system.web>
        <compilation debug="true" defaultLanguage="C#" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </assemblies>
        </compilation>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
            <controls>
                <add tagPrefix="tlk" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
            </controls>
        </pages>
        <httpHandlers>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
        </httpHandlers>
    </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
            <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
        </handlers>
    </system.webServer>
</configuration>

Peter Filipov
Telerik team
 answered on 15 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?