Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
427 views
I'm a little puzzled at where Telerik fits in with the ASP.NET framework when it comes to the Razor view engine. I have a ASP.NET Razor web site (not MVC, Telerik Razor documentation all points to MVC) but am at a loss as to how to integrate Telerik controls. Is there some documentation which will help me?
Olivier
Top achievements
Rank 1
 answered on 02 Aug 2012
1 answer
106 views
I am using RadCaptcha and I want to add audio for RadCaptch In our Website, for that we downloaded an audio file from telerik that spells the word for an alphabet.But, I need an audio file that spells only alphabet. Could you please send the audio file which spells only alphabet.
Slav
Telerik team
 answered on 02 Aug 2012
4 answers
166 views
Hi all,
I have radgrid with 'EditMode="EditForms"'.
I am trying to put the grid in 'add new record' mode in page load, to insert a new row into the grid so that user need not click the add new button.
I have tried the below code,grid appears in insert mode ,but insert is not working properly.On clicking 'Insert',Radgrid_InsertCommand is not getting fired.I am trying to keep the add/refresh buttons and paging disabled in Prerender event.Please help me on this.

protected void gvNation_PreRender(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                gvNation.MasterTableView.IsItemInserted = true;
                gvNation.Rebind();
            }
GridPagerItem pagerItem = (GridPagerItem)gvNation.MasterTableView.GetItems(GridItemType.Pager)[1];
            GridCommandItem commandItem = (GridCommandItem)gvNation.MasterTableView.GetItems(GridItemType.CommandItem)[1];
            GridCommandItem commandItem1 = (GridCommandItem)gvNation.MasterTableView.GetItems(GridItemType.CommandItem)[0];
          


            if (gvNation.EditIndexes.Count > 0 || gvNation.MasterTableView.IsItemInserted)
            {
                pagerItem.Enabled = false;
                commandItem.FindControl("PlaceHolder1").Visible = false;
                Button btn = (Button)commandItem1.FindControl("btnAdd");
                btn.Enabled = false;
                Button btnR = (Button)commandItem1.FindControl("btnRefresh");
                btnR.Enabled = false;
                gvNation.AllowFilteringByColumn = false;
           
            }
            else              
            {
                pagerItem.Enabled = true;               
                commandItem.FindControl("PlaceHolder1").Visible = true;
                Button btn = (Button)commandItem1.FindControl("btnAdd");
                btn.Enabled = true;
                Button btnR = (Button)commandItem1.FindControl("btnRefresh");
                btnR.Enabled = true;
                gvNation.AllowFilteringByColumn = true;
            }
  
}
Andrey
Telerik team
 answered on 02 Aug 2012
2 answers
87 views
I have a RadGrid that displays on a page, but I would like to get the Max ID of the rows within the Grid.  Right now I am looping through the items within the grid using the code below....

     For Each item As GridDataItem In RadGrid_ProviderReferrals.MasterTableView.Items

     Next


I think that is where I need to start, but I do not know how to pull the Max ID.

Any help would be appreciated.
Aret
Top achievements
Rank 1
 answered on 02 Aug 2012
2 answers
417 views
hi,

I have RadTimePicker, and i need to forbid posting back when time is picked, so I have decided to use RadAjaxManager, now when I have use it and select time picker to update it self, I got this error in my other jquery/ javascript when I am getting ID of server controls client id:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

so what do I do to take out this error? or how do I prevent post back for time picker when time is selected?


skimad
Top achievements
Rank 1
 answered on 02 Aug 2012
1 answer
119 views

Hi,

I am trying to get the selected time range for a new appointment and am getting incorrect information passed into the OnClientAppointmentInserting method.  As shown in the screen shot "appointment selection.jpg" I select a time period of 10:30 am to 12:30 pm, I then right click and select new appointment.  When the OnClientAppointmentInserting method is fired the start time is now 12:00 pm and the end time is now 12:15 pm (see "timeslot.jpg").

Am I missing something or is this an issue with the OnClientAppointmentInserting event?

Thanks

Gavin.

Here is my code

<telerik:RadScheduler ID="rsAppointments" runat="server" 
                DataEndField="AppointmentEndDate" 
                DataKeyField="PatientAppointmentID"
                DataStartField="AppointmentStartDate"
                DataSubjectField="AppointmentTypeID"
                DataDescriptionField="AppointmentTypeID"
                Height="600px" MinutesPerRow="15" 
                onnavigationcomplete="rsAppointments_NavigationComplete"
                OnClientAppointmentInserting="OnInsertAppointment"
                OnClientAppointmentEditing="OnEditAppointment"
                GroupBy="Clinicians" 
                onappointmentcreated="rsAppointments_AppointmentCreated" 
                onappointmentupdate="rsAppointments_AppointmentUpdate" 
                onappointmentdelete="rsAppointments_AppointmentDelete">
                <TimelineView UserSelectable="False" />
                <ResourceTypes>
                    <telerik:ResourceType Name="Clinicians" KeyField="UserID" TextField="ClinicianName" ForeignKeyField="ClinicianID" />
                </ResourceTypes>
                <AppointmentTemplate>
                    <table border="0" cellpadding="3" cellspacing="0" width="100%">
                        <tr>
                            <td style="border: none;" rowspan="2"><asp:Literal ID="litContent" runat="server"></asp:Literal></td>
                        </tr>
                    </table>
                </AppointmentTemplate>
                <AppointmentContextMenuSettings EnableDefault="true" />
                <TimeSlotContextMenuSettings EnableDefault="true" />
            </telerik:RadScheduler>
function OnInsertAppointment(sender, args)
{
    var slot = args.get_targetSlot();
    var dteStart = slot.get_startTime();
    var dteEnd = slot.get_endTime();
    var res = slot.get_resource();
    var resourceID = res.get_key();
    var oManager = GetRadWindowManager();
    var oWnd = oManager.getWindowByName("rwAppointment");
    var URL = "AppointmentEdit.aspx?mode=insert&start=" + dteStart.toString("dd/MM/yyyy HH:mm:ss tt") +
              "&end=" + dteEnd.toString("dd/MM/yyyy HH:mm:ss tt") +
                        "&cID=" + resourceID +
                        "&pid=" + <%= PatientID %>;
    oWnd.setUrl(URL);
    oWnd.show();
    args.set_cancel(true);
}
Plamen
Telerik team
 answered on 02 Aug 2012
1 answer
88 views
How can I call a radajaxmanager from the code behind so that the radgrid uses it?
Eyup
Telerik team
 answered on 02 Aug 2012
1 answer
130 views
IS there any way to disable the onMouseOver event on RadSeperator?
<telerik:RadMenuItem runat="server" IsSeparator="True" />
We have declared onMouseover on the RadMenu.. this gets fired on all RadMenuItems. But i dont want this to be enabled on the Seperator items
Kate
Telerik team
 answered on 02 Aug 2012
5 answers
236 views
Hello,

Within the AppointmentInsert or AppointmentUpdate event handler, how can I get ASP.NET control references from an advanced form edit/insert template?  I need to find an ASP.NET control in the template within these two events only, and use its value for save.

Thanks.
Peter
Telerik team
 answered on 02 Aug 2012
0 answers
114 views
Hello,

I am working on an ASP.Net page (using VB) that dynamically builds a table and form.  When the page loads and it's building the form and table there are a series of controls that I'm trying to create and add to an Ajax Manager (that is also created in code) but when I'm trying to do an AjaxManager.AjaxSettings.AddAjaxSetting(oCheckbox, oRadTextBox) I get an error:

ArgumentNullException was unhandled by user code.
Value cannot be null.
Parameter name: page

I was doing some research into the problem and found this post:
http://www.telerik.com/community/forums/aspnet-ajax/ajax/problem-when-using-radajaxmanager-in-umbraco.aspx 

At the end of the post Maria Ilieva was following up with the original poster and said something about MasterPages and how the ajax manager is placed.  I'm using master pages so I suspect that's my problem.  The master page is very simple and has nothing more than formatting, style statements, logos, etc.  The web form that uses the master page is where the ajax manager resides.  I've paraphrased a stripped down simple version of the code here so you can see what I'm doing.  I'm creating two controls, adding them to cells to a row and table then trying to add them to the ajax manager.

oCheckbox.ID = "chk1"
oCheckbox.AutoPostBack = True
oCell.Controls.Add(oCheckbox)
oRow.Cells.Add(oCell)
oRadTextBox.ID = "txtSerial"
oCell.Controls.Add(oRadTextBox)
oRow.Cells.Add(oCell)
oTable.Rows.Add(oRow)
 
oAjaxManager.AjaxSettings.AddAjaxSetting(oCheckbox, oRadTextBox)

The ArumentNullException error occurs on the last statement with the AddAjaxSetting method.  How am I supposed to be calling this from the web form when using master pages?
Tim
Top achievements
Rank 1
 asked on 02 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?