Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
486 views
I've had a hierarchical grid w/binds on server mode and a checkbox nested inside the GridTemplateColumn found on the third level. The problem is I can't get to work the functionality such that when user selects a checkbox then scrolls to next page it should retain the expanded state. Currently, I have tried your sample code found on http://www.telerik.com/forums/how-to-maintain-expanded-rows-of-detailtable-after-postback but the problem is for every row selected on a particular page, it also expands the row from detail table on the other pages.

Appreciate your immediate response and help on the matter.


Below is the aspx code

<td>
<Telerik:RadScriptManager runat="server" ID="RadScriptManager1">
</Telerik:RadScriptManager>
<Telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
<Telerik:RadGrid ID="RadGridPatientData" runat="server" AllowMultiRowSelection="true"
CellSpacing="0" Width="945" Height="325" PagerStyle-AlwaysVisible="true" Visible="false"
AllowPaging="True" OnDetailTableDataBind="RadGridPatientData_DetailTableDataBind"
OnNeedDataSource="RadGridPatientData_NeedDataSource" OnItemDataBound="RadGridPatientData_ItemDataBound"
OnItemCreated="RadGridPatientData_ItemCreated" OnPageIndexChanged="RadGridPatientData_PageIndexChanged"
AutoGenerateColumns="true" HeaderStyle-HorizontalAlign="Left">
<PagerStyle Mode="NextPrev" PagerTextFormat="{4} Page {0} of {1}, items {2} to {3} of {5}">
</PagerStyle>
<MasterTableView DataMember="Patient" Width="100%" ClientDataKeyNames="CheckSumId"
DataKeyNames="CheckSumId" AllowMultiColumnSorting="True" AutoGenerateColumns="true"
EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="false">
<DetailTables>
<Telerik:GridTableView DataMember="Admission" ClientDataKeyNames="AdmissionId" DataKeyNames="AdmissionId"
Width="100%" AllowPaging="false">
<DetailTables>
<Telerik:GridTableView DataMember="Document" ClientDataKeyNames="Id" DataKeyNames="Id"
Width="99%" AllowPaging="false">
<Columns>
<Telerik:GridTemplateColumn HeaderText="">
<ItemTemplate>
<asp:CheckBox ID="chkSelectDoc" runat="server" AutoPostBack="true" OnCheckedChanged="chkSelectDoc_CheckChanged" />
</ItemTemplate>
</Telerik:GridTemplateColumn>
</Columns>
</Telerik:GridTableView>
</DetailTables>
</Telerik:GridTableView>
</DetailTables>
<NoRecordsTemplate>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<br />
<p style="color: Black">
No document(s) found...</p>
</td>
</tr>
</table>
</NoRecordsTemplate>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="true" ScrollHeight="400px" UseStaticHeaders="true" />
<Selecting AllowRowSelect="true" />
<ClientEvents OnCommand="function(){}" />
</ClientSettings>
</Telerik:RadGrid>
</Telerik:RadAjaxPanel>
</td>
Pavlina
Telerik team
 answered on 02 Mar 2017
1 answer
197 views

I am trying to bind to the Content Template of a RadPanelBar with and object (see below).  I am able to get the Panel Labels to display but the panel items are not expandable and they don't show the Rad Text Box inside the content. 

 

 

 <telerik:RadPanelBar  RenderMode="Lightweight" ID="RadPanelBar1" Runat="server"  Width="75%">
            <Items>
                <telerik:RadPanelItem runat="server">
                    <ContentTemplate>
                         <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DetailMessage") %>'></telerik:RadTextBox>
                    
                    </ContentTemplate>
                </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelBar>

        public class DetailInfo
        {
            public string DetailMessage { get; set; }
        }
        public class PanelInfo
        {
            public int PanelId { get; set; }
            public string PanelLabel { get; set; }
            public DetailInfo Details { get; set; }
            public string DetailMessage {get; set; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            List<PanelInfo> PanelLabels = Enumerable.Range(1, 10).Select(m =>
                 new PanelInfo
                 {
                     PanelLabel = String.Format("Panel {0}", m),
                     PanelId = m,
                     Details = new DetailInfo { DetailMessage = string.Format("Detail {0}", m) },
                     DetailMessage = String.Format("Message {0}", m),
                 }
               ).ToList();

            RadPanelBar1.DataSource = PanelLabels;
            RadPanelBar1.DataTextField = "PanelLabel";
            RadPanelBar1.DataValueField = "PanelId";
            RadPanelBar1.DataBind();
          
        }

Peter Milchev
Telerik team
 answered on 02 Mar 2017
1 answer
123 views

Hi there,

I would like to change a couple of things regarding styling to the RadSiteMap (see attachment)

1. Remove horizontal line
I want to remove the horizontal lines, like beneath the 'Auxiliary equipment' text and 'Drivetrain' text.

2. Remove indent level
Is there a way to remove the indents before a level (like before the bullets)?

3. Add empty line last level
I want to create extra space between the 2 levels (like extra space between 'Weigh scale hand pallet trucks' and 'Drivetrain')

I hope somebody is able to assist.

Regards,

Marcel

Rumen
Telerik team
 answered on 01 Mar 2017
1 answer
164 views
Is there any option to set the finish button to single click like you can RadButton (SingleClick="true" SingleClickText="Submitting...")?
Rumen
Telerik team
 answered on 01 Mar 2017
1 answer
73 views
How to Increase the space between select button and textbox in RadAsyncUpload
Rumen
Telerik team
 answered on 01 Mar 2017
1 answer
69 views
In particular, wanted to change "Do you want to proceed anyway?" and "No changes has been made." to custom text. Please advice.
Rumen
Telerik team
 answered on 01 Mar 2017
1 answer
110 views
' RQ ' field is datetime,why not show ?
Peter Milchev
Telerik team
 answered on 01 Mar 2017
19 answers
1.3K+ views
Latest Internal Build fixes the problem ASP.NET_AJAX_2008_3_1319

CORRECTION:  It isn't all of my Radgrids in the project but just some of them (I'm still working on figuring out why some work and other don't)  ADDITION:  It is on any column that is a number.  It doesn't matter if it is gridboundcolumn or a gridnumericcolumn. TEMPORARY FIX I added DataType="System.String"  to the column definition and filtering then works.  It seem like a problem with the filter menu for numeric values.


I upgraded my sites to and now all of my filtering has stopped working on all of my RadGrids.  They were all working before I upgraded.  I get the error :
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Telerik.Web.UI.GridFilterFunction.GetFunctionString(String fieldName, String value, Type valueDataType, GridTableView tableView)
at Telerik.Web.UI.GridColumn.EvaluateFilterExpression(GridFilteringItem filteringItem)
at Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source)
at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs ar gs)
at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
at Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument)
at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Thanks in advance,
Jeff


Eyup
Telerik team
 answered on 01 Mar 2017
4 answers
325 views

Hello,

I'm using Telerik UI for ASP.NET AJAX build 2017.1.118.40 with the Metro theme.

My application has many RadGrid instances, and for some reason none of them are showing column checkbox selections correctly in their header context menus.

I've attached a screenshot to demonstrate. You'll see that the columns that should be checked (they are currently visible in the grid) are shown using a light blue color - but they aren't actually checked. If I explicitly toggle the checkbox (by clicking it), then it appears as expected, but only until the next postback.

I thought I might have some styles conflicting with this theme, but I've removed all my application's CSS (as a test), and nothing changed.

Has anyone else encountered this? Any thoughts or feedback would be greatly appreciated.

- Mark R.

Eyup
Telerik team
 answered on 01 Mar 2017
0 answers
131 views

Hi,

My RadComboBox in aspx:

               <telerik:RadAutoCompleteBox runat="server" id="RadAutoCompleteBox" onclientrequesting="requesting"> </telerik:RadAutoCompleteBox>

I have array (50 items) in Javascript. Details item:

         - Id- this element set to value selected item;
         - Text ( Account Number + Description) - this element set to selection list in RadAutoCompleteBox;
         - Account Number - this element set to input;

I would like update RadAutoCompleteBox in function requesting in Javasctipt.

          function requesting(sender, eventArgs) {            
                        var value = sender.get_text();            
                        for (var j = 0; j < myArray.length; j++) {               
                               if (myArray[j][1].indexOf(value) > -1) {                    
                                 ????????????;                    
                               }}};

please help
Grzegorz
Top achievements
Rank 1
 asked on 28 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?