Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
251 views
hello,
i have a radgrid with detailtables ,

detailTable has "GridEditCommandColumn"  and another "GridTemplateColumn" that contains linkbutton to remove row ,

<MasterTableView DataKeyNames="FEATURE_ID">
             <Columns>
                 <telerik:GridBoundColumn DataField="FEATURE_ID" UniqueName="FeatureID" ></telerik:GridBoundColumn>
             </Columns>
 
             <DetailTables>
                 <telerik:GridTableView ShowHeader="true" CommandItemDisplay="Top"
                     SkinID="RadGridSkin" Width="100%" runat="server" Name="Fees"
                     EditMode="InPlace">
                     <Columns>
                         <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
                        
                         <telerik:GridBoundColumn DataField="FEE_TEMPLATE_ID" UniqueName="FeeID"></telerik:GridBoundColumn>
 
                         <telerik:GridTemplateColumn UniqueName="DeleteFee">
                             <ItemTemplate>
                                 <asp:LinkButton ID="RemoveFee" runat="server" CommandName="RemoveFee" Text="RemoveFee" ImageUrl="../../../images/cancel.png" ToolTip="<%$Resources:Strings,remove  %>" />
                             </ItemTemplate>
                         </telerik:GridTemplateColumn>
                     </Columns>
 
                 </telerik:GridTableView>
             </DetailTables>
 
         </MasterTableView>

in code behind in itemCommand event : 
dataSource of radgrid is updated and Datable.acceptchanges() is called ;

how to rebind only the detailTable where changes have occurred ??



Princy
Top achievements
Rank 2
 answered on 17 Apr 2014
4 answers
119 views

Hi,

On template item, I have a few controls related RadToolTipManager that is be done on ItemDataBound however if I have added a new item, ajax and rebind the list it does not invoke ItemDataBound.  (_NeedDataSource is implemented)

Can I implement UserControl into InsertItemTemplate and EditItemTemplate?   How can I find its control ID?


May I have your suggest?

Cheers,

Duy
Duy
Top achievements
Rank 1
 answered on 17 Apr 2014
1 answer
76 views
Currently have a radgrid containing phone contact information that I populate with data from the database.  What I would like to append to that same grid is more static data (ie phone extensions to various rooms around the building).  Is this even possible to add these additional rows after binding with SQL data?

Attached is what I am trying to accomplish. 

Have a Row of data be the text "Extensions" that spans all the columns and then add a second dataset which contains the various rooms and their extensions. 

Thank you
Eyup
Telerik team
 answered on 17 Apr 2014
3 answers
70 views
Hi telerik ,
in my project  which like transfer employees example demo , I use remove concept
at ajaxrequest event on server before I remove node from chart i have a condition if it true i can remove the node, else i must return a message(eg:"this node can't remove") , how I can do that ? i try to use hiddenfield but it does't work correctly 

thank you 
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2014
4 answers
82 views
Watched a telerik video recently where the presenter demonstrated RadPageLayout and responsive web page design by slowly reducing the size of his Chrome browser window while viewing the telerik website. At each viewport breakpoint the page reconfigured responsively as expected. Tried this with my 
Chrome browser and it worked for me too; but not when using the IE8 browser (telerik web page just truncates). Since telerik supports IE 6+ should I be seeing the same behavior in IE8 as in Chrome?
Ivan Zhekov
Telerik team
 answered on 17 Apr 2014
1 answer
48 views
Hi,
 how to change the text of a boundcolumn when that row is selected?
Princy
Top achievements
Rank 2
 answered on 17 Apr 2014
3 answers
696 views
We using the datepicker with input format "dd-mm-yyyy" in our asp.net web application. Created an validator function for this format. Works fine when leaving the input field it checks the format "dd-mm-yyyy" but when we want to save the record our validator function gets the date as "yyyy-mm-dd" which is invalid according to our validator function. What to do.
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2014
6 answers
795 views

Hi Telerik Team,

     i'm using ASP>NET AJAX RadAutoCompleteBox. I set the DatasourceId its working fine. I can go through the filtered items with "UP" and "Down" keys, but I want to select an item with "TAB" and "ENTER" Key. When I hit TAB or ENTER on dropdown item it should select that item and the OnTextChanged Event should fire.
     I checked the Demo there its selecting when I hit TAB & Enter. But on my screen its not working. Is I missed or messed something.

My code for your reference.

Thanks,


<telerik:RadAutoCompleteBox ID="txtPolicyNo" runat="server" Width="100px" DropDownWidth="98px" DropDownHeight="200px"       DataSourceID="edsPolicy" DataTextField="PolicyNumber" Filter="StartsWith" InputType="Text"   OnTextChanged="txtPolicyNo_TextChanged" TextSettings-SelectionMode="Single">
          <TokensSettings AllowTokenEditing="true" />
</telerik:RadAutoCompleteBox>
                              
 <asp:EntityDataSource ID="edsPolicy" runat="server" ConnectionString="name=PSSContainer" DefaultContainerName="PSSContainer"
           EnableFlattening="false" EntitySetName="tblPolicies" OrderBy="it.[PolicyNumber]" Select="it.[PolicyNumber]"
           GroupBy="it.[PolicyNumber]"
           Where="it.Chapter = @ChapterCode and it.IsPolicy = @IsPolicyOrProcedure">
           <WhereParameters>
                      <asp:ControlParameter ControlID="ddlChapter" DbType="String"
                           DefaultValue="" Name="ChapterCode" PropertyName="Text" />
                       <asp:ControlParameter ControlID="hfServiceType" DbType="Boolean"
                           DefaultValue="" Name="IsPolicyOrProcedure" PropertyName="Value" />
            </WhereParameters>
 </asp:EntityDataSource>



protected void txtPolicyNo_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e)
{
     try
         {
               string PolicyNo = txtPolicyNo.Text;

                if (PolicyNo.Length > 0)
                {
                    //PolicyNo = PolicyNo.Substring(0, PolicyNo.Length - 2);
                    PolicyNo = PolicyNo.Replace("; ", "");
'
'
'
'
                }
                 
          }
          catch (Exception ex)
          {
               
          }
}
Plamen
Telerik team
 answered on 17 Apr 2014
1 answer
134 views
hi
i have grid in batch mode.i add row addNewRecord in java script now after added i want select this by java script code but inserteditem is null
how can select this row by java script code?
Konstantin Dikov
Telerik team
 answered on 17 Apr 2014
14 answers
217 views
Want to sort my group by week number based on the date field.
Trying to convert my old grid (attached old_grid.gif) to Telerik: RadGrid (attached telrik_grid.gif) but the grouping gets sorted recipe from 1-52. I want to get the grouping based on the date field, in this case, week 8 (see attached old_grid.gif)

Attached old_grid.gif is correct grouped........

The asp:SqlDataSource:
SelectCommand="select * from dogtraining where fidnr = @fidnr Order By datum DESC"

The GroupByExpressions:​
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <SelectFields>
            <telerik:GridGroupByField FieldName="weeknumber" FieldAlias="Vecka" />
        </SelectFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="weeknumber" />
        </GroupByFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>
Radoslav
Telerik team
 answered on 17 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?