Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
175 views
I have a page that has a list of available companies on the left and the list of selected companies on the right.  I can successfully transfer (move) items from left to right, but not right to left.  I have done the same functionality in a different project and it works just fine.  I event copied that code into this project and it doesn't transfer right to left.  My original code is running under Telerik version 2014.1.403.40.  This code is using  2015.1.225.45.
Markup:
<tr>
    <td>
        <telerik:RadListBox runat="server" ID="radCompany" Sort="Ascending" AllowTransfer="True" TransferToID="radSelectedCompanies" Width="300px"
            Height="200px" AutoPostBackOnTransfer="True" AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" TransferMode="Move"
            SelectionMode="Multiple" OnTransferred="radCompany_OnTransferred" EnableMarkMatches="True">
            <ButtonSettings TransferButtons="TransferFrom,TransferTo" ShowTransfer="True"></ButtonSettings>
        </telerik:RadListBox>
    </td>
    <td>
        <telerik:RadListBox runat="server" ID="radSelectedCompanies" Sort="Ascending" Width="265px" Height="200px" SelectionMode="Multiple"
            EnableMarkMatches="True">
        </telerik:RadListBox>
    </td>
</tr>

Code behind (C#):
//loads list of companies
private void LoadUserCompanies(int loginId)
{
    var dtCompanies = _admin.GetMASCustomersForUser(loginId);
 
    radSelectedCompanies.ClearSelection();
    radSelectedCompanies.Items.Clear();
 
    radSelectedCompanies.DataSource = dtCompanies;
    radSelectedCompanies.DataValueField = "company_id";
    radSelectedCompanies.DataTextField = "company_id";
    radSelectedCompanies.DataBind();
}
 
protected void radCompany_OnTransferred(object sender, RadListBoxTransferredEventArgs e)
{
    Sort();
}
 
private void Sort()
{
    if (radCompany.Items.Any())
    {
      radCompany.SortItems();
    }
    if (radSelectedCompanies.Items.Any())
    {
      radSelectedCompanies.SortItems();
    }
}

Is there something I'm missing?
Mike
Top achievements
Rank 1
 answered on 09 Apr 2015
3 answers
185 views

We changed our skin from Metro to Glow.But the font size of Skin:Glow is larger than Metro, and its line height is higer as well. This has caused wrapping issue in our page. How do we change its font size and line width?

Thank you

Pavlina
Telerik team
 answered on 09 Apr 2015
1 answer
184 views

I am using the panel bar on a site that is for mobile devices and am experiencing  a problem with scrolling the screen when the expanded item completely fills the screen height. The panel has a width of 100% and a lot of controls in the content template which makes the height of the panel exceed the height of the screen. When this happens you can't swipe up or down to scroll the page when the only area visible is the item panel. Any idea on how to make swiping capture the page scroll bar so that scrolling works in this situation?

 

Thanks

Charles

Charles
Top achievements
Rank 1
 answered on 09 Apr 2015
7 answers
825 views
Hi,
dear all,

i have ready use control telerik RadTextBox and RadNumericTextBox ,
I want accept Only Number Using Javascript,
I have Followed thread
http://www.telerik.com/community/forums/aspnet-ajax/input/i-need-a-text-box-that-only-accepts-numbers.aspx
and 
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radtextbox-need-to-be-restricted-only-for-integers.aspx

I am following that trick,
In IE is Fine and Work, But in FireFox is Not Work..

some body can help....
Kaos45
Top achievements
Rank 1
 answered on 09 Apr 2015
1 answer
123 views

HI There

I'm working with a Radgrid and I'm having an issue whereby a checkbox in a TemplateColumn's InsertItemTemplate section is not storing it's value in the DB.

The Textbox in another column is working fine, and I can go and edit the Row afterwards and select the checkbox if I wanted to, that works. But, on Insert, the checkbox's checked state is not stored in the DB.

 

Here are the 2 columns (first one works fine, the other doesn't):

<telerik:GridTemplateColumn Reorderable="true" UniqueName="TemplateColumn" FilterControlAltText="Filter TemplateColumn column" DataField="typeofhardware" SortExpression="typeofhardware">
             <HeaderTemplate>
                 <asp:LinkButton Text="Type of HW" ID="HWSortbutton" ToolTip="Click to Sort" CommandName="Sort" CommandArgument="typeofhardware" runat="server" />
             </HeaderTemplate>
 
             <ItemTemplate>
                 <asp:Label Text='<%# Bind("typeofhardware") %>' ID="lblTypeofHW" runat="server" />
             </ItemTemplate>
             <EditItemTemplate>
                 <table style="width: 100%">
                     <tr>
                         <td>
                             <asp:Label Text="Type of Hardware" runat="server" />
 
                         </td>
                         <td style="width: 25px;"></td>
                         <td>
                             <asp:TextBox runat="server" ID="txtTypeOfHardware" Width="100%" Text='<%# Bind("typeofhardware") %>' />
                         </td>
                     </tr>
                 </table>
 
             </EditItemTemplate>
             <InsertItemTemplate>
                 Type of Hardware:
                 <asp:TextBox runat="server" Text='<%# Bind("typeofhardware") %>' ID="txtTypeOfHardware" />
             </InsertItemTemplate>
         </telerik:GridTemplateColumn>
 
 
         <telerik:GridTemplateColumn Reorderable="true" DataType="System.Boolean" UniqueName="HidemeColumn" FilterCheckListEnableLoadOnDemand="false" DataField="hideme" SortExpression="hideme">
             <HeaderTemplate>
                 <asp:LinkButton Text="Hidden?" ID="HiddenSortbutton" ToolTip="Click to Sort" CommandName="Sort" CommandArgument="hideme" runat="server" />
             </HeaderTemplate>
             <ItemTemplate>
                 <asp:CheckBox Checked='<%# Bind("hideme") %>' Enabled="false" ID="chkHidden" runat="server" />
             </ItemTemplate>
             <EditItemTemplate>
                 Hidden?:
                 <asp:CheckBox ID="chkHidden" runat="server"  />
             </EditItemTemplate>
             <InsertItemTemplate>
                 Hidden?:
                 <asp:CheckBox   ID="chkHidden" runat="server" />
             </InsertItemTemplate>
             
         </telerik:GridTemplateColumn>

I've tried many things to solve this, firstly tried Binding the checked property of the checkbox in the InsertItemTemplate like this:

<asp:CheckBox Checked='<%# Bind("hideme") %>' ID="chkHidden" runat="server" />

That produces a cast error though.

Doing this doesn't cause any error:

 

<asp:CheckBox Checked='<%# DataBinder.Eval(Container.DataItem, "hideme") is DBNull ? false : Eval("hideme") %>' ID="chkHidden" runat="server" />

The problem is however that when I submit the Insert Form, the value of the checkbox is not stored in the DB. 

Any ideas?

Regards

JohannS

Johann
Top achievements
Rank 1
 answered on 09 Apr 2015
6 answers
1.4K+ views
Hi everybody,
I want display only years in RadDatePicker or RadDateTimePicker or RadMonthYearPicker same Image attach, please check image and help me
Thanks,

Javier
Top achievements
Rank 1
 answered on 09 Apr 2015
1 answer
83 views

Hi,

 We currently have a SP2010 farm and I have installed a new SP2013 test farm. Is there any documentation on specific Telerik Web Parts For SharePoint upgrade for this scenario, do I simply run the 2010 installer on the new farm or should I download the 2013 version instead? Some guidance would be appreciated

 We have premium support but thought I would try here first

Thanks in advance

Pavlina
Telerik team
 answered on 09 Apr 2015
1 answer
49 views

Hi,

 

I am trying to send Slider value to a textbox using AjaxManager. I want the value to be displayed in the textbox OnValueChanged. I do not want to use OnClientValueChanged as I want to use a codebehind method.

The issue is that the slider value is not updated consistently in the textbox every time I drag the slider handle. Sometimes it responds after two clicks or more and sometimes it starts working fine.

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 
      <telerik:RadAjaxManager ID="RadSlider1" runat="server" EnableAJAX="True" >
           <AjaxSettings>
               
               <telerik:AjaxSetting AjaxControlID="DbgSlider1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="Slider1Text" UpdatePanelRenderMode="Inline"></telerik:AjaxUpdatedControl >
                          </UpdatedControls>
                   </telerik:AjaxSetting>
                             </AjaxSettings>
       </telerik:RadAjaxManager>
 
 
<telerik:RadSlider runat="server" ID="DbgSlider1" Width="400px"
 
                        IsSelectionRangeEnabled="false" MinimumValue="0" MaximumValue="50000" Step="5000"
 
                        OnValueChanged="SetValue"
 
                        AutoPostBack="true" ShowDecreaseHandle="false" ShowIncreaseHandle="false" EnableDragRange="true"
 
                        EnableServerSideRendering="true" >
     
    </telerik:RadSlider>
   <dbg:DbgTextBox ID="Slider1Text" runat="server">
    </dbg:DbgTextBox>

Slav
Telerik team
 answered on 09 Apr 2015
1 answer
48 views

Hello,
My problem is that an appointment that covers multiple days is not displayed correctly in Week View (see WeekView.PNG) while it is displayed correctly in the Monthly View (see MonthView.PNG).
As you can see the appointment does not cover the entire box, does not cover all days for his duration and more is moved to the right. The code in both cases is the same.
For more information I have inspected the item and there is a margin-left which, I believe, has no reason to be there. Also witdh calculated element is obviously wrong (see InspectElement.PNG).
I tried everything, but nothing.
Many thanks for the support.

Andrea

Andrea
Top achievements
Rank 1
 answered on 09 Apr 2015
13 answers
359 views

Hi all,
I have a Rad grid with a column template like the following:

<telerik:GridTemplateColumn HeaderText="Actions" UniqueName="Actions">
 <ItemTemplate>
 <div class="sfBasicLangs">
  <asp:ImageButton runat="server" CommandName="delete" OnCommand="Delete" />
 </div>
</ItemTemplate>
</telerik:GridTemplateColumn>

the Delete method present in the OnCommand is never fired.... how can  have radGrid fire it.
I've already tried to enable viewstate on the grid

Thanks,
Mattia
bharath
Top achievements
Rank 1
 answered on 09 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?