Sorry guys if this is a question, but I am a newbie in programming language and this is the first time I use RadWindow.
I have a and it displays a dialog. As you know, after closing this dialog, its Close handler function will be hit. In there, I return a boolean value.
And my problem is that I want to get the return value directly from the Close handler without using any global flags.
Please reference the snippet code below to get more detail.
Function used for showing the dialog:
function
showDialog() {
var
url =
"ChildPage.aspx"
;
var
wnd = window.radopen(url,
'Child Dialog'
);
wnd.set_modal(
true
);
wnd.setSize(400, 120);
wnd.set_minHeight(300);
wnd.set_minWidth(100);
wnd.set_destroyOnClose(
true
);
wnd.set_keepInScreenBounds(
true
);
wnd.set_overlay(
false
);
wnd.set_visibleStatusbar(
false
);
wnd.set_visibleTitlebar(
true
);
wnd.add_close(closeChildDialogHandler); //closeChildDialogHandler is Close handler
wnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Resize);
wnd.show();
wnd.center();
}
And Close handle function. As you see, I want to return true|false value in this handler.
function
closeChildDialogHandler(sender, args) {
var
flag =
false
;
var
objConfirmSQ = args.get_argument();
if
(objConfirmSQ !=
null
&&
typeof
objConfirmSQ[
'returnValue'
] !=
"undefined"
) {
console.log(
"objConfirmSQ['returnValue'] = "
+ objConfirmSQ[
'returnValue'
]);
return
true
;
}
else
{
return
false
;
}
}
OK, and is there any way I can receive the true|false value from the handler like this:
function
myFunction(){
var
myVar = closeChildDialogHandler(unknown_param, unknown_param)
//Not sure about this
}
I have a radgrid set up to allow filtering on date columns which appears to be working fine.
However I can't work out how to deal with invalid input. For example entering text instead of a date crashes the page.
Can anyone point me in the right direction of how I can either trap the error (eg where to put a try/catch block) and/or how I can apply an input mask?
The ability to connect to a database using ASP.Net and C# and retrieve the hierarchical attribute of an entity in order to plot and draw its position within an org chart on a web page.
I have a RadGrid that contains a NestedView Template. With the export option, i DO NOT want the NestedView to export (even if the nested view is visible).
While the grid item isn't expanded, i don't see the NestedView data. However, when one is expanded, it will export. How do I keep that from happening?
<telerik:RadMenu ID="RadMenu2" runat="server"> |
<Items> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="True" |
Font-Names="Arial" Font-Size="Small" ForeColor="White" |
NavigateUrl="Default.aspx" Text="Home"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="True" |
Font-Names="Arial" Font-Size="Small" ForeColor="White" Text="Overview" |
BorderColor="#212121"> |
<Items> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="False" |
NavigateUrl="HowWeWork.aspx" Text="How We Work" ForeColor="#FF8000"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="False" |
Font-Names="Arial" Font-Size="Small" ForeColor="#FF8000" |
NavigateUrl="ProdsAndSvcs.aspx" Text="Our Products And Services"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="False" |
Font-Names="Arial" Font-Size="Small" ForeColor="#FF8000" |
NavigateUrl="TransTypes.aspx" Text="Transaction Types"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="False" |
Font-Names="Arial" Font-Size="Small" ForeColor="#FF8000" |
NavigateUrl="PropertyTypes.aspx" Text="Property Types"> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="True" |
Font-Names="Arial" Font-Size="Small" ForeColor="White" Text="My Account" BorderStyle="None" > |
<Items> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="false" |
Font-Names="Arial" Font-Size="Small" ForeColor="#FF8000" Text="My Dashboard" BorderStyle="None"> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" BackColor="#212121" Font-Bold="false" |
Font-Names="Arial" Font-Size="Small" ForeColor="#FF8000" Text="My Reward Points" BorderStyle="None" > |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenu> |
I found following example which integrates Column Series with PivotGrid
http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/chartintegration/defaultcs.aspx
I have implemented this successfully.
I am unable to integrate Pie Chart with PivotGrid. Is there any demo available for same?
Hi, there!
I have a pivot grid with a column field which is Types of budgets, there are 3 in the SQL query: initial budget, real budget, executed value. I want two calculated fields, namely the percentage difference between the initial budget vs real budget and executed value. The result would be something like:
INIT REAL Dif% EXEC Dif%
$1000 $900 -10% $1100 +10%
Is there a way to do it with custom calculated fields?
Thanks a lot!