I have a master page:
Inside the side navigation control, is a repeater list of li tags, with links:
LeadList.aspx using the master page above:
Okay, so what I want to do is to ajaxify the whole thing so that when i click the link in side navigation control, the main content place holder get updated by ajax instead of loading the page. How can I do that?
| <div id="sidebar"> |
| <WebCore:SideNavigation id="wwcSideNavigation" runat="server"></WorldWebCore:SideNavigation> |
| </div> |
| <div id="rightbar"> |
| <asp:ContentPlaceHolder ID="cphMain" runat="server"></asp:ContentPlaceHolder> |
| </div> |
Inside the side navigation control, is a repeater list of li tags, with links:
| <a href="Default.aspx" class="dashboard">Dashboard</a> |
| <ul id="treemenu1" class="treeview"> |
| <li>Leads Manager |
| <ul> |
| <li><a href="LeadList.aspx">Leads</a></li> |
| </ul> |
| </li> |
| <li>Users Manager |
| <ul> |
| <li>Users</li> |
| </ul> |
| </li> |
| </ul> |
LeadList.aspx using the master page above:
| <asp:Content ID="cphMain" ContentPlaceHolderID="cphMain" runat="server"> |
| <asp:Button ID="btnAddNew" runat="server" Text="Add New Lead" CssClass="btn" /> |
| <telerik:RadGrid ID="rgLead" runat="server" Skin="Telerik" AllowMultiRowSelection="true" AllowPaging="True" AllowSorting="True" GridLines="None" OnItemCreated="rgLead_onItemCreated" OnItemCommand="rgLead_OnItemCommand" CssClass="gridview"> |
| <MasterTableView TableLayout="Fixed" AutoGenerateColumns="False" DataKeyNames="LeadID" > |
| <Columns> |
| <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="25px" /> |
| <telerik:GridTemplateColumn HeaderText="Name" HeaderStyle-Width="150px" ItemStyle-Font-Size="13px" > |
| <ItemTemplate> |
| <asp:Literal ID="ltrName" runat="server"></asp:Literal> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn HeaderStyle-Width="100px" DataField="LeadId" HeaderText="Lead No" UniqueName="LeadNo" AllowSorting="true" ItemStyle-Font-Size="13px" ></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderStyle-Width="150px" DataField="PhoneNumber" HeaderText="Phone Number" UniqueName="PhoneNumber" AllowSorting="true" ItemStyle-Font-Size="13px" ></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="DtmUpdated" DataType="System.DateTime" HeaderText="Last Updated" UniqueName="DtmUpdated" ItemStyle-Font-Size="13px" ></telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="Actions" ItemStyle-Font-Size="13px" > |
| <ItemTemplate> |
| <asp:Hyperlink ID="hplEdit" runat="server" Text="Edit" ></asp:Hyperlink> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| <HeaderContextMenu Skin="Outlook"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <ClientSettings EnableRowHoverStyle="false"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <FilterMenu Skin="Outlook"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
| </asp:Content> |
Okay, so what I want to do is to ajaxify the whole thing so that when i click the link in side navigation control, the main content place holder get updated by ajax instead of loading the page. How can I do that?