Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
280 views
Hello, 

I am working on a project with a RadListBox.
In the RadListBox there is a list of items.
Each item consists of 2 elements: text and a toggle RadButton.
The user can change the location of an item inside the list, by drag-and-drop and also can change the toggle-state of the RadButton.

I am trying to get the new order of the list, after such a change.
I get the new order of the texts, but not the order of the buttons. [View video]

How can I get also the new order of the buttons?

Thanks,
Daniel.


My code:

ASPX:
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="Button1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="lbl_listSelected" />
                        <telerik:AjaxUpdatedControl ControlID="RadListBox1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btn_up">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadListBox1" UpdatePanelCssClass="" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
 
 
 <table cellpadding="0" cellspacing="0" class="nav-justified">
            <tr>
                <td class="auto-style1">
     
  
        <telerik:RadListBox ID="RadListBox1" runat="server"  AutoPostBackOnReorder="false" EnableDragAndDrop="true" AllowReorder="true" Skin="Metro" >
             <ButtonSettings ShowReorder="false"></ButtonSettings>
            <ItemTemplate>
                <telerik:RadButton ToggleType="CustomToggle" runat="server" AutoPostBack="false" Skin="Metro" ID="btn_Order"  Width="26px" Height="18px" Checked="true" ButtonType="ToggleButton" OnClick="btn_Order_Click" EnableViewState="true">  
                   <ToggleStates>
                       <telerik:RadButtonToggleState ImageUrl="img/no-sort.png" Selected="true" IsBackgroundImage="true" Value="NoSort"/>
                       <telerik:RadButtonToggleState ImageUrl="img/up.png"  IsBackgroundImage="true" Value="Asc" />
                       <telerik:RadButtonToggleState ImageUrl="img/down.png" IsBackgroundImage="true" Value="Dsc"/>
                   </ToggleStates>
                      
                </telerik:RadButton>
         
  
  
                 <span runat="server" id="Buttons_Name"><%# Eval("Col")%></span>
                
                <br />
            </ItemTemplate>
             
          
        </telerik:RadListBox>
                </td>
                <td>
                    <asp:Label ID="lbl_listSelected" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style1">
        <asp:Button ID="Button1" runat="server" Text="Button" />
                    <asp:Button ID="btn_up" runat="server" Text="up" />
                </td>
                <td> </td>
            </tr>
        </table>

VB.NET:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
  
  
             
            columnsTable = generateListCol()
            RadListBox1.DataSource = columnsTable
            RadListBox1.DataTextField = "Col"
            RadListBox1.DataBind()
        End If
    End Sub
 
   Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  
        Dim sb As New StringBuilder
        Dim collection As IList(Of RadListBoxItem) = RadListBox1.Items
  
 
        For Each item As RadListBoxItem In collection
            Dim btn As RadButton = CType(item.FindControl("btn_Order"), RadButton)
            sb.Append(item.Text + " - " + btn.SelectedToggleState.Value + "<br />")
        Next
        lbl_listSelected.Text = sb.ToString
    End Sub




Nencho
Telerik team
 answered on 04 Sep 2014
1 answer
154 views
I have a few buttons on my form that I just switched from ASP to Telerik. 

My form does some validation that I need these buttons to bypass. 

<form id="frmCheck" onsubmit="return Frm_onsubmit();" method="post" runat="server">

​ <telerik:RadButton ID="btnBatchT" runat="server" Text="Print Proof Listing" UseSubmitBehavior="false" CausesValidation="false" AutoPostBack="true" CssClass="css3Grad" Height="25px" Width="15%">
<Icon PrimaryIconCssClass="rbPrint" PrimaryIconLeft="4" PrimaryIconTop="3"></Icon>
</telerik:RadButton>




I need this to call my VB function and not go through my page validations.  How can I get these buttons to go straight to VB code?

Danail Vasilev
Telerik team
 answered on 04 Sep 2014
2 answers
52 views
Hi Guys,

Scenario:
1. Input several lines of text;
2. Put the cursor among them;
3. Create 4x4 table;
4. Perform right mouse button click on any cell of the table and select the “Table Properties”;
5. Select the “telerik-reTable-3” style in the “CSS Class Layout” menu;
6. Specify the “Height” and “Width” in the “Dimensions” menu;
7. Specify the “Cell Spacing” and “Cell Padding” in the “Layout” menu;
8. Press the “OK” button;
9. Select the HTML view;
10. Validate the HTML markup using the http://validator.w3.org/ validator

Actual result:
Element style not allowed as child of element p in this context.
<style type="text/css" id="telerik-reTable-3">

Expected result:
A valid HTML markup is generated.
Notes:
Please take a look at the video http://screencast.com/t/Ze1Y94in
Andrey
Top achievements
Rank 1
 answered on 04 Sep 2014
3 answers
131 views
We use Rad controls for a customer, and they just realized that the link manager did not work anymore. Maybe something changed when we updated the rad controls.
We currently uses Telerik 2012.3.1308.40 (Quarter 3 of 2012 i guess, been a while since we last updated).

When clicking the button for adding links the window pops up but the "Ok" and "Cancel" buttons does not work, the close button on top works.
With the console active in Chrome i get the following errors when the popup shows:

Uncaught SyntaxError: Unexpected token > Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=L%C3%A4nkhanterare&doid…:354
Uncaught TypeError: Cannot read property 'LinkManager' of undefined Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=L%C3%A4nkhanterare&doid…:851(anonymous function)Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=L%C3%A4nkhanterare&doid…:851(anonymous function)ScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:3484Sys$_Application$_raiseInitScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:5084Sys$_Application$initializeScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:4934initScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:5038Sys$_Application$_domReady.document.addEventListener.checkScriptResource.axd?
d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:5049

The html definition we uses on the page is the following:

<telerik:RadEditor ID="RadEditorDesc" runat="server" EditModes="Design, Html">
                                    <Tools>
                                        <telerik:EditorToolGroup>
                                            <telerik:EditorTool Name="Print" />
                                            <telerik:EditorTool Name="FindAndReplace" />
                                            <telerik:EditorTool Name="SelectAll" />
                                            <telerik:EditorTool Name="Cut" />
                                            <telerik:EditorTool Name="Copy" />
                                            <telerik:EditorTool Name="Paste" />
                                            <telerik:EditorTool Name="PasteStrip" />
                                            <telerik:EditorTool Name="Undo" />
                                            <telerik:EditorTool Name="Redo" />
                                        </telerik:EditorToolGroup>
                                        <telerik:EditorToolGroup>
                                            <telerik:EditorTool Name="InsertOrderedList" />
                                            <telerik:EditorTool Name="InsertUnorderedList" />
                                            <telerik:EditorTool Name="LinkManager" />
                                        </telerik:EditorToolGroup>
                                        <telerik:EditorToolGroup>
                                            <telerik:EditorTool Name="FontName" />
                                            <telerik:EditorTool Name="FontSize" />
                                            <telerik:EditorTool Name="ForeColor" />
                                            <telerik:EditorTool Name="Bold" />
                                            <telerik:EditorTool Name="Italic" />
                                            <telerik:EditorTool Name="Underline" />
                                            <telerik:EditorSeparator />
                                            <telerik:EditorTool Name="JustifyLeft" />
                                            <telerik:EditorTool Name="JustifyCenter" />
                                            <telerik:EditorTool Name="JustifyRight" />
                                            <telerik:EditorTool Name="JustifyFull" />
                                            <telerik:EditorTool Name="JustifyNone" />
                                        </telerik:EditorToolGroup>
                                    </Tools>
                                    <Content>
                                    
                                    
                                    </Content>
                                </telerik:RadEditor>

I have checked the web.config for configurations regarding handlers:
<system.web>
<httpHandlers>
      <!-- AJAX -->
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
      <add verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    </httpHandlers>
</system.web>

<system.webServer>
<handlers>
      <add name="EPiTraceTracker" path="TrackerHandler.ashx" verb="*" type="EPiServer.Trace.CMS.Web.Handlers.TrackerHandler" />
      <clear />
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="TraceHandler-Integrated" path="trace.axd" verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="WebAdminHandler-Integrated" path="WebAdmin.axd" verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="WebServiceHandlerFactory-Integrated" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="HttpRemotingHandlerFactory-rem-Integrated" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="HttpRemotingHandlerFactory-soap-Integrated" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="TRACEVerbHandler" path="*" verb="TRACE" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
      <add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
      <add name="ComponentArtScriptHandler" verb="*" path="ComponentArtScript.axd" type="Dropit.ComponentArt.Web.UI.ScriptHandler,Dropit.ComponentArt.Web.UI" preCondition="integratedMode" />
      <add name="StaticFileHandler" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
      <add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <!-- re-add the clear directive first in line-->
    </handlers>
</system.webServer>






Ianko
Telerik team
 answered on 04 Sep 2014
1 answer
200 views

I am trying to use Validations on RadPageView as below  and its not working (Paging not working):

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">

        <Tabs>

            <telerik:RadTab Text="Tap1 "
Width="200px">

            </telerik:RadTab>

            <telerik:RadTab Text=" Tap2"
Width="200px">

            </telerik:RadTab>

            <telerik:RadTab Text=" Tap3 Width="200px">

            </telerik:RadTab>

        </Tabs>

    </telerik:RadTabStrip>

    <telerik:RadMultiPage runat="server"
ID="RadMultiPage1"
SelectedIndex="0"
CssClass="outerMultiPage">

     

        <telerik:RadPageView runat="server"
ID="RadPageView2">

            <div class="ClientClass">

               
<table>

 

                   
<tr>

                        <td>

                            <div class="classImg">

                                <telerik:RadXmlHttpPanel runat="server"
Height="240px"
ID="radxmlhttppanel1"
Value="3"

                                    CssClass="xmlpanelcustomerinfo">

                                    <div class="classDiv">

                                        <table cellpadding="5px"
cellspacing="5px"
frame="border"
rules="groups"
style="position: absolute">

                                            <tr>

                                               
<td
style="width: 120px;">

                                                   
Phone:

                                               
</td>

                                               
<td
style="width: 150px;">

                                                   
<asp:TextBox ID="PhoneTextBox"
runat="server"
Width="116px"
MaxLength="12"></asp:TextBox>

                                                </td>

                                             <td style="width: 200px;">

                                                   
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ControlToValidate="PhoneTextBox"

                                                       
Display="Dynamic"
ErrorMessage="RequiredFieldValidator"
ForeColor="Red">Required</asp:RequiredFieldValidator>

                                                    <asp:CustomValidator
ID="CustomValidator2" runat="server"
Display="Dynamic" ControlToValidate="PhoneTextBox"

                                                       
ClientValidationFunction="Validate_Sender"
ForeColor="Red">Invalid Phone</asp:CustomValidator>

                                               
</td>

 

                                            </tr>

                                            <tr>

                                               
<td
style="width: 200px;">

                                                   
Message Sender:

                                               
</td>

                                               
<td
style="width: 150px;">

                                                   
<asp:TextBox ID="sendertxt"
runat="server"
Width="116px"
MaxLength="11"></asp:TextBox>

                                               
</td>

                                            

 <td style="width: 200px;">

                                                   
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="sendertxt"

                                                       
Display="Dynamic"
ErrorMessage="RequiredFieldValidator"
ForeColor="Red">Required</asp:RequiredFieldValidator>

                                                   
<%--</td>--%>

                                                   
<%--<td style="width:200px;">--%>

                                                 
<%-- 
<asp:CustomValidator ID="CustomValidator1"
runat="server" Display="Dynamic"
ControlToValidate="sendertxt"

    
                                                   ClientValidationFunction="Validate_Sender"
ForeColor="Red">Invalid message sender</asp:CustomValidator>

                                               
</td>

                                            </tr>

                                            <tr>

                                               
<td
style="width: 200px;">

                                                   
Msessage Text:

                                               
</td>

                                               
<td>

                                                    <asp:TextBox ID="msgtxt" runat="server"
TextMode="MultiLine"
Height="88px"
Width="280px"

                                                       
onkeyup="Update_Length_Label('bodyContent_msgtxt',
'bodyContent_length_lbl')"></asp:TextBox>

                                               
</td>

 

 <td>

                                                    <asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server"
ControlToValidate="msgtxt"

                                                       
ErrorMessage="RequiredFieldValidator"
Text="Required" ForeColor="Red">Reuired</asp:RequiredFieldValidator>

                                               
</td>

 

                                            </tr>

                                            <tr>

                                                <td>

                                                   
Message Length:

                                               
</td>

                                               
<td
colspan="2">

                                                   
<asp:Label ID="length_lbl"
runat="server"
Width="280px"
ViewStateMode="Enabled"></asp:Label>

                                               
</td>

                                            </tr>

                                            <tr style="height: 10px;">

                                            </tr>

                                            <tr>

                                               
<td
colspan="2">

                                                   
<asp:Button ID="Savebtn"
runat="server"
Text="Send"
Font-Bold="False"
Font-Size="Large"

                                                       
ForeColor="#333333"
Height="27px"
Width="85px"
OnClick="Sendbtn_Click"
/>

                                               
</td>

             
                              </tr>

                                        </table>

                                    </div>

                                </telerik:RadXmlHttpPanel>

                            </div>

                        </td>

                   
</tr>

               
</table>

            </div>

        </telerik:RadPageView>

    

    </telerik:RadMultiPage>

 

any suggestions  !!

 

 

Plamen
Telerik team
 answered on 04 Sep 2014
2 answers
54 views

Is it possible to drag around a RadDock without it becoming transparent?

I've tried hooking into the OnClientDragStart with this function:

function OnClientDragStart(sender, args)
{
   var dockElement = sender.get_element();
   dockElement.style.opacity = "";
   dockElement.style.mozOpacity = "";
   dockElement.style.filter = ""; 
}

It has no effect - I can set the transparency very low or high successfully, but even with transparency at the lowest, it visually looks about 50% transparent.

I've removed the SkinManager and tried a bunch of jQuery on individual elements in the OnClientDragStart function as well, but something in the framework is consistently setting the entire dock's transparency when dragging starts.

I'm using UI for ASP.NET AJAX, v2014.1.403.45

Thanks,
Mike
Mike
Top achievements
Rank 1
 answered on 03 Sep 2014
2 answers
716 views
I am using a radgrid populated by a standard object datasource with a matching data entity. The grid populates fine and everything is operating fine except for when the Add New Record button is clicked the grid loses its current page and goes to the last page of the grid.

I found a nifty way to stop that from happening along with preventing an edit and insert from occuring at the same time see code 1. This code block is firing on ItemCommand Insert Command.

The problem is when I call e.Canceled it completely messes up my ItemDataBound function that is populating a drop down list used to pick a value on insert. How can I do both, keep the drop down list populating appropriately and keep my paging where it started when the AddNewRecord was clicked? I am open to a solution that doesn't use code block 1 as i think it may over complicate it but I need some help on how to tackle the problem. Any ideas?

Code 1
switch (e.CommandName.ToUpper()) {
    case "INITINSERT":
        grid.MasterTableView.ClearEditItems();
        //Ensure the grid doesn't jump to the last page
        e.Canceled = true;
        int pageIndex = e.Item.OwnerTableView.CurrentPageIndex;
        e.Item.OwnerTableView.InsertItem();
        e.Item.OwnerTableView.CurrentPageIndex = pageIndex;
        e.Item.OwnerTableView.Rebind();
        return;
    case "EDIT":
        e.Item.OwnerTableView.IsItemInserted = false;
        return;
Greg
Top achievements
Rank 2
 answered on 03 Sep 2014
3 answers
130 views
Hello,

I am working on a project with a RadGrid.
I need to make a custom filter.
I read your documentation and saw the instructions how to do it.

My problem is that the code works only for string type filters.
I get the following error in line 08 when I try to filter other types:

Unable to cast object of type 'Telerik.Web.UI.RadNumericTextBox'
to type 'System.Web.UI.WebControls.TextBox'.

My grid is generic (columns and data fields types are changed dynamically in run-time). 

VB.NET Code:
01.Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles RadGrid1.ItemCommand
02.  
03.  
04.        If e.CommandName = RadGrid.FilterCommandName Then
05.            Dim filterPair As Pair = CType(e.CommandArgument, Pair)
06.            Dim filteritem = (CType(e.Item, GridFilteringItem))
07.  
08.            Dim textBox As TextBox = CType(filteritem(filterPair.Second.ToString()).Controls(0), TextBox)
09.            'Dim textBox As CheckBox = CType(x(filterPair.Second.ToString()).Controls(0), CheckBox)
10.            'Dim textBox As RadNumericTextBox = CType(x(filterPair.Second.ToString()).Controls(0), RadNumericTextBox)
11.            'Dim textBox As RadDatePicker = CType(x(filterPair.Second.ToString()).Controls(0), RadDatePicker)
12.  
13.            Dim val As String = textBox.Text
14.            Select Case filterPair.First
15.                Case "EqualTo"
16.  
17.                    'some logic
18.  
19.  
20.                Case ""
21.            End Select
22.  
23.             
24.            e.Canceled = True
25.  
26.  
27.        End If
28.    End Sub


Thank you,
Daniel
Eyup
Telerik team
 answered on 03 Sep 2014
1 answer
202 views
I am using  RadImageEditor & RadGrid with some data with coordinates, When i select a record in the grid i want to draw a rectangle on the image to show the record position on the image and when user selects another record then we should move the rectangle to different position on the image.
 
Vessy
Telerik team
 answered on 03 Sep 2014
2 answers
77 views
Hello,

We have installed Telerik UI for ASP.NET Ajax (Telerik_Web_Parts_For_Sharepoint2010_2014_2_724_Trial.msi) and configured our SharePoint 2010 to use the RadEditor in List items as it is described here. We also performed an IISreset. Still a simple text box appears (see attached screen capture) instead of the full ribbon as shown into the demo. Note that the RadEditor WebPart works fine.

Could you please help us in understanding the missing configuration?

Regards,
Roger.

Roger Roch
Top achievements
Rank 1
 answered on 03 Sep 2014
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?