protected void btnAdd_Click(object sender, EventArgs e) {
RadSplitter dispositionSplitter = new RadSplitter();
RadPane dispositionPanel = new RadPane();
dispositionSplitter.ID = "splitter";
dispositionPanel.ID = "panel";
dispositionPanel.ContentUrl = "http://www.google.com";
dispositionSplitter.Items.Add(dispositionPanel);
uxDivTest.Controls.Add(dispositionSplitter);
}
// postback page
protected void btnTest_Click(object sender, EventArgs e) {
}
When I click Add Pane button, openning google in RadPane. That's all right. But when I click Refresh Page button to postback page, RadPane is empty and google site disappear.
How shoud I make google appear all the time even when page postback?
Another question: How shoud I add RadSplitter and RadPane dynamic in Client-Side with javascript?
Thank you again!
Jguo
function ExistingonSelectedIndexChanged(sender, args)
{
var listbox = $find("<%= lstAvailablePlans.ClientID %>");
listbox.trackChanges();
listbox.clearSelection();
listbox.commitChanges();
}
function AvailableonSelectedIndexChanged(sender, args)
{
var listbox = $find("<%= lstExistingPlans.ClientID %>");
listbox.trackChanges();
listbox.clearSelection();
listbox.commitChanges();
}
</script>
<table cellpadding="2" cellspacing="2" border="0" class="TableBorder" width="100%">
<tr valign="top">
<td style="width: 105px"> </td>
<td class="clsLabel">
<asp:Label id="lblExisting" runat="server" text="<%$ Resources:pageLabels, lblExistingPlans %>" CssClass="clsLabel"></asp:Label>
</td>
<td style="width: 100px"> </td>
</tr>
<tr valign="top">
<td style="width: 105px"> </td>
<td>
<telerik:RadListBox ID="lstExistingPlans" runat="server" Width="763px" Height="250px" CssClass="clsLable" Skin="Office2007" OnClientSelectedIndexChanged="ExistingonSelectedIndexChanged"></telerik:RadListBox>
</td>
<td style="width: 100px"> </td>
</tr>
<tr valign="top">
<td style="width: 105px"> </td>
<td class="clsLabel">
<asp:Label id="lblAvailable" runat="server" text="<%$ Resources:pageLabels, lblAvailablePlans %>" CssClass="clsLabel"></asp:Label>
</td>
<td style="width: 100px"> </td>
</tr>
<tr valign="top">
<td style="width: 105px"> </td>
<td>
<telerik:RadListBox ID="lstAvailablePlans" runat="server" Width="763px" Height="250px" CssClass="clsLable" Skin="Office2007" OnClientSelectedIndexChanged="AvailableonSelectedIndexChanged"></telerik:RadListBox>
</td>
<td style="width: 100px"> </td>
</tr>
</table>
I could able to clear the selection in first listbox on SelectedIndexChanged client event of second list box and vice versa, but the problem is
1. I select one record in the first list box
2. Then I select one record in the second list box
3. Then the selection in the first list box goes off and selection the second list box shows
4. when i click on finish button and at the sever side when i try to access the second list box selected count is 1 and also the first list box selected count is 1 even though i have cleared it in the client side.
Kindly let me know how to fix this issue or wheather its a bug?
Regards,
Santhosh
Dim
someScript As String = "alertMe"
If (Not Page.ClientScript.IsStartupScriptRegistered(Me.GetType(), someScript)) Then
Page.ClientScript.RegisterStartupScript(
Me.GetType(), someScript, "alert('I was called from Content page!')", True)
End If
| <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceI="SqlDataSource1" |
| GridLines="None" |
| AllowPaging="false" PageSize="25" |
| Skin="Outlook" DataSourceID="SqlDataSource1"> |
| <MasterTableView DataSourceID="SqlDataSource1"> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression > |
| <SelectFields> |
| <telerik:GridGroupByField |
| FieldName="Category" HeaderText=""/> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField |
| FieldName="Category" /> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| <telerik:GridGroupByExpression > |
| <SelectFields> |
| <telerik:GridGroupByField |
| FieldName="Name" HeaderText=""/> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField |
| FieldName="Name" /> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| </MasterTableView> |
| <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="false" AllowColumnsReorder="false"> |
| <Selecting AllowRowSelect="false"></Selecting> |
| </ClientSettings> |
| </telerik:RadGrid> |