Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
534 views
Hi,

I want to find a check_box_list controls check_box count in Rad_list_view on client side. how can get it.
please provide solutions.
My code as follows
<telerik:RadListView runat="server"  ID="RadListView1" BorderColor="White" onitemdatabound="RadListView1_ItemDataBound" BorderStyle="None" AllowPaging="True">
        <ClientSettings></ClientSettings>          
         <ItemTemplate>
                    <div style="border-bottom:1px solid gray;padding-left:15px;">   
                          <table cellpadding="2px" cellspacing="2px" border="0">                                                                   
                                        <tr>                                                                    
                                        <td class="LabelWidth" style="margin-left:2%; vertical-align:middle;font-family: Georgia,serif;">
                                                 <asp:Label ID="Label4" runat="server" Text='<%# (DataBinder.Eval(Container.DataItem,"PermissionItemName")) %>'></asp:Label>
                                     </td>
                                                                      
                                     <td>    </td>
                                      <td valign="middle">
                                             <asp:CheckBoxList  ID="Listbox_Permission" CellSpacing="10" CellPadding="5"  runat="server" RepeatDirection="Horizontal" CssClass="CheckboxList" AutoPostBack="false" >
                                               </asp:CheckBoxList>        
                                                                          
                                       </td>
                                  </tr>                                        
                         </table>
                   </div>
                 </ItemTemplate>
            </telerik:RadListView>

Thanks,
Rahul
Eyup
Telerik team
 answered on 02 Jul 2020
2 answers
77 views

I need to manually select the first list matching item and turn it into a token.

 

Reading the documentation I think that the way to go would be within the example below:

var autoComplete = $find("<%= RadAutoCompleteBox1.ClientID %>");
var newEntry = autoComplete.createEntry('Text', 'Value');
var entries = autoComplete.get_entries();
entries.add(newEntry);

 

 

However instead to create newEntry manually I need to capture the first item in the list that matches user typing (text and value). Any idea?

 

Thanks!

Yan Moura
Top achievements
Rank 1
Veteran
Iron
 answered on 01 Jul 2020
15 answers
672 views

Hello,

my Telerik license has been renewed however when I logged in and try to download latest version it showing that I do not have license and cannot download any new version.

Please advise.

Thanks.

Vitaly.

 

Rumen
Telerik team
 answered on 01 Jul 2020
6 answers
517 views
Hi,
   I want to do when i selected AutoCompleteBox  item i want to do a postback and get the selected items id on server side.so provide solutions.
Thanks,
Rahul
Ciupaz
Top achievements
Rank 2
Veteran
 answered on 01 Jul 2020
1 answer
169 views

I found an issue with the context menu. I tried in the demo to right click on an empty area/on a word and expects that the default context menu should show up with copy/paste etc... Only the native browser (Chrome 83) menu shows up. Shouldn't this work by default?

In my code i have been using this to add a custom menu, but it doesnt work due to the above issue i guess.
Is there any documentation how to add items for all tags, in the code below I use *, and seen other examples with BODY

MyRadEditor.EnsureToolsFileLoaded();
var contextMenu = MyRadEditor.ContextMenus.FindByTagName("*");

var editorTool = new EditorTool("Toolname");
editorTool.ShowIcon = false;
contextMenu.Tools.Add(editorTool);

Rumen
Telerik team
 answered on 01 Jul 2020
4 answers
680 views
Hello,

is there a way to accomplish the following task using the RadGrid client side API:

RadGridComparableAnalysis.MasterTableView.AutoGeneratedColumns[columnCounter].ItemStyle.BackColor =

Color.White;

 


As you can noticed from the following code, i'm able to get the object of target column but could not find a property which can allow me to change the background color. Please let me know what i'm missing here

//Define array of columns

 

var grdColumns = new Array(masterTable.get_columns().length);

 

//Get all columns
grdColumns = masterTable.get_columns();

 


//Navigate to all columns and chage background color for the required columns
for
(var columnCounter = 0; columnCounter < masterTable.get_columns().length; columnCounter++) {

 

 

var remainder = (columnCounter % 2);

 

 

if (remainder == 0) {

 

 

var grdColumn = grdColumns[columnCounter];

 

 

//masterTable.getColumnByUniqueName(grdColumn.get_uniqueName()).backColor = "Blue";
//masterTable.autoGeneratedColumns[columnCounter].itemStyle.iackColor = "Blue";
}
}

 

Thanks

 

Attila Antal
Telerik team
 answered on 30 Jun 2020
4 answers
239 views

is there a way to show the lightbox from code behind.


e.g. RadLightBox1.Show()

Attila Antal
Telerik team
 answered on 30 Jun 2020
1 answer
105 views

Hello,

 

I am getting glitches trying to 

connect AdventureWorks2012 db to Telerik UI webapp.

How can I connect some data to a chart?

I m readin the tutorials, but now sure how to synch

then grab data and drop evrything in the chart.

Vessy
Telerik team
 answered on 30 Jun 2020
2 answers
112 views

Hi Telerik,

We use buttons across the page as navigation. So all buttons are setup as follows:

<telerik:RadPageLayout runat="server" GridType="Fluid" ShowGrid="false">
        <Rows>
 
            <telerik:LayoutRow CssClass="LayoutRowStyle LayoutRowHamburger">
                <Columns>
                    <telerik:LayoutColumn Span="2" SpanXs="12" SpanSm="6" SpanMd="3">
                        <div class="divStandard">
                            <telerik:RadButton runat="server" ID="RadButtonBoardDetails" CausesValidation="false" AutoPostBack="false" Text="Details" Width="100%"
                                OnClientClicked="OnClientClickedNavSubButton" RenderMode="Lightweight" ToggleType="CheckBox" Checked="true" CommandArgument="../boards/boarddetails.aspx">
                            </telerik:RadButton>
                        </div>
                    </telerik:LayoutColumn>
                    <telerik:LayoutColumn Span="2" SpanXs="12" SpanSm="6" SpanMd="3">
                        <div class="divStandard">
                            <telerik:RadButton runat="server" ID="RadButtonCreate" CausesValidation="false" AutoPostBack="false" Text="New" Width="100%"
                                OnClientClicked="OnClientClickedNavSubButton" RenderMode="Lightweight" CommandArgument="../boards/helper/boardcreate.aspx">
                                <Icon PrimaryIconCssClass="rbAdd" />
                            </telerik:RadButton>
                        </div>
                    </telerik:LayoutColumn>
                    <telerik:LayoutColumn Span="2" SpanXs="12" SpanSm="6" SpanMd="3">
                        <div class="divStandard">
                            <telerik:RadButton runat="server" ID="RadButtonBoardGroupLinks" CausesValidation="false" AutoPostBack="false" Text="Group Links" Width="100%"
                                OnClientClicked="OnClientClickedNavSubButton" RenderMode="Lightweight" CommandArgument="../boards/boardgrouplinks.aspx">
                            </telerik:RadButton>
                        </div>
                    </telerik:LayoutColumn>
 
.....
        </Rows>
    </telerik:RadPageLayout>

 

So when the button is clicked we keep it "checked" and the theme looks like an "active" page for that button. This ONLY works with some themes. How can we change this in our Skin specific CSS, that would let us keep a checked state, like its being Hovered.

 

Ex: The first  button is marked checked and if using the "Simple" theme, it looks nice when checked. If the "Web20" is used, the checked does nothing to the checked state CSS of the button.

As you can see from the attach files, the Web20 has the same CSS as checked and unchecked.

 

All of the Skins handle the checked state CSS differently. We would like to control is via stylesheets.

 

Thanks for the help!

 

 

 

 

Doncho
Telerik team
 answered on 29 Jun 2020
3 answers
79 views

We are attempting to update the drag handle text to match the current value.  The basic technique is outlined here: https://www.telerik.com/forums/display-the-current-values

The problem is that the text is not updated when the page is loaded.  We tried to access the drag handles (get_dragHandles()[0]) in the client load event, but the drag handles are null at that point.  Looking at the state of the control at this point shows some interesting values such as "initialized internal" being false and not value being set the for the "drag handle element".  If I retrieve the drag handles in another event such as value changed they exist and these values are set as expected.

_dragHandleElement: null
_initializedInternal: false

 

We simplified our example down to the following and the behavior is reproducible.  We are using version 2019.1.215.45 of the controls.

<telerik:RadSlider ID="sldTest" RenderMode="Lightweight" BackColor="Red" Value="50" ForeColor="Blue" MinimumValue="0" MaximumValue="100" Width="500" ShowDragHandle="True" OnClientLoad="sldTest_ClientLoad" OnClientValueChanged="sldTest_ClientValueChanged" runat="server" />
 

          function sldTest_ClientLoad(slider, args) {
              //alert(slider.get_dragHandles()[0]);
          }

          function sldTest_ClientValueChanged(slider, args) {
              alert(slider.get_dragHandles()[0].firstChild.innerHTML);
          }

Rumen
Telerik team
 answered on 29 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?