<telerik:RadSplitter id="RadSplitter1" runat="server"> |
<telerik:RadPane id="MiddlePane" runat="server" Width="956" Scrolling="None"> |
<div class="vo_visite_apercu_conteneur"> |
<asp:Image ImageUrl="~/images/flecheGvisite.jpg" ID="flecheGvisite" CssClass="flecheGvisite" AlternateText="gauche" runat="server" /> |
<asp:Image ImageUrl="~/images/flecheDvisite.jpg" ID="flecheDvisite" CssClass="flecheDvisite" AlternateText="droite" runat="server" /> |
<div class="vo_visite_apercu_div_rotator"> |
<telerik:RadRotator ID="RadRotator1" runat="server" RotatorType="Buttons" Width="316px" Height="90px" ItemWidth="79" ItemHeight="75" ScrollDirection="Left" CssClass="vo_visite_apercu_rotator"> |
<ItemTemplate> |
<div class="vo_visite_apercu_item"> |
<div class="vo_visite_apercu_img"> |
<asp:Image ID="imgVeh" runat="server" Width="75" ToolTip="Cliquez pour accèder au détail" ImageUrl='<%# "~/images/" & Container.Dataitem("imgItem") & "-1small.jpg" %>' /> |
</div> |
<div align="center" class="vo_visite_apercu_chkBox"> |
<asp:CheckBox ID="chkVeh" runat="server" /> |
</div> |
</div> |
</ItemTemplate> |
<ControlButtons LeftButtonID="flecheGvisite" RightButtonID="flecheDvisite" /> |
</telerik:RadRotator> |
</div> |
</div> |
</telerik:RadPane> |
</telerik:RadSplitter> |
<
rad:RadGrid
ID
=
"qualRadGrid"
runat
=
"server"
AllowAutomaticDeletes
=
"false"
AllowAutomaticInserts
=
"false"
AllowAutomaticUpdates
=
"false"
AllowPaging
=
"True"
OnInsertCommand
=
"qualRadGrid_InsertCommand"
OnDeleteCommand
=
"CategoryGrid_DeleteCommand"
OnUpdateCommand
=
"qualRadGrid_UpdateCommand"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
DataSourceID
=
"ProgrammeDs"
EnableAJAX
=
"False"
GridLines
=
"None"
RadControlsDir
=
"~/Resources/RadControls/"
Skin
=
"Web20"
SkinsPath
=
"~/Resources/RadControls/Grid/Skins"
Width
=
"750px"
>
<
MasterTableView
AllowMultiColumnSorting
=
"True"
DataKeyNames
=
"ProgId"
DataSourceID
=
"ProgrammeDs"
CommandItemDisplay
=
"Top"
Name
=
"Programme"
>
<
DetailTables
>
<
rad:GridTableView
runat
=
"server"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"QualId"
DataSourceID
=
"QualificationDs"
Name
=
"Qualification"
AllowMultiColumnSorting
=
"True"
AllowAutomaticDeletes
=
"false"
AllowAutomaticInserts
=
"false"
AllowAutomaticUpdates
=
"false"
>
<
ParentTableRelation
>
<
rad:GridRelationFields
DetailKeyField
=
"ProgrammeId"
MasterKeyField
=
"ProgId"
/>
</
ParentTableRelation
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
Columns
>
<
rad:GridEditCommandColumn
ButtonType
=
"ImageButton"
EditImageUrl
=
"~/Resources/Buttons/EditButton.jpg"
>
</
rad:GridEditCommandColumn
>
<
rad:GridBoundColumn
DataField
=
"QualId"
HeaderButtonType
=
"TextButton"
HeaderText
=
"Qual Id"
SortExpression
=
"QualId"
UniqueName
=
"QualId"
Visible
=
"false"
>
</
rad:GridBoundColumn
>
<
rad:GridBoundColumn
DataField
=
"QualDescription"
HeaderButtonType
=
"TextButton"
HeaderText
=
"Short Description"
UniqueName
=
"ShortDesc"
>
</
rad:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
id
=
"editableTables-1"
>
<
tr
>
<
td
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
>Short Description:</
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"ShortTextBox"
Text='<%# Eval("QualDescription") %>' Width="155px"
runat="server" TextMode="MultiLine" Height="30">
</
asp:TextBox
>
<
asp:RequiredFieldValidator
ValidationGroup
=
"validD"
id
=
"ReqSponsorTextBox"
runat
=
"server"
ErrorMessage
=
"*"
ControlToValidate
=
"ShortTextBox"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:CheckBox
ID
=
"requiresSubjects"
runat
=
"server"
Text
=
"Requires Subjects:"
AutoPostBack
=
"true"
OnCheckedChanged
=
"FindTextBox_OnIndexChanged"
/>
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"subjectsCombo"
EnableLoadOnDemand
=
"true"
AutoPostBack
=
"true"
MarkFirstMatch
=
"true"
OnItemsRequested
=
"OnItemsRequested_getSubjects"
runat
=
"server"
RadControlsDir
=
"~/Resources/RadControls/Combobox/Skins"
Width
=
"155px"
Skin
=
"WebBlue"
SkinsPath
=
"~/Resources/RadControls/Combobox/Skins/"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:ImageButton
ID
=
"LinkInsert"
ValidationGroup
=
"validD"
Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>'
ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? true : false %>' />
<
asp:ImageButton
ID
=
"LinkButton1"
Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>'
ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? false : true %>' />
<
asp:ImageButton
ID
=
"LinkButtonCancel"
ImageUrl
=
"~/Resources/Buttons/CancelButton.jpg"
runat
=
"server"
Text
=
"Cancel"
CausesValidation
=
"false"
CommandName
=
"Cancel"
/>
</
td
>
</
tr
>
<
td
>
<
tr
>
<
td
>
<
asp:TextBox
ID
=
"IDTextBox"
Text='<%# Eval("QualId") %>' runat="server" Visible="false">
</
asp:TextBox
>
</
td
>
</
tr
>
</
table
>
</
FormTemplate
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
</
EditFormSettings
>
</
rad:GridTableView
>
</
DetailTables
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<%--<
rad:GridEditCommandColumn
ButtonType
=
"ImageButton"
EditImageUrl
=
"~/Resources/Buttons/EditButton.jpg"
>
</
rad:GridEditCommandColumn
>--%>
<
rad:GridBoundColumn
DataField
=
"ProgId"
HeaderText
=
"Programme ID"
SortExpression
=
"ProgId"
UniqueName
=
"ProgId"
Visible
=
"false"
>
</
rad:GridBoundColumn
>
<
rad:GridBoundColumn
DataField
=
"ProgCode"
HeaderText
=
"Programme Code"
SortExpression
=
"ProgCode"
ConvertEmptyStringToNull
=
"false"
UniqueName
=
"ProgCode"
>
</
rad:GridBoundColumn
>
<
rad:GridBoundColumn
DataField
=
"ProgrammeName"
HeaderText
=
"Programme Name"
SortExpression
=
"ProgrammeName"
ConvertEmptyStringToNull
=
"false"
UniqueName
=
"ProgrammeName"
>
</
rad:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
rad:RadGrid
>
We want to allow our users to configure a RadHtmlChart piechart a bit and save those settings, and when they return to that aspx page, the chart will load with those settings.
Is there a method to save their settings?
For example, the user only wants to see 5 of the 10 legend items by default.
But we still want to allow them to re-enable the none displayed legend items.. and etc...
So the user loads the page. The pie chart has 10 slices and thus 10 items in the legend.
The user clicks on several of the legend items so they are not displayed in the pie chart.
We want to save this configuration for them in the database.
When they revisit the page a few days later, it remembers their view settings for hte chart and displays it.
Then for example they then decide to show two of the excluded legend items by clicking on them again.
They legends that were once excluded are now included.
Etc..etc...
I am trying to open the radwindow on button click event from server side. when I do the same from client side with postback="false" and Onclientclicked="openRadWin" everything works fine. But If I enable the postback and try to call the javascript function openRadWin from server side that opens the radwindow , it is not working.
I am trying to open the radwindow based on the some condition and do some processing and return back to same original page after it completes. Below is my code snippet.
<script type="text/javascript">
function openRadWin() {
var width = 400;
var height = 400;
var left = 200;
var top = 200;/
radopen("popupMsg.aspx", "RadWindow1", width, height, left, top);
}
</script>
<telerik:RadScriptManager ID="mgr" runat="server"></telerik:RadScriptManager>
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" Visible="false"/>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px"
Height="400px" Title="Telerik RadWindow" Behaviors="close">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<div class="demo-container size-thin">
<p>
<telerik:RadButton runat="server" id="radpopup" OnClick="btnad_Click" Text="Open RadWindow" />
</p>
</div>
protected void btnad_Click(object sender, EventArgs e)
{
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "test", "openRadWin();", true);
}
I have a site that allows ("user1" and "user2") to access. "user3" only has access to Test1.aspx. Everything works, but the RadGrid skin doesn't show up. Any ideas?
<system.web>
<authorization>
<allow users="user1, user2"/>
<deny users="*"/>
</authorization>
</system.web>
<location path="Test1.aspx">
<system.web>
<authorization>
<allow users ="user3" />
</authorization>
</system.web>
</location>
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>