or
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="/scripts/js/jquery-1.10.2.min.js" type="text/javascript"></script> <script src="/scripts/js/skel.min.js" type="text/javascript"></script> <script src="/scripts/js/skel-panels.min.js" type="text/javascript"></script> <script src="/scripts/js/skel-init.js" type="text/javascript"></script></head><body><telerik:RadScriptManager ID="ScriptManager1" runat="server"> <Groups> <telerik:ScriptReferenceGroup> <Scripts> </Scripts> </telerik:ScriptReferenceGroup> </Groups></telerik:RadScriptManager> <div id="leftPanel" style="background-color:grey"> <div>Left Panel</div> </div> <div id="rightPanel" style="background-color:grey"> <div>Right Panel</div> </div></body></html>
The following is my skel-init.js
var settings = {
skelJS: {
prefix: '/styles/css/style',
resetCSS: true,
normalizeCSS: true,
boxModel: 'border',
grid: {
gutters: 40
},
breakpoints: {
'widest': { range: '1680-', hasStyleSheet: false, containers: 1400 },
'wide': { range: '-1680', containers: 1200 },
'normal': { range: '-1280', containers: 'fluid', grid: { gutters: 36 }, viewportWidth: 1140 },
'narrow': { range: '-960', containers: 'fluid', grid: { gutters: 32 } },
'narrower': { range: '-840', containers: 'fluid', grid: { gutters: 32, collapse: true } },
'mobile': { range: '-640', containers: 'fluid', grid: { gutters: 32, collapse: true } }
}
},
skelJSPlugins: {
panels: {
panels: {
leftPanel: {
position: 'left',
size: 250,
style: 'push',
swipeToClose: 'true'
},
rightPanel: {
position: 'right',
size: 250,
style: 'push',
swipeToClose: 'true'
}
},
overlays: {
leftButton: {
position: 'top-left',
width: 100,
height: 50,
html: '<div class="toggle" data-action="togglePanel" data-args="leftPanel"></div>'
},
rightButton: {
position: 'top-right',
width: 100,
height: 50,
html: '<div class="toggle" data-action="togglePanel" data-args="rightPanel"></div>'
}
}
}
}
}
skel.init(settings.skelJS, settings.skelJSPlugins);
My style.css
div.toggle
{
position: absolute;
left: 0;
top: 10px;
width: 100%;
height: 100%;
}
div.toggle:before
{
content:"";
display: block;
width: 60px;
height: 30px;
position: absolute;
left: 50%;
margin-left: -30px;
background: center center no-repeat, rgba(25, 25, 25, .90);
border-top: 0;
border-radius: 0.35em 0.35em 0.35em 0.35em;
}
#leftPanel
{
position: relative;
background: #1f1920;
box-shadow: inset 0px -2px 5px 0px rgba(0,0,0,0.25);
font-size: .8em;
color:white;
}
.photo {
width: 115px;
height: 150px;
background-color: white;
display: inline-block;
margin: 5px 5px 5px 5px;
border-radius: 5px;
border: 1px solid black;
}
.info{
width: 115px;
height:150px;
display: inline-block;
font-size: 1.15em;
margin: 5px 5px 5px 5px;
border: 1px solid grey;
float: right;
border-radius: 5px;
background-color: rgba(255, 255, 255, .15)
}
.status{
padding: .25em .25em .25em .25em;
border-bottom: 1px solid grey;
}
#leftPanel:before
{
content: '';
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
function fileUploaded(sender, args) { var id = args.get_fileInfo().ImageID; $(".imageContainer").html("").append($("<img />").attr("src", getImageUrl(id))); $(".info").html(String.format("<strong>{0}</strong> successfully inserted. Record ID - {1}", args.get_fileName(), id));}<telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px">
<ContentTemplate>
<p style="text-align: center;">
<h3>Data</h3>
<telerik:RadGrid ID="RGrid" runat="server" AllowPaging="true" AllowSorting="true" OnNeedDataSource="RGrid_NeedDataSource">
<MasterTableView AutoGenerateColumns="true"></MasterTableView>
</telerik:RadGrid>
</p>
</ContentTemplate>
</telerik:RadWindow>
<telerik:RadCodeBlock runat="server" ID="rdbScripts">
<script type="text/javascript">
function showDialogInitially() {
//alert("786");
var wnd = $find("<%=modalPopup.ClientID %>");
wnd.show();
// Sys.Application.remove_load(showDialogInitially);
}
</script>
</telerik:RadCodeBlock>
this is onbuttonclick code
<telerik:RadButton ID="btnPreview" Text="Preview" runat="server" OnClientClicked="showDialogInitially()" />
It is working only first time but as I close the window and press button again It does not open anymore.
i have already tried this code.
<telerik:RadButton ID="btnPreview" Text="Preview" runat="server" OnClientClicked="showDialogInitially" AutoPostBack="false" />
But its does not work