or
001.
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
EnableScriptCombine
=
"True"
>
002.
003.
<
Scripts
>
004.
<%--<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
005.
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
006.
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>--%>
007.
<
asp:ScriptReference
Path
=
"Scripts/json2.js"
/>
008.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
009.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
010.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
011.
012.
<%--radcombobox --%>
013.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
014.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
015.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
016.
<
asp:ScriptReference
Path
=
"Scripts/Common/Navigation/OverlayScript.js"
/>
017.
<
asp:ScriptReference
Path
=
"Scripts/Common/Navigation/NavigationScripts.js"
/>
018.
<
asp:ScriptReference
Path
=
"Scripts/Common/Animation/AnimationScripts.js"
/>
019.
<
asp:ScriptReference
Path
=
"Scripts/ComboBox/RadComboBoxScripts.js"
/>
020.
<
asp:ScriptReference
Path
=
"Scripts/Common/TouchScrollExtender.js"
/>
021.
022.
<
asp:ScriptReference
Path
=
"Scripts/json2.js"
/>
023.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
024.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
025.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
026.
027.
028.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
029.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
030.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
031.
<
asp:ScriptReference
Path
=
"Scripts/Common/Navigation/OverlayScript.js"
/>
032.
<
asp:ScriptReference
Path
=
"Scripts/Common/Navigation/NavigationScripts.js"
/>
033.
<
asp:ScriptReference
Path
=
"Scripts/Menu/RadMenuScripts.js"
/>
034.
035.
<
asp:ScriptReference
Path
=
"Scripts/Menu/MenuItem/RadMenuItem.js"
/>
036.
<
asp:ScriptReference
Path
=
"Scripts/Menu/MenuItem/MobileMenuItem.js"
/>
037.
<
asp:ScriptReference
Path
=
"Scripts/Menu/Views/ClassicView.js"
/>
038.
<
asp:ScriptReference
Path
=
"Scripts/Menu/Views/LiteView.js"
/>
039.
040.
041.
<%-- RadAsyncUpload--%>
042.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
043.
<
asp:ScriptReference
Path
=
"Scripts/Upload/RadProgressManager.js"
/>
044.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
045.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
046.
<
asp:ScriptReference
Path
=
"Scripts/Upload/RadUpload.js"
/>
047.
<
asp:ScriptReference
Path
=
"Scripts/AsyncUpload/RadAsyncUploadScripts.js"
/>
048.
<
asp:ScriptReference
Path
=
"Scripts/Common/Popup/PopupScripts.js"
/>
049.
<
asp:ScriptReference
Path
=
"Scripts/Upload/RadProgressArea.js"
/>
050.
051.
<%--RadGrid --%>
052.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
053.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
054.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
055.
<
asp:ScriptReference
Path
=
"Scripts/Grid/RadGridScripts.js"
/>
056.
<
asp:ScriptReference
Path
=
"Scripts/Grid/GridCellSelection.js"
/>
057.
<
asp:ScriptReference
Path
=
"Scripts/Common/TouchScrollExtender.js"
/>
058.
059.
060.
061.
062.
063.
<%--RadFormDecorator --%>
064.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
065.
<
asp:ScriptReference
Path
=
"Scripts/FormDecorator/RadFormDecorator.js"
/>
066.
<
asp:ScriptReference
Path
=
"Scripts/Common/Popup/PopupScripts.js"
/>
067.
068.
069.
<%--RadAjaxManager,radajaxloadingpanel --%>
070.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
071.
<
asp:ScriptReference
Path
=
"Scripts/Ajax/Ajax.js"
/>
072.
073.
074.
075.
<%--radwindowmanager --%>
076.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
077.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
078.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
079.
<
asp:ScriptReference
Path
=
"Scripts/Common/Widgets/Draggable.js"
/>
080.
<
asp:ScriptReference
Path
=
"Scripts/Common/Widgets/Resizable.js"
/>
081.
<
asp:ScriptReference
Path
=
"Scripts/Common/PopUp/PopUpScripts.js"
/>
082.
<
asp:ScriptReference
Path
=
"Scripts/Common/Animation/AnimationScripts.js"
/>
083.
<
asp:ScriptReference
Path
=
"Scripts/Window/RadWindowScripts.js"
/>
084.
<
asp:ScriptReference
Path
=
"Scripts/Common/TouchScrollExtender.js"
/>
085.
<
asp:ScriptReference
Path
=
"Scripts/Window/RadWindowManager.js"
/>
086.
087.
<%--radbutton --%>
088.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
089.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
090.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
091.
<
asp:ScriptReference
Path
=
"Scripts/Button/RadButtonScripts.js"
/>
092.
093.
094.
<%--RadTextBox--%>
095.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
096.
<
asp:ScriptReference
Path
=
"Scripts/Input/TextBox/RadInputScript.js"
/>
097.
098.
<%--RadToolTip--%>
099.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
100.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
101.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQueryPlugins.js"
/>
102.
<
asp:ScriptReference
Path
=
"Scripts/Common/Animation/AnimationScripts.js"
/>
103.
<
asp:ScriptReference
Path
=
"Scripts/Common/PopUp/PopUpScripts.js"
/>
104.
<
asp:ScriptReference
Path
=
"Scripts/ToolTip/RadToolTipScripts.js"
/>
105.
<
asp:ScriptReference
Path
=
"Scripts/Common/TouchScrollExtender.js"
/>
106.
<
asp:ScriptReference
Path
=
"Scripts/ToolTip/Scripts/RadToolTipManager.js"
/>
107.
108.
109.
110.
<%--RadTabStrip--%>
111.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
112.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
113.
<
asp:ScriptReference
Path
=
"Scripts/Common/Scrolling/ScrollingScripts.js"
/>
114.
<
asp:ScriptReference
Path
=
"Scripts/Common/Navigation/NavigationScripts.js"
/>
115.
<
asp:ScriptReference
Path
=
"Scripts/TabStrip/RadTabStripScripts.js"
/>
116.
117.
118.
<%--RadMultiPage--%>
119.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
120.
<
asp:ScriptReference
Path
=
"Scripts/TabStrip/MultiPage/RadMultiPageScripts.js"
/>
121.
122.
<%--RadNumericTextBox--%>
123.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
124.
<
asp:ScriptReference
Path
=
"Scripts/Input/TextBox/RadInputScript.js"
/>
125.
<
asp:ScriptReference
Path
=
"Scripts/Input/NumericTextBox/RadNumericInputScript.js"
/>
126.
127.
128.
<%--RadDatePicker--%>
129.
130.
<
asp:ScriptReference
Path
=
"Scripts/Common/Core.js"
/>
131.
<
asp:ScriptReference
Path
=
"Scripts/Common/jQuery.js"
/>
132.
<
asp:ScriptReference
Path
=
"Scripts/Input/TextBox/RadInputScript.js"
/>
133.
<
asp:ScriptReference
Path
=
"Scripts/Input/DateInput/RadDateInputScript.js"
/>
134.
<
asp:ScriptReference
Path
=
"Scripts/Calendar/RadCalendarCommonScript.js"
/>
135.
<
asp:ScriptReference
Path
=
"Scripts/Calendar/RadCalendarScript.js"
/>
136.
<
asp:ScriptReference
Path
=
"Scripts/Calendar/RadDatePicker.js"
/>
137.
<
asp:ScriptReference
Path
=
"Scripts/Calendar/RadDateTimePickerScript.js"
/>
138.
<
asp:ScriptReference
Path
=
"Scripts/Calendar/RadTimeViewScripts.js"
/>
139.
<
asp:ScriptReference
Path
=
"Scripts/Calendar/RadPickersPopupDirectionEnumeration.js"
/>
140.
141.
142.
143.
144.
145.
</
Scripts
>
146.
147.
</
telerik:RadScriptManager
>
1.
<
telerik:RadComboBox
ID
=
"MultiCheckComboLocation"
runat
=
"server"
CheckBoxes
=
"true"
2.
Width
=
"80%"
ZIndex
=
"1000000"
3.
ShowMoreResultsBox
=
"true"
4.
EnableVirtualScrolling
=
"true"
CheckedItemsTexts
=
"DisplayAllInInput"
5.
EnableCheckAllItemsCheckBox
=
"true"
EnableEmbeddedScripts
=
"False"
>
6.
</
telerik:RadComboBox
>
Create
PROCEDURE
[dbo].[HGetSubMenu]
(
@categoryid
int
)
AS
begin
DECLARE
@
level
int
/* Creating
temporary
table
for
tree storage*/
CREATE
TABLE
#temp_tree
(
level
int
,
id
int
NOT
NULL
PRIMARY
KEY
,
ptr
int
,
f1
char
(20)
)
INSERT
#temp_tree (
level
, id, ptr, f1)
SELECT
0, categoryid, parentid, categoryname
FROM
HCategroyNew
WHERE
categoryid = @categoryid
SELECT
@
level
= 0
WHILE 1 = 1
BEGIN
INSERT
#temp_tree (
level
, id, ptr, f1)
SELECT
@
level
+ 1, HCategroyNew.categoryid, HCategroyNew.parentid, HCategroyNew.categoryname
FROM
HCategroyNew, #temp_tree tt
WHERE
HCategroyNew.parentid = tt.id
AND
tt.
level
= @
level
IF @@rowcount = 0 BREAK
SELECT
@
level
= @
level
+ 1
END
SELECT
id, ptr, f1,
level
FROM
#temp_tree
DROP
TABLE
#temp_Tree
end
id ptr f1 level
3 1 Bedrooms 0
13 3 Classical 1
14 3 Modern 1
15 3 Contemporary 1
16 3 Transitional 1
17 3 Arte Deco 1
RadMenu1.DataSource = ds.Tables[0];
RadMenu1.Flow = ItemFlow.Horizontal;
RadMenu1.DataTextField =
"f1"
;
RadMenu1.DataFieldID =
"ptr"
;
RadMenu1.DataValueField =
"id"
;
RadMenu1.DataFieldParentID =
"level"
;
RadMenu1.DataBind();
System.Web.HttpUnhandledException (0x80004005): Exception of type
'System.Web.HttpUnhandledException'
was thrown. ---> System.NullReferenceException: Object reference not
set
to an instance of an
object
.
at System.Web.UI.AsyncPostBackTrigger.HasTriggered()
at System.Web.UI.UpdatePanelTriggerCollection.HasTriggered()
at System.Web.UI.PageRequestManager.ProcessUpdatePanels()
at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)