Telerik Forums
Community Forums Forum
1 answer
88 views

I've been programming web applications with datagrids since 2004, developing (or, attempting to) my own extensions to datagrids, and modal popups over the course of the next decade in .NET 1.1, 2.0, then 4.5. Telerik came along via another application we use and develop for. Since then, I've found Telerik controls much easier to use than trying to finagle .NET controls. Another reason being many browsers stopped supporting modal windows. Telerik made it much easier to have inline modal windows. Sure, there may be some hiccups (I've seen plenty of posts from years ago about such) and sometimes unclear demos (comments would be nice to say what code changes or is required by what), but there's always workarounds, searching Google, and making unit test pages. I've already created an intranet application based solely on Telerik controls (AJAX UI for .NET). So, thanks again for a great product!

Rumen
Telerik team
 answered on 18 Nov 2019
0 answers
173 views

Hello,
I have a radgrid which is binding on the basis of drop down selection. This Radgrid is inside update panel. I am selecting its row using javascript. On radiobutton SelectedIndexChangedevent this script is calling. 

<script type="text/javascript">   
 
   function SelectMeOnly(objRadioButton, grdName)
     {
       
    var i, obj;
    for (i=0; i<document.all.length; i++)
     {
      obj = document.all(i);
      
      if (obj.type == "radio")
      {
if (objRadioButton.substr(0, grdName.length) == grdName)
              if (objRadioButton == obj.id)             
                  obj.checked = false;        
      }
    }
    document.getElementById(objRadioButton).checked = true;   
        }
</script>

 

I am using RegisterStartup script placed in my Page_Load to run script on partial post back due to update panel:

protected void Page_Load(object sender, EventArgs e)
{  
  ScriptManager.RegisterStartupScript(UpdatePanel8, this.GetType(), "SelectMeOnly", "SelectMeOnly();", true);
}

 

Following is my grid html:

<div class="dashboarddiv" id ="dragdiv" style="width:800px;">                   
   <asp:UpdatePanel ID="UpdatePanel8" runat="server">
        
<telerik:RadGrid ID="gv_BO" runat="server" ShowHeaderWhenEmpty="true" 
       EmptyDataText="No records to display" AutoGenerateColumns="False" RenderMode="Lightweight"
  CellPadding="0" ForeColor="#333333" GridLines="None" MasterTableView-EditFormSettings-EditColumn-
       AutoPostBackOnFilter="false"
       AllowSorting="True" Skin="Telerik" OnNeedDataSource="grd_BO_NeedDataSource"
       OnItemDataBound="gv_BO_ItemDataBound" Height="194px" Width="750px">
     <ClientSettings >
          <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true">
          </Scrolling>
          <Selecting AllowRowSelect="True"/>
          </ClientSettings>
                                     
    <MasterTableView ClientDataKeyNames="lblRowNumber,CA_ACC_CODE,CA_TITLE,CC_COSTCNTR_CODE,CC_DESC,CP_EXCH_RATEREP1,BGT_ACTUAL_AMT,BGT_ANALYSIS1,BGT_ANALYSIS3" DataKeyNames="lblRowNumber" Width="100px" TableLayout="Fixed">
                            <CommandItemSettings ExportToPdfText="Export to Pdf" />
                            <Columns>
                                <telerik:GridTemplateColumn DataField="lblRowNumber" HeaderText="S.No." HeaderStyle-Width="40px" ItemStyle-BorderColor="#d6d6d6">
                                    <ItemTemplate>
                                        <asp:Label ID="lblRowNumber" runat="server" style="text-align:center" Width="40px" Text='<%# Bind("lblRowNumber")%>' />
                                    </ItemTemplate>
                                    <HeaderStyle Width="40px" />
                                    <ItemStyle BorderColor="#D6D6D6" />
                                </telerik:GridTemplateColumn>     
 
                                         
                            <telerik:GridTemplateColumn UniqueName="rdSelect" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderText="Select" HeaderStyle-Width="80px">
                            <ItemTemplate>
                             <asp:RadioButton ID="rdSelect" runat="server" Width="60px" AutoPostBack="True" OnCheckedChanged="rdSelect_CheckedChanged"/>
                            </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="80px" />
                                    <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridTemplateColumn>
                   

 

But unfortunately the alignment of my grid (scrolling, height) is behaving abnormally on each post back or even page load. On first load the grid is going out of div. On post back it is missing its scrollbar. I did try so many solutions like static header = "false" EnableViewState="true" but nothing is working. Please help me.

Note: If I remove RegisterStartupScript from page_load my radgrid behaves absolutely fine except that my row is not selecting. After adding RegisterStartupScript  line my radgrid started behaving like this.

 

 

 

Sana
Top achievements
Rank 1
 asked on 02 Oct 2019
3 answers
131 views
Are there any plans to do something like this
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Sep 2019
4 answers
142 views
Hi everyone. I am new to this forum. 
Jonh
Top achievements
Rank 1
 answered on 18 Sep 2019
1 answer
122 views
I'm new For this Forum
Plamen Mitrev
Telerik team
 answered on 11 Sep 2019
2 answers
219 views

Hello Guys,

I am new to Telerik Radgrid. I need your help. I have a radgrid with ItemTemplate and TextBox in template. Ive a selection window which pops up on TextBox inside grid is clicked and upon selecting some data value should set in that particular TextBox.

<Columns>
<telerik:GridTemplateColumn DataField="CA_ACC_CODE" HeaderText="Account Code" ItemStyle-BorderColor="#d6d6d6" SortExpression="CA_ACC_CODE" UniqueName="CA_ACC_CODE">
<ItemTemplate>
<asp:TextBox ID="txtAccountCode" OnClick="return showPopUp(this)" Text='<%# Bind("CA_ACC_CODE")%>' runat="server"  Width="120px" Skin="Office2007"></asp:TextBox>
</ItemTemplate>
  <ItemStyle BorderColor="#D6D6D6" /> </telerik:GridTemplateColumn>
</Columns>

 

The problem I am facing how to iterate and set value in particular textbox. Currently the textbox value is setting in first row of grid only in ItemDataBound event regardless of any row where I click the textbox.

protected void gv_BO_ItemDataBound(object sender, GridItemEventArgs e)
{
 try
    {
     string Selectd_row = (string)(Session["coa_selectd_row"]);
     if (Selectd_row == null || Selectd_row == "")
       {
        Selectd_row = "0";
       }
                            
     if (e.Item.RowIndex == int.Parse(Selectd_row))
     {
      if (e.Item is GridEditFormItem)
       {
         GridEditFormItem item = (GridEditFormItem)e.Item;  
         string cc_code = (string)(Session["cc_code"]);
         string cc_title = (string)(Session["cc_title"]);
         string ca_code = (string)(Session["coa_code"]);
         string ca_title = (string)(Session["coa_title"]);
    TextBox txtCostCentre = (TextBox)item["CC_COSTCNTR_CODE"].FindControl("txtCostCentre");
       TextBox txtCCDesc = (TextBox)item["CC_DESC"].FindControl("txtCCDesc");
       TextBox txtAccountCode = (TextBox)item["CA_ACC_CODE"].FindControl("txtAccountCode");
       TextBox txtAccountTitle = (TextBox)item["CA_TITLE"].FindControl("txtAccountTitle");
       txtCostCentre.Text = cc_code;
       txtCCDesc.Text = cc_title;
       txtAccountCode.Text = ca_code;
       txtAccountTitle.Text = ca_title;                   
         }
        }
       }
catch (Exception ex)
    { }
    }
Sana
Top achievements
Rank 1
 answered on 24 Jul 2019
0 answers
127 views

Good day,

I am currently using Kendo UI 2014.3.1411 and using ASP.NET MVC. When I'm trying to retrieve a DateTime that has a year of 1900, it returns a value of added 5 minutes.

 

From Controller:

Value of DateTime passed as JSON is "1/1/1900 1:00PM"
`(Timestamp is /Date(-2208970800000)/)`

 

After using kendo.ParseDate of the value of Timestamp, Time became 1:05pm

 

I would like to know what is the minimum version of Kendo to have this resolved.

 

Thanks.

junever
Top achievements
Rank 1
 asked on 23 Jul 2019
10 answers
330 views
When I go tot he dojo.telerik.com site, for instance to open any of the examples in dojo (from their links), there is a Modulus-project not found page and I can't get into the dojo.
Dimo
Telerik team
 answered on 03 Jul 2019
5 answers
766 views

Confused by license Kendo UI professional

The license for Kendo UI professional is per developer, components are installed using npm.

Scenario 1:

If I have a group of developers 1 Front-end, 1 Fullstack, 1 backend do I need 3 licenses? The backend developer will not be doing development with the UI components but will need to run the code in development so would need to install the packages locally.

What about CI, the CI server is going to install the components every time a new checkin occurs, would the CI server need an additional license?

---

Scenario 2:

If I work as a consultant and build an application using the UI components, I obviously need 1 license. But now I hand that project off to the client and they have x number of developers who will maintain that project, making small tweaks here and there overtime. My client does not want to purchase licenses for each of their developers as they are rarely even touching the code.

It seems like an application license would make more sense? But maybe my assumptions above are not correct, any guidance would be appreciated.

Thanks, - Jesse

Dimo
Telerik team
 answered on 20 May 2019
3 answers
116 views

Hi,

     When i run test list more than 60 scripts in local machine it's not loading the results.May i get any suggestion for this please?

Thanks & Regrads

Vimala Padakanti.

Plamen Mitrev
Telerik team
 answered on 15 May 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?