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

Hi,

As the title said, this happens only in IE browser. Any idea if this bug was fixed in newer versions of Telerik?

My version is 2013.3.1114.35 of Telerik.Web.UI

 

Thanks!

Zedrci03
Top achievements
Rank 1
 asked on 24 Jan 2018
8 answers
2.2K+ views
Hi Experts

I'm new in Radgrid and having RadGrid Virtualization,  and used manual binding(NeedDataSource) and set virtual count there. The problem I'm facing when I editing the items  in separate command button to show the all relevant items in RadWindow and update there, after ajaxRequest("Rebind"), Radgrid lost PageIndex and Current Row Number

Please suggest how to set the PageIndex and Current row after rebind. below is the details in data binding 

protected void RadGrd1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
      {          
          RadGrd1.DataSource = GridRecordSource;
          RadGrd1.MasterTableView.VirtualItemCount = ((DataTable)Application["_GridRowSource"]).Rows.Count;    
           
      }       
      private DataTable GridRecordSource
      {
          get {
                  object RowSource= Application["_GridRowSource"];
                  if (RowSource!=null)
                    {
                       return RowSource as DataTable;
                    }
                  else
                  {
                      GridRowSource=UserBL.SelectAll("CustomerDetail");
                      Application["_GridRowSource"]=GridRowSource;
                      // RadGrd1.CurrentPageIndex * RadGrd1.PageSize + " AND " + ((RadGrd1.CurrentPageIndex + 1) * RadGrd1.PageSize));
                      return GridRowSource;
                  }
               }
 
          
      }

  And following is the aspx markup
<telerik:RadGrid runat="server" ID="RadGrd1" AutoGenerateColumns="False"
                       GridLines ="Horizontal" ShowStatusBar="true"
                      OnNeedDataSource="RadGrd1_NeedDataSource"                                 
                      OnDataBound="RadGrid1_DataBound"
                      Skin="Outlook" Width="143px" >
                  <MasterTableView Width="99%" AllowPaging="true" PageSize="50" 
                      AllowSorting="false" BorderStyle="None" ClientDataKeyNames="RecordID"
                      TableLayout="Fixed" NoMasterRecordsText="Records not found in Customerdetail tables" >
                      <Columns>
                          <telerik:GridBoundColumn DataField="FirstName" HeaderText="Customer Name" UniqueName="FirstName" HeaderStyle-Height="122px"  >
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn DataField="LastName" HeaderText="" UniqueName="LastName" Display="false"  >
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn DataField="Phonenumber" HeaderText="" UniqueName="Phonenumber" Display="false"  >
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn DataField="Email" HeaderText="" UniqueName="Email" Display="false"  >
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn DataField="dob" HeaderText="" UniqueName="dob" DataType="System.DateTime" Display="false"  >
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn DataField="Country" HeaderText="" UniqueName="Country" Display="false"  >
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn DataField="State" HeaderText="" UniqueName="State" Display="false"  >
                          </telerik:GridBoundColumn>
                      </Columns>
                      <CommandItemTemplate >
                      </CommandItemTemplate>
                 </MasterTableView>
               <PagerStyle  Visible="false" />
              <ClientSettings ReorderColumnsOnClient="true" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder"
                  <ClientEvents OnRowSelecting="PushToDock"/>                
                  <Virtualization InitiallyCachedItemsCount="50" RetrievedItemsPerRequest="50" ItemsPerView="50"
                      EnableVirtualization="true"
                      LoadingPanelID="RadAjaxLoadingPanel1"  />
                   <Selecting AllowRowSelect="true"   />
                  <Scrolling ScrollHeight="200px" AllowScroll="True" EnableVirtualScrollPaging="true"
                    UseStaticHeaders="true"  />
                  <Resizing AllowColumnResize="true" />                      
              </ClientSettings
              <SelectedItemStyle Font-Bold="true" ForeColor="#000099" />             
          </telerik:RadGrid>
following is the Javascript for edit the items
function ShowEditForm(tcRecordID, rowIndex) {
         tcRecordID = $('input[id$=Recno]').val();       
         $('input[id$=Recno]').val(tcRecordID); // store the RecordID into asp hidden field so that recordposition will be thre
         var openwindow = window.radopen("EditAddRecord.aspx?RecordID=" + tcRecordID, "UserListDialog");
         return false;
     }
Eyup
Telerik team
 answered on 24 Jan 2018
16 answers
1.7K+ views
I am posting here because the error is 'Telerik.Web.UI.GridFilterMenu' not found.


2> Processing complist 'Properties\licenses.licx'...
12>C:\Projects\CenterRail\Properties\licenses.licx(3): error LC0004: Exception occurred creating type 'Telerik.Web.UI.GridFilterMenu, Telerik.Web.UI, Version=2015.1.225.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' System.MissingMethodException: Constructor on type 'Telerik.Web.UI.GridFilterMenu' not found.
12> at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
12> at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
12> at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
12> at System.SecurityUtils.SecureCreateInstance(Type type, Object[] args, Boolean allowNonPublic)
12> at System.ComponentModel.LicenseManager.CreateWithContext(Type type, LicenseContext creationContext, Object[] args)
12> at System.ComponentModel.LicenseManager.CreateWithContext(Type type, LicenseContext creationContext)
12> at System.Tools.LicenseCompiler.Main(String[] args)
12> The command exited with code -1.
12>Done executing task "LC" -- FAILED.
Tom
Top achievements
Rank 1
 answered on 23 Jan 2018
3 answers
419 views

I tired most of the examples on disabling dates on the raddatepicker control but most are out of date to the methods and properties of the latest control set. I looking for an example of how to only let SUNDAY be selected.

 

Thanks

Help
Top achievements
Rank 1
 answered on 23 Jan 2018
6 answers
530 views
Hi, I'm running into similar situation as other posts but not exactly the same.

I have a really simple case where I have a detail table that responds to a DeleteCommand, and all I want to do is rebind the parent.

The problem is, that inside the delete command handler, if I don't call rebind on anything and let the normal event mechanism work, the detail table will properly delete the row however the parent is not rebinded.  If I add a call to rebind the parent (see below - the last statement), then the rebind happens but both grids don't show the correct results on the screen. I don't think rebind can be called inside a delete command handler, just my hunch.

This should be really simple. I want to rebind the parent row when the detail changes.  What's the preferred approach?  I see a lot of ways people are discussing it - but want as little code as possible.

 protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            RadGrid g = (RadGrid)source;
            GridEditableItem editedItem = e.Item as GridEditableItem;
            if (e.CommandName == RadGrid.DeleteCommandName)
            {
                var id = editedItem.GetDataKeyValue("UserRentItemId").ToString();
                _presenter.DeleteUserRentItem(int.Parse(id));
                e.Item.OwnerTableView.ParentItem.OwnerTableView.Rebind();  
            }
        }
Eyup
Telerik team
 answered on 23 Jan 2018
2 answers
439 views
Hi,

We are using RadControls for ASP.NET AJAX suite (2013 Q1 version) for our applications. We use Visual studio 2012 ultimate version with C#. When I drag control from toolbox on to the page, the following gets added to the page:

<%

 

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 


I do not want to have this on each and every page. So, I would like to add assembly to web.config file with details like public token, version, culture etc. Further, I would like to add controls element also with control details.

For eg:

<

 

 

assemblies>

 

<

 

 

add assembly="Infragistics2.WebUI.Shared.v10.3, Version=10.3.20103.2217, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"/>

 

</

 

 

assemblies>

 


<

 

 

pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">

 

<

 

 

controls>

 

<

 

 

add tagPrefix="igtbl" namespace="Infragistics.WebUI.UltraWebGrid" assembly="Infragistics2.WebUI.UltraWebGrid.v10.3"/>

 

<

 

 

add tagPrefix="igtblexp" namespace="Infragistics.WebUI.UltraWebGrid.ExcelExport" assembly="Infragistics2.WebUI.UltraWebGrid.ExcelExport.v10.3"/>

 

</

 

 

controls>

 

</

 

 

pages>

 


This avoids having assembly registration on each and every page.

Thanks,
Prathiba
ajay
Top achievements
Rank 1
 answered on 23 Jan 2018
1 answer
214 views

Dear Team,

We are using ShowSound property and it doesn't work in mobiles and tablets. However it is working fine in desktop browsers. I have already tried below code which i got from your website but still no difference.

<script type="text/javascript">function pageLoad() {//Attach to the document touchstart event and initiate the notification audio $telerik.$(document).on("touchstart", initSound);}function initSound() {var notification = $find("<%=RadNotification1.ClientID%>");//If notification audio is not available initiate itif (!notification.verifySound()) { notification.userInitSound();}//Detach the initSound event listener $telerik.$(document).off("touchstart", initSound);}</script><telerik:RadNotification RenderMode="Lightweight" ID="RadNotification1" runat="server" ShowInterval="2000" AutoCloseDelay="1000" Text="Some Notification" ShowSound="warning"></telerik:RadNotification>

I have also tried in code behind but result is same.

RadNotification1.ShowSound = ResolveUrl("~/Images/OrderReceived.wav");

Kindly let me know how we can enable sound on mobile/tablet devices.

Thanks & Regards,

Jatin Kumar Verma

Peter Milchev
Telerik team
 answered on 23 Jan 2018
4 answers
169 views

Hi, 

In the demo https://demos.telerik.com/aspnet-ajax/listview/examples/client/webservicedatabinding/defaultcs.aspx

It is possible to select an item without having a CommandName="Select" and the item can be click anywhere, and it selects. 

In the code I am playing with, I have the data bound via code, but cannot get the item to select without a button.

You do not have a button within your demo, so how do you get it to work?

Many Thanks

Mark

 

Mark
Top achievements
Rank 1
 answered on 23 Jan 2018
1 answer
69 views

Hello, I have a problem using EnableVirtualScrollPaging in asp.net RadGrid.

In the grid I have GridBoundColumn and GridTemplateColumn columns.

At server side put all rows with same height.

     rdgLista.MasterTableView.ItemStyle.Height = 50;
     rdgLista.MasterTableView.AlternatingItemStyle.Height = 50;

When I scroll down page 2 is load when I have not yet reached the end of page 1.

 

<ClientSettings>
                    <Resizing AllowRowResize="false" />
                    <Scrolling AllowScroll="true" EnableVirtualScrollPaging="True" UseStaticHeaders="true" SaveScrollPosition="true">
                    </Scrolling>
</ClientSettings>

 

Can you help?

 

Best Regards.

 

Eyup
Telerik team
 answered on 23 Jan 2018
0 answers
135 views

I'm using version 2010 Q1 309

I have 8 RadTabs, I want to auto adjust width when run on more screens. I tried set ScrollChildren = True, but UI broken

Darren
Top achievements
Rank 1
 asked on 22 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?