Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
154 views

 

Dim EmailAddress As String
'set EmailAddress to a value retrieved from the database dynamically
Dim mailStr= ("mailto:" & EmailAddress)
System.Diagnostics.Process.Start(mailStr)

With mailto, does it use the customer's or the web server's default mail client to open an Outlook message?
Also, does the web server must be able to send email through Outlook Express? If it uses the customer's mail client to send email then the web server does not need to be configured to open a message or send a message, correct?
Somehow that code works for localhost which has Outlook but not on other web server which has Outlook Express.

Lisa
Top achievements
Rank 1
 answered on 02 Aug 2012
5 answers
252 views
whats the best way to do this?

i have a column in my grid set to be a hyperlink column.

i want to be able to click on this link and launch an edit form in a radwindow that is prepopulated with the row item data.

so need a way to pass row item data to the edit form....
Mark
Top achievements
Rank 1
 answered on 02 Aug 2012
4 answers
232 views
I am having a issue where Placing a Radbutton in a Grid Template Column, displays and functions correctly in IE8 but does not display correctly in IE7 or running IE8 in compatibility mode.  I saw a similar post but it dealt with the Resize event, my window is not being resized.

I have attached my code for the grid and a sample of the grid when viewed on IE7.  As you can see the buttons no longer scroll with the grid and are rendered above the grid. 

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" 
        GridLines="None" onneeddatasource="RadGrid1_NeedDataSource" Skin="Forest">
  
        <ClientSettings>
                <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="True" />
            </ClientSettings>
<MasterTableView AllowPaging="True" PageSize="15">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
  
    <Columns>
        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" 
            UniqueName="TemplateColumn">
            <ItemTemplate>
              <telerik:RadButton ID="RadButton1" runat="server" 
                                        Skin="Forest" Text="Edit Rec" >
                                        <Icon PrimaryIconCssClass="rbEdit" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                    </telerik:RadButton>
                                    </ItemTemplate>
      
  
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="Signer_Name" 
            FilterControlAltText="Filter column column" UniqueName="column">
        </telerik:GridBoundColumn>
    </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
  
    </telerik:RadGrid>

 

 

 

 

Slav
Telerik team
 answered on 02 Aug 2012
6 answers
450 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
129 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
206 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
101 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
439 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
133 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
154 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?