Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views

After upgrading to the latest Telerik binaries on our DotNetNuke (DNN v9.1.1) website, the RadEditor has some odd behavior making it near impossible to use. The RadEditor seems to be centered as a small square inside of a large gray box. Additionally switching between DESIGN and HTML modes causes the entire editor to freak out.

Please see attached screenshots.

Has anyone experienced this, or have a solution to fix it?

-Ben

Rumen
Telerik team
 answered on 24 Jan 2018
0 answers
129 views

Hi,

I'm having problems with a RadTreeView which is databound.

I would like to show 1 context menu if the Category of the node is 1 value and another if not which I have achieved using Javascript and the OnClientContextMenuShowing method. I then assign the context menu to each node depending on the category.

The issue I have is I need to be able to use the OnContextMenuItemClick server side method to run some C# depending on the selected context item but assigning this event to the treeview does not fire when the menu items are clicked.

 

I hope someone can help with this and please let me know if any code snippets are needed.

Charlie
Top achievements
Rank 1
 asked on 24 Jan 2018
1 answer
620 views

With a standard ASP .Net RadioButtonList it's simple to bind the SelectedValue:

<asp:RadioButtonList runat="server" ID="rbl_eit_Executed" SelectedValue='<%# Bind("Executed") %>'   
     RepeatDirection="Horizontal"  RepeatLayout="Table" TextAlign="Right">
          <asp:ListItem Value="False" Text="No"  />
         <asp:ListItem Value="True" Text="Yes"  />
</asp:RadioButtonList>

Attempting the same thing with RadRadioButtonList:

<telerik:RadRadioButtonList runat="server" Orientation="Horizontal"  
           SelectedValue="<%# Bind("Executed") %>"
           ID="rbl_eit_Executed" Direction="Horizontal"
            AutoPostBack="False">
        <Items>
               <telerik:ButtonListItem Text="Yes" Value="True" />
                <telerik:ButtonListItem Text="No" Value="False" />
         </Items>
</telerik:RadRadioButtonList>

Results in the error:

"A call to Bind must be assigned to a property of a control inside a template."

The ASP .Net control works inside an Edit Item Template - the Telerik control does not. How to databind SelectedValue (I do NOT care about binding the list of items, those are declarative as shown above).

Marin Bratanov
Telerik team
 answered on 24 Jan 2018
0 answers
148 views

Hi,

I want to have a Radnumeric Textbox "cssWorkload" in a table <td> element. I am using AJAX to initiate the Text box and do all the functionalities in My code. But when i run the code the Radnumeric text box does not show up when its under ClientItemTemplate.

 <ClientItemTemplate>
                                                    <table cellpadding="10px" border="0" cellspacing="3px" id="tblSelectedItems1">
                                                        <tr style="height: 18px;">
                                                            <td class="cssEmployee">
                                                                <span>
                                                                <asp:Label runat="server" ID="Label1">#= Text #</asp:Label>
                                                                <asp:HiddenField runat="server" ID="HiddenField1" Value='#= Value #' />
                                                            </span>
                                                             </td>
                                                             <td class="cssWorkload">
                                                                 <span>
                                                                   <telerik:RadNumericTextBox runat="server" Visible="true" ID="RadNumericTextBox1" Type="Number" 
                                                                            RenderMode="Auto" AutoPostBack="True" >
                                                                            <NumberFormat DecimalDigits="0"></NumberFormat>
                                                                            <ClientSettings showbutton="true"></ClientSettings>
                                                                            <ClientEvents OnLoad="Load"/>
                                                                    </telerik:RadNumericTextBox>
                                                                 </span>
                                                             </td>
                                                         </tr>
                                                      </table>
                                               
        </ClientItemTemplate>

agasthya
Top achievements
Rank 1
 asked on 24 Jan 2018
0 answers
377 views

Hi

I use ComboBox and I get this error sometimes:

Uncaught Error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON. Parameter name: data.

 

My Code:

  <telerik:radcombobox runat="server" id="ImpersonationRequestUsersCmb" height="190px" width="300px"
            markfirstmatch="true" enableloadondemand="true" highlighttemplateditems="true" emptymessage="<%$ Resources:UserImpersonationResources, SelectUserMessage %>"
            onclientitemsrequested="UpdateItemCountField" onitemsrequested="ImpersonationRequestUsersCmb_ItemsRequested"
            onitemdatabound="ComboBox_ItemDataBound" skin="MetroTouch"  dropdownwidth="500px" nowrap="True">
            <HeaderTemplate>
            </HeaderTemplate>
            <ItemTemplate>
                <ul> 
                    <li class="col1">
                        <%# (string.IsNullOrWhiteSpace((string)DataBinder.Eval(Container.DataItem, "Login"))) ? "&nbsp;" : DataBinder.Eval(Container.DataItem, "Login") %></li>
                    <li class="col2">
                        <%# (string.IsNullOrWhiteSpace((string)DataBinder.Eval(Container.DataItem, "FullName"))) ? "&nbsp;" : DataBinder.Eval(Container.DataItem, "FullName")%></li>
                    <li class="col3">
                        <%# DataBinder.Eval(Container.DataItem, "Email") %></li>
                </ul>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Literal ID="ltStartString" runat="server" Text="<%$ Resources:UserImpersonationResources, TotalItemsString%>" />
                <asp:Literal runat="server" ID="ImpersonationListItemsCount" />
                <asp:Literal ID="ltEndString" runat="server" Text="<%$ Resources:UserImpersonationResources, ItemsString%>" />
            </FooterTemplate>
        </telerik:radcombobox>

 

 

please advise

 

 

 

 

Itai
Top achievements
Rank 1
 asked on 24 Jan 2018
0 answers
104 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.8K+ 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
447 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
580 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?