<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PurchaseRequestControl.ascx.cs" Inherits="Controls.PurchaseRequestControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
link
href
=
"../Styles/PurchaseRequestStyleSheet.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
asp:PlaceHolder
runat
=
"server"
ID
=
"placeHolder"
>
<
script
type
=
"text/javascript"
>
function onNavigate(isMoveNext) {
var tabs = $find('<%= tabStrip.ClientID %>');
var totalNumOfTabs = tabs.get_tabs().get_count();
if (totalNumOfTabs > 0) {
var newTabIndex;
var currentTabIndex = tabs.get_selectedIndex();
if (isMoveNext) {
if (currentTabIndex + 2 == totalNumOfTabs) {
newTabIndex = 0;
}
else {
newTabIndex = currentTabIndex + 2;
}
}
else {
if (currentTabIndex - 1 <
0
) {
newTabIndex
=
totalNumOfTabs
- 2;
}
else {
newTabIndex
=
currentTabIndex
- 2
}
}
tabs.set_selectedIndex(newTabIndex);
}
}
</script>
</
asp:PlaceHolder
>
<
telerik:RadAjaxManager
ID
=
"ajaxManager"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"tabStrip"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"tabStrip"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"multiPage"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"multiPage"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"tabStrip"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"multiPage"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"cartgrdItems"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"multiPage"
LoadingPanelID
=
"ajaxLoadingPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"tabStrip"
LoadingPanelID
=
"ajaxLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
runat
=
"server"
ID
=
"ajaxLoadingPanel"
InitialDelayTime
=
"500"
></
telerik:RadAjaxLoadingPanel
>
<
div
id
=
"control-wrapper"
>
<
div
class
=
"title-and-nav"
>
<
span
></
span
>
<
telerik:RadTabStrip
runat
=
"server"
ID
=
"tabStrip"
MultiPageID
=
"multiPage"
CssClass
=
"tab-strip"
EnableEmbeddedSkins
=
"False"
AutoPostBack
=
"true"
OnTabClick
=
"tabStrip_TabClick"
>
<
Tabs
>
<
telerik:RadTab
IsSeparator
=
"true"
Text
=
"1"
CssClass
=
"tab-number"
Enabled
=
"false"
></
telerik:RadTab
>
<
telerik:RadTab
CssClass
=
"tab"
SelectedCssClass
=
"tab-selected"
Text
=
"Buyer"
PageViewID
=
"pvBuyer"
></
telerik:RadTab
>
<
telerik:RadTab
IsSeparator
=
"true"
Text
=
"2"
CssClass
=
"tab-number"
Enabled
=
"false"
></
telerik:RadTab
>
<
telerik:RadTab
CssClass
=
"tab"
SelectedCssClass
=
"tab-selected"
Text
=
"Supplier"
PageViewID
=
"pvSupplier"
></
telerik:RadTab
>
<
telerik:RadTab
IsSeparator
=
"true"
Text
=
"3"
CssClass
=
"tab-number"
Enabled
=
"false"
></
telerik:RadTab
>
<
telerik:RadTab
CssClass
=
"tab"
SelectedCssClass
=
"tab-selected"
Text
=
"Shipping"
PageViewID
=
"pvShipping"
></
telerik:RadTab
>
<
telerik:RadTab
IsSeparator
=
"true"
Text
=
"4"
CssClass
=
"tab-number"
Enabled
=
"false"
></
telerik:RadTab
>
<
telerik:RadTab
CssClass
=
"tab"
SelectedCssClass
=
"tab-selected"
Text
=
"Cart"
PageViewID
=
"pvCart"
></
telerik:RadTab
>
<
telerik:RadTab
IsSeparator
=
"true"
Text
=
"5"
CssClass
=
"tab-number"
Enabled
=
"false"
></
telerik:RadTab
>
<
telerik:RadTab
CssClass
=
"tab"
SelectedCssClass
=
"tab-selected"
Text
=
"Review"
PageViewID
=
"pvReview"
></
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
</
div
>
<
telerik:RadMultiPage
runat
=
"server"
ID
=
"multiPage"
RenderSelectedPageOnly
=
"true"
>
<!-- ********************************CART START****************************** -->
<
telerik:RadPageView
runat
=
"server"
ID
=
"pvCart"
CssClass
=
"page-view"
>
<
div
class
=
"controls-container"
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"cartgrdItems"
AllowPaging
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"true"
AutoGenerateDeleteColumn
=
"True"
AutoGenerateEditColumn
=
"True"
CellSpacing
=
"0"
GridLines
=
"Horizontal"
GroupingEnabled
=
"False"
ondeletecommand
=
"cartgrdItems_DeleteCommand"
oninsertcommand
=
"cartgrdItems_InsertCommand"
onupdatecommand
=
"cartgrdItems_UpdateCommand"
>
<
MasterTableView
EnableNoRecordsTemplate
=
"true"
CommandItemDisplay
=
"TopAndBottom"
EditMode
=
"InPlace"
InsertItemPageIndexAction
=
"ShowItemOnCurrentPage"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"true"
AddNewRecordText
=
"Add Item"
/>
<
NoRecordsTemplate
>Add Items</
NoRecordsTemplate
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
<
br
/>
<
div
class
=
"navigation-buttons"
>
<
asp:Button
ID
=
"cartbtnPrevious"
runat
=
"server"
Text
=
"Previous"
OnClientClick
=
"onNavigate(false); return false;"
CssClass
=
"nav-button"
/>
<
asp:Button
ID
=
"cartbtnNext"
runat
=
"server"
Text
=
"Next"
OnClientClick
=
"onNavigate(true); return false;"
CssClass
=
"nav-button"
/>
</
div
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
</
div
>
I'm evaluating the Telerik's Ajax UI controls, and I'm running into an issue with the RadAutoCompleteBox control. If I use this control outside a modal, then the suggestions get displayed. However, if I use this control inside a Bootstrap modal then the suggestions don't show up.
Please see attached files. The ID for the modal in which I'm trying to use the Autocomplete box is: "panPN". The ID of the RadAutoCompleteBox that is working outside the modal is: "acRadBox"
Thanks,
Maria
I'm having some trouble getting the AllowSubmitOnEnter property to work. I have a page with two grids...selecting a row in Grid A populates Grid B. In both grids, my users want to be able to use the enter key to submit inserts/edits on the grid.
I have set the following navigation settings on both grids:
<ClientSettings AllowKeyboardNavigation="true" >
<KeyboardNavigationSettings AllowSubmitOnEnter="true" />
</ClientSettings>
On Grid A, this works perfectly and the users can press enter. However, on Grid B, those settings seem to be getting ignored. When the users press enter to submit an insert/edit, those events are not fired. Instead, the submit button's event is fired.
Can anyone give me a clue as to what to look for? The grids are pretty identical in properties, the biggest difference being that Grid A populates Grid B. I'm confused as to why the exact same properties seem to work on one but are ignored on the other.
Thank you!
Donna
<
CommandItemTemplate
>
<
div
style
=
"padding: 5px 5px;"
>
<
asp:LinkButton
ID
=
"linkBtnAddReport"
runat
=
"server"
CommandName
=
"InitInsert"
>
<
img
style
=
"border:0px;vertical-align:middle;"
alt
=
""
src
=
"../../CSS/images/add.gif"
/> Add New Report
</
asp:LinkButton
>
</
div
>
</
CommandItemTemplate
>
I'm attempting to add an Editor to an existing .NET 4.5 project. All of the other Telerik controls in the project seem fine so far - and RadEditor works at first, but is unable to change to either HTML or Preview mode.
When we click on either HTML or Preview, a File Not Found error is thrown. I've followed a few other threads related to RadEditor issues and have tried some proposed solutions, such as renaming the DialogHandler from .aspx to .axd, but nothing so far has worked. Right now, it appears everything in our web.config, references, etc. match what is in the Telerik Live Examples project.
Has anyone else encountered this problem, or any other ideas of what could be wrong?
Hello
How can I set a RadScheduler modal window to 'movable' by the user like a RadWindow?
My users are confused that the can move other RadWindow modal windows but not the one from the scheduler.
Thanks
Ruggero De Pellegrini
I've recently upgraded to the latest version of Telerik, and it seems like the "ItemsPerRow" property is no longer working for the Custom Drop Down.
Example here: http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultvb.aspx
I've tried to format the list items accordingly, however the <li> styling affects ALL drop downs in the editor.
Is there either a way to get the ItemsPerRow to work properly, or is there a way to specifically refer to just the custom drop down via CSS styling?
Thank you.