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

hi,

i am adding dynamic radcombox boxes with checkboxes .

 

example code:

for(int i=0;i<44;i++)

{

 RadComboBox DdlSections = new RadComboBox();
                                    DdlSections.CheckBoxes = true;

 DdlSections.ID = "DdlSections_" + (i + 1);

 DdlSections.DataSource = GetCCDSTemplates;//getting from database
                                            DdlSections.DataTextField = "SectionName";
                                            DdlSections.DataValueField = "SectionID";
                                            DdlSections.DataBind();

    divsection.Controls.Add(DdlSections);// adding these controls to div

}

now i want to read these radcomboboxes in button click

is it possible? please send me answer asap

raju
Top achievements
Rank 1
 asked on 10 Apr 2015
2 answers
184 views
We have some users with IE8 that during editing if they highlight some text and select bold and italics it adds some question marks to the beginning of the text they changed.  If I attempt the same thing with IE11 I never see the question marks appear.   The HTML code shows "<strong>?<em>?" has been inserted for the users with IE8.  Anyway to keep this from happening? (other than upgrading IE)
brijesh
Top achievements
Rank 1
 answered on 10 Apr 2015
1 answer
334 views

Upon clicking btnSearch, it disables it with telerik's SingleClick=true property. If validation fails it doesn't postback and I try to set the button back to being enabled but it doesn't get set. It still is disabled with the text saying "Searching...".What I am trying to do is if it fails the validation, I want the button to be enabled again. Right now if i click on it and validation fails, it gets stuck being disabled.

 

<telerik:RadButton ID="btnSearch"  Text="Search" SingleClick="true" OnClick="btnSearch_Click" OnClientClicking="Validate" SingleClickText="Searching..." ></telerik:RadButton>

 

function Validate(button, args) {
     if (error) {
button.set_autoPostBack(true);               
} else { //validation fails                           
button.set_autoPostBack(false);                 
button.set_enabled(true); // i have currently              
 }

Misho
Telerik team
 answered on 10 Apr 2015
1 answer
132 views

i have createtd grids commanditemtemplate programmaticly according to the code you provide in your documentation.

         addButton = new LinkButton();
         addButton.ID = "addButton";
         addButton.Text = "Add record";
         addButton.CommandName = "InitInsert";

Clicking addButton doesnt show a new empty record but postbacks an opens an edittemplate (witch was never defined).

I'd like to have the same behavoir as by using the built in save-button (add a new, empty record).

Is this possible with Rad-Grid ??

 

Thanks for any help.

 

 

 

 

Eyup
Telerik team
 answered on 10 Apr 2015
6 answers
164 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
170 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
174 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
798 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
111 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.3K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?