function
gridContextMenuClicked(toolbar, args) {
var
buttonValue = args.get_item().get_value();
if
(buttonValue ==
"properties_Menu"
) {
var
explorer = $find(
"<%= RootFileExplorer.ClientID %>"
);
var
selectedItem = explorer.get_selectedItem();
if
(selectedItem) {
var
itemPath = selectedItem.get_path();
ShowPropertiesDialog(itemPath);
}
}
}
function
OnWindowClose(sender, args) {
RefreshExplorer();
}
function
RefreshExplorer() {
var
explorer = $find(
"<%= RootFileExplorer.ClientID %>"
);
explorer.refresh();
}
function
OnClientLoad(explorer, args) {
attachHandlers(explorer);
explorer.add_ajaxRequestEnd(
function
() { attachHandlers(explorer); });
}
function
attachHandlers(explorer) {
var
gridContextMenu = explorer.get_gridContextMenu();
gridContextMenu.add_itemClicked(gridContextMenuClicked);
var
tree = explorer.get_tree();
tree.add_contextMenuItemClicked(treeContextMenuClicked);
}
RootFileExplorer.TreeView.Nodes.Clear();
Hi,
Is it allowed to include stylesheet classes inside @media and use them from Apply CSS Class Dropdown?
For example:
@media
screen
{
.test
1
{
background
:
red
;
}
.test
2
{
background
:
blue
;
}
}
.test
3
{
background
:
green
;
}
.test
4
{
background
: yellow;
}
Why are there two different behaviors in Internet Explorer and Chrome/FireFox? Is it a bug?
Result in Internet Explorer:
Apply CSS Class dropdown list has test1, test2, test3, test4 items.
Result in FireFox and Chrome:
Apply CSS Class dropdown list has only test3, test4 items.
<
telerik:RadSplitter
ID
=
"RadSplitter"
runat
=
"server"
Height
=
"100%"
Width
=
"100%"
OnClientLoad
=
"SplitterLoad"
VisibleDuringInit
=
"false"
ResizeWithBrowserWindow
=
"true"
>
<
telerik:RadPane
ID
=
"RadLeftMenuPane"
runat
=
"server"
Width
=
"22px"
BackColor
=
"#efefef"
Scrolling
=
"None"
>
<
telerik:RadSlidingZone
ID
=
"RadLeftMenuSlide"
runat
=
"server"
Width
=
"22"
DockedPaneId
=
"RadConfigurationMenu"
BackColor
=
"#0b497b"
SlideDirection
=
"right"
>
<
telerik:RadSlidingPane
ID
=
"RadCommonLeftMenu"
runat
=
"server"
Title
=
"Menu"
CssClass
=
"RadSlidingPane"
Overlay
=
"true"
>
</
telerik:RadSlidingPane
>
</
telerik:RadSlidingZone
>
</
telerik:RadPane
>
<
telerik:RadPane
ID
=
"RadMiddlePane1"
runat
=
"server"
Scrolling
=
"None"
Width
=
"100%"
Height
=
"100%"
>
<
telerik:RadSplitter
ID
=
"Radsplitter2"
runat
=
"server"
Orientation
=
"Horizontal"
VisibleDuringInit
=
"false"
>
<
telerik:RadPane
ID
=
"Radpane2"
runat
=
"server"
>
<
div
id
=
"pagecontent"
class
=
"PageContent"
style
=
"height: 100%"
>
<
iframe
frameborder
=
"0"
runat
=
"server"
width
=
"100%"
id
=
"Frame"
src
=
"LandingPage.aspx"
>
</
iframe
>
</
div
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
In pageload i am loading RadLeftMenuSlide
Protected void Page_Load(object sender,EventArgs e)
{
LoadUserControl();
}
private void LoadUserControl()
{
_leftNav = (LeftNavigation)LoadControl(_topPath + LEFT_NAV_FILE_PATH);
_leftNav.ParentMenuItem = Module;
RadCommonLeftMenu.Controls.Add(leftNav);
RadCommonLeftMenu.Visible = true;
}
in the LeftNavigation usercontrol i hav one link button called "LeftlinkbuttonwithParameters". if i click on "LeftlinkbuttonwithParameters" link button im redirecting to Landingpage.aspx
"javascript:Redirect('" + Request.ApplicationPath + "Landingpage.aspx');"
Now if i click on LandingPage.aspx page i am loading iframe
now in iFrame(LandingPage.aspx) i have button called btnEnablewithParameters
if i click on the btnEnablewithParameters button i am having having Mode="Edit",
my Left slidingpane RadLeftMenuSlide is loading and i am enabling "LeftlinkbuttonwithParameters" link button
Now if i click on "LeftlinkbuttonwithParameters" link button i should redirect to LandingPage.aspx with Parameter "javascript:Redirect('" + Request.ApplicationPath + "Landingpage.aspx&Mode=' + "Edit");"
Please let me know if you need more clarification regarding above query
Thank you
Shaik Nazeer Hussain.
Hello, all! I had a problem with RadTabStrip. I create a Tab on the client-side by means of a method:
function
addNewTab(id) {
var
tabStrip = $find(
"<%= RadTabStrip1.ClientID %>"
);
var
tab = tabStrip.findTabByValue(id);
if
(!tab) {
tab =
new
Telerik.Web.UI.RadTab();
var
tabName =
"Message №"
+ id;
tab.set_text(tabName);
tab.set_value(id);
tabStrip.trackChanges();
tabStrip.get_tabs().add(tab);
tabStrip.commitChanges();
var
multiPage = $find(
"<%= RadMultiPage1.ClientID %>"
);
var
pageViewId = multiPage.findPageViewByID(
"<%= pageViewDetal.ClientID %>"
);
tab.set_pageViewID(pageViewId._id);
}
tab.set_selected(
true
);
}
Everything is created correctly (i.e. the Tab is created, the value transferred by me is specified for it and PageView is attached to it) but as soon as on page there is PostBack, all created Tabs are cloned, i.e. each Tab created by me has 2 clones, but without the specified value and not attached to PageView, and Tab with the same title is simple.
Creation of clones occurs without the aid of my function. You couldn't prompt the reason of such behavior of the RadTabStrip component and how it is corrected?