Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Hi,
I tried this example http://www.telerik.com/help/aspnet-ajax/panelbar-onclientitemcollapse.html.
Documentation says "The OnClientItemCollapse client-side event occurs after the user has collapsed a panel item.", but if RadPanelBar is collapsed and I click on RadPanelBar header (not on collapse/expand) arrow, OnClientItemCollapse also fires... Is this normal behaviour?

Regards Sid
Nikolay Tsenkov
Telerik team
 answered on 03 Jun 2011
5 answers
454 views
Scenario: I am performing multi level grouping using radgrid and when i click the expand icon it makes a postback. i wanted to avoid postback it should render content n when expand/collapse should not make a postback.

below is the code.
 
protected void Page_Init(object sender, EventArgs e)  
    {  
        RadGrid radGrid1 = new RadGrid();  
        radGrid1.ID = "radGrid1";  
        radGrid1.Skin = "Outlook";  
 
        radGrid1.DataSourceID = "SqlDataSource1";  
        radGrid1.GridLines = GridLines.None;  
 
        radGrid1.MasterTableView.GroupsDefaultExpanded = false;  
 
        GridGroupByExpression expression = new GridGroupByExpression();  
        GridGroupByField gridGroupByField = new GridGroupByField();  
        gridGroupByField = new GridGroupByField();  
        gridGroupByField.FieldName = "name";  
        gridGroupByField.HeaderText = "Name";  
        expression.SelectFields.Add(gridGroupByField);  
 
        gridGroupByField = new GridGroupByField();  
        gridGroupByField.FieldName = "name";  
        gridGroupByField.HeaderText = "Name";  
        expression.GroupByFields.Add(gridGroupByField);  
 
        GridGroupByExpression expression1 = new GridGroupByExpression();  
        gridGroupByField = new GridGroupByField();  
        gridGroupByField.FieldName = "Category";  
        gridGroupByField.HeaderText = "Category";  
        expression1.SelectFields.Add(gridGroupByField);  
 
        gridGroupByField = new GridGroupByField();  
        gridGroupByField.FieldName = "Category";  
        gridGroupByField.HeaderText = "Category";  
        expression1.GroupByFields.Add(gridGroupByField);  
        radGrid1.MasterTableView.GroupByExpressions.Add(expression);  
        radGrid1.MasterTableView.GroupByExpressions.Add(expression1);  
        this.PlaceHolder1.Controls.Add(radGrid1);  
 
 
    }  


Thanks a million...
Gaurav
Top achievements
Rank 1
 answered on 03 Jun 2011
0 answers
85 views
hi all
i have this jquery in my masterpage
$(document).ready(function () {
            $("#LoginDiv").toggle();
            $("#Button3").click(function () {
                $("#Button4").toggle();
            });
            $("#aLink").click(function () {
                $("#LoginDiv").toggle();
             });
 
        });
 but when i click on select check box of radlistview then my logindiv will appear.
this occur when i dont login to site.
how can i correct this?
thankful.
rastin
Top achievements
Rank 1
 asked on 03 Jun 2011
1 answer
59 views
Hi,

Please ignore previous image find below image attached.

Thanks
Peter
Telerik team
 answered on 03 Jun 2011
3 answers
425 views
I have a radgrid and I need to loop through (when the user hits a button) and check if the checkbox(es) has been selected and then get the ID to save into a variable.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowSorting="True"
                    CellSpacing="0" GridLines="None" AutoGenerateColumns="False"
                    AllowMultiRowSelection="True" AllowPaging="True" PageSize="20" >
                    <GroupingSettings CaseSensitive="false" />
                    <MasterTableView ShowFooter="false" DataKeyNames="ID" AllowFilteringByColumn="True" >
                        <Columns>
                            <telerik:GridClientSelectColumn UniqueName="chbxSelection" />
                            <telerik:GridBoundColumn UniqueName="FirstName" SortExpression="First_x0020_Name" HeaderText="First Name"
                                DataField="First_x0020_Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="LastName" SortExpression="Last_x0020_Name" HeaderText="Last Name"
                                DataField="Last_x0020_Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                             <telerik:GridBoundColumn UniqueName="Organization" SortExpression="Organization" HeaderText="Organization"
                                DataField="Organization" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                             <telerik:GridBoundColumn UniqueName="Title" SortExpression="Title" HeaderText="Title"
                                DataField="Title" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" AllowFiltering="true">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="ID" Visible="false" DataField="ID" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings>
                        <Selecting AllowRowSelect="true" />
                    </ClientSettings>
                </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2011
4 answers
158 views
Hello,

I want to load item data in RadMenu by using a SQL query, when testing the below code I can stop at a break point in
RadMenu1_ItemDataBound but not stopping in RadMenu1_ItemClick, I'm wondering what to do in order to be able
to fire OnItemClick. I Don't know what is wrong, please help...

<
telerik:RadMenu ID="RadMenu1" runat="server" Width="100%" style="margin-bottom:2px"
             EnableRoundedCorners="True" EnableShadows="True"
             DataSourceID="SqlDataSource1" 
             DataFieldID="MenuID" DataFieldParentID="ParentID" 
             DataTextField="FieldText" DataValueField="Page" 
             OnItemClick="RadMenu1_ItemClick" onitemdatabound="RadMenu1_ItemDataBound">           
     </telerik:RadMenu>
  
 protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
        {
            if (Request.IsAuthenticated)
            {
                string value=e.Item.Value.ToString();
                Telerik.Web.UI.RadPane topPane = (Telerik.Web.UI.RadPane)HeadLoginView.FindControl("topPane");
                string[] arreglo = value.Split('?');
                topPane.ContentUrl = arreglo[0];
                Telerik.Web.UI.RadPane paneContent = (Telerik.Web.UI.RadPane)HeadLoginView.FindControl("contentPane");
                paneContent.ContentUrl = "Blank.aspx";
                if (value.IndexOf('?') > 0)
                {
                    if (arreglo[1] == "clp=1")
                    {
                        paneContent.Collapsed = true;
                    }
                    else
                    {
                        paneContent.Collapsed = false;
                    }
                }
                else
                {
                    paneContent.Collapsed = false;
                }
                  
            }
  
  
        }
  
        protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)
        {
            e.Item.Value = e.Item.NavigateUrl;
            e.Item.NavigateUrl = "";  
  
        }


Thanks
Antonio
Veronica
Telerik team
 answered on 03 Jun 2011
1 answer
149 views
Hello,

The following code does not fires onclick properly in RadMenu but removing Loginview and loggedintemplate tags
makes it to run, I think something is not being located in order to fire onclick, what would be the
workaround to allow loginview?

Thanks
Antonio

<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<LoggedInTemplate>
 

<
telerik:RadMenu ID="RadMenu1" runat="server" Width="100%" style="margin-bottom:2px"
         EnableRoundedCorners="True" EnableShadows="True"
         DataSourceID="SqlDataSource1" 
         DataFieldID="MenuID" 
         DataFieldParentID="ParentID"
         onitemclick="RadMenu1_ItemClick" onitemdatabound="RadMenu1_ItemDataBound" 
         >
         <DataBindings>
            <telerik:RadMenuItemBinding TextField="FieldText" Depth="0" />
            <telerik:RadMenuItemBinding TextField="FieldText" Depth="1" ValueField="Page" />
        </DataBindings>
 </telerik:RadMenu>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server"
     ConnectionString="<%$ ConnectionStrings:serpoldbConnectionString %>" 
    SelectCommand="select MenuID,ParentID,FieldText,Page from tbMenu" SelectCommandType="Text"
    CancelSelectOnNullParameter="False">
     </asp:SqlDataSource>

 

 

 

 

</LoggedInTemplate>
    </asp:LoginView>

 

 

 

 

 

 

 

 

 


Veronica
Telerik team
 answered on 03 Jun 2011
1 answer
79 views
I am using a DateTimePicker inside a FilterTemplate for a Grid Column that represents a date.

Obviously Selecting a date should filter the contents to that date, but how do I implement 'before this date' or 'after this date' functionality?

The only example I have found so far on your site has two date pickers in the Filter area.
This uses more screen area than I would like.

Thanks
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2011
2 answers
145 views
Hi

When I am checking different checkboxes only one checkbox is getting checked in RadGrid. I followed this "http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html" and also implemented the example given in RadGrid "pagingsortingwithclientsideselecting-ajax" . In my scenario we have master page.

I need that multiple check boxes must be checked.

Help me how can achieve this.

Thank You.
BRK
Top achievements
Rank 1
 answered on 03 Jun 2011
5 answers
143 views
Hello,

I'm using a GridAttachmentColumn just like the Telerik example: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx
But in my case after the Response.Write in the code-behind a Javasript error c00ce514 is generated. I've searched the web and foud that this is caused by AJAX. Strange in my case because I disabled AJAX during the DownloadAttachment event of the RadGrid.

Anyone any idea or solution?
RvdGrint
Top achievements
Rank 1
 answered on 03 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?