Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
150 views

Hi,

I have a RadGrid with 2 DetailTables. Events inside a Detail Table are not firing for the first time, but it is firing for second attempt. 

Please find below the issues i am facing:

1) Check box in 1st Detail View is not hitting OnCheckedChanged for the first attempt, but postback is happening and OnItemDataBound event is getting triggered. OnCheckedChanged  event is firing for the second attempt

2) OnTextChanged of RadNumericTextBox  in 2nd Detail View is not firing for the first attempt, but postback is happening and OnItemDataBound event is getting triggered. it is firing in second attempt.

 

<telerik:RadGrid ID="rGrid" runat="server" OnNeedDataSource="rGrid_NeedDataSource" RenderMode="Lightweight" 
                        GridLines="None" OnPreRender="rGrid_PreRender" OnItemDataBound="rGrid_ItemDataBound"
                        OnDetailTableDataBind="rGrid_DetailTableDataBind" OnDeleteCommand="rGrid_DeleteCommand" OnItemCommand="rGrid_ItemCommand">
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="Id" ShowFooter="true" Name="Master" HierarchyLoadMode="Client" RetainExpandStateOnRebind="true" HorizontalAlign="Right">
                            <DetailTables>
                                <telerik:GridTableView DataKeyNames="EventDesc"  HorizontalAlign="Left" Name="DetailTableView" Width="105%" AutoGenerateColumns="false" ShowHeader="false" HierarchyLoadMode="Client" CssClass="inner_grid" RetainExpandStateOnRebind="true">
                                    <DetailTables>
                                        <telerik:GridTableView Width="100%" HorizontalAlign="Right" AutoGenerateColumns="false" ShowHeader="true" NoDetailRecordsText="No invoice recorded" Name="DetailTable1" RetainExpandStateOnRebind="true">
                                            <Columns>
                                                 <telerik:GridTemplateColumn HeaderText="Amount" HeaderStyle-Width="126px">
                                                    <ItemTemplate>
                                                        <telerik:RadNumericTextBox ID="rtxtAmount" runat="server" MinValue="0" DbValue='<%# Eval("Amount") %>' Width="95px"
                                                            OnTextChanged="rtxtAmount" AutoPostBack="true" >
                                                            <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                        </telerik:RadNumericTextBox>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>

                                            </Columns>
                                        </telerik:GridTableView>
                                    </DetailTables>
                                    <Columns>

                                  <telerik:GridTemplateColumn UniqueName="chkBox" HeaderStyle-Width="15px">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBoxSubGid" runat="server" OnCheckedChanged="CheckBoxSubGid_CheckedChanged"                                                                          AutoPostBack="true" />
                                            </ItemTemplate>
                                  </telerik:GridTemplateColumn>

                                   </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
                            <Columns>

                           <telerik:GridTemplateColumn DataField="EventDesc" HeaderText="description" UniqueName="description" >
                                    <ItemTemplate>
                                        <telerik:RadTextBox ID="rtxtdescription" runat="server" TextMode="MultiLine" Text='<%# Eval("description") %>' >                                                                          </telerik:RadTextBox>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>

                               </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

 

Could you please let me know the solution ?

Thanks in advance!!

Regards,

Puru

Purushothama
Top achievements
Rank 1
 asked on 17 Feb 2017
0 answers
104 views

Hi

How to use select all checkbox in Telerik Gridview and Filter option for unselected item 

How to implement a telerik grid having filter control and select all option(Check Box).....  The purpose is to filter grid row items from a list and then to cancel the selection of the filtered result set.

Jaya
Top achievements
Rank 1
 asked on 17 Feb 2017
0 answers
212 views

HI

 

I have  a Page containing Telerik Grid view with Filter Control. When I use the filter control after selecting all values using checkbox (for selected all item), the selected checkboxes gets cleared after running filter. How to Retain the selected Telerik Grid row Item .

Jaya
Top achievements
Rank 1
 asked on 17 Feb 2017
0 answers
83 views

Hi

 

I have  a Page containing Telerik Grid view with Filter Control. When I use the filter control after selecting all values using checkbox (for selected all item), the selected checkboxes gets cleared after running filter. How to Retain the selected Telerik Grid row Item .

Jaya
Top achievements
Rank 1
 asked on 17 Feb 2017
0 answers
94 views

Hello, 

 

I have  a button , ajaxpanel and grid . On button Click a for loop is working.  Data is binding when for loop ends. But I want to update grid when each data added to searchlist. What I am not doing?

Thanks

 

 

List<SearchResult> results;

  protected void RadButton1_Click(object sender, EventArgs e)
    {

results=new List<SearchResult> ();

 for (int i = 0; i < 100; i++)
        {

SearchResult sr=new SearchResult();

 

// Here call a web service and getdata.

sr.ServiceName=services[i];

sr.Data=webresponse.Data;

results.add(sr);

Radgrid1.datasource=results;

Radgrid1.databind();
        }

 

}

 

 

 

     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
     <telerik:AjaxSetting AjaxControlID="RadButton1">
        <UpdatedControls>
           <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
        </UpdatedControls>
     </telerik:AjaxSetting>
     <telerik:AjaxSetting AjaxControlID="RadGrid1">
        <UpdatedControls>
           <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
        </UpdatedControls>
     </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

KARLIDAG
Top achievements
Rank 1
 asked on 17 Feb 2017
0 answers
130 views

When I export the RadEditor's content having table in it, it doesn't the table. Here is the simple HTML from the HTML tab of the editor (I did not with HTML and this is auto generated HTML when I place the table.)

<div>
<div>
<table>
    <tbody>
        <tr>
            <td>&nbsp;1</td>
            <td>2&nbsp;</td>
        </tr>
    </tbody>
</table>
<br />
Test
</div>
</div>

 

I am using Telerik 2011.2.712.40. Below is the attributes set for the editor in ASPX page, 

<telerik:RadEditor ID="radEditor1" runat="server" Skin="Default" Height="500px" Width="100%"
                                OnClientSelectionChange="OnClientSelectionChange" AutoResizeHeight="false" ContentFilters="DefaultFilters,MakeUrlsAbsolute"
                                OnClientCommandExecuting="OnClientCommandExecuting" NewLineMode="Div"  >
                                <ExportSettings FileName="exporttopdf" OpenInNewWindow="true" Pdf-PageBottomMargin="1.0 cm"
                                    Pdf-PageLeftMargin="1.5 cm" Pdf-PageRightMargin="1.5 cm" Pdf-PageTopMargin="1.0 cm">
                                </ExportSettings>

I am using the method, radEditor1.ExportToPdf(); in CodeBehind.

Deepa
Top achievements
Rank 1
 asked on 16 Feb 2017
1 answer
52 views
A fairly simple question:

Which CSS classes will I need to access and what will I need to change in them in order to effectively Horizontally Center the list of nodes in the Navigation bar?  

My aim is either to just center them, or center them in a 1080px wide area in the center.

Thank you!
Chris
Top achievements
Rank 1
 answered on 16 Feb 2017
1 answer
94 views

I try to binding year is 2560 with Kendo AJAX  but on grid display 2017.

It work on grid Kendo MVC with the same data.

I really have to use Kendo AJAX to development,So Is there  any missing?

 

Eyup
Telerik team
 answered on 16 Feb 2017
1 answer
99 views

Hi,

I'm using a Column Chart format of HtmlChart.   When I hover over the column, the tooltip value appears as expected.  However, when the mouse leaves the column, the tooltip value remains until I hover over a different column.  I would like the tooltip to disappear when I'm no longer over the column.   A mouseout event would provide the desired trigger, but near as I can tell, that is not available.  Is there a way to accomplish this with the existing features?

Thanks,

Dave

 

Rumen
Telerik team
 answered on 16 Feb 2017
1 answer
208 views

Hello

I have a fairly complex RadScheduler where a user can drop appointments from a RadGrid and the advanced edit form should open on row drop.

This works so far, the form opens. But it seems the form doesn't get initialised correctly. When submitting the form I get a long error message:

"Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"

 

When double-clicking the appointment in RadScheduler, submitting works just fine with the same advanced form, though.

I call this from Page_PreRender(object sender, EventArgs e)

RadSchedulerPlanning.ShowAdvancedEditForm(appointment);

 

Where would I call "ShowAdvancedEditForm()" correctly?

Peter Milchev
Telerik team
 answered on 16 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?