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

Hi,
I have taken a Radgrid, in which in one column cell, I have 2 controls. I want to
remove margin between table border and control.

 
In RadGrid, I have applied following properties.

<telerik:RadGrid . . . . .

CellSpacing="0" cellpadding="0" . . . . . >


Code:
<ItemTemplate>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
   
<tr>
 <td style="border: 1;">
  <asp:TextBox ID="txtTest" runat="server" TextMode="multiline" Width="100%"   Rows="2" Text='<%#DataBinder.Eval(Container.DataItem, "Test")%>'>
</asp:TextBox>
</td>
</tr>
  
<tr>
 <td style="border: 1;" align="right">
 <asp:ImageButton class="clsbuttonsize" ID="btnDotsTest" runat="server" ImageUrl="~/Images/btn_Test.gif"                                                                     ToolTip="Click to view and update the Test." />
</td>
</tr>
  
</table>
<asp:HiddenField ID="hdnTest" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "Test")%>' />
 </ItemTemplate>

Still I am not able remove margin between border and control.

 

I have attached the screenshot.

Eyup
Telerik team
 answered on 16 Oct 2012
3 answers
99 views
I have a RadTreeList setup that uses a generic list as its datasource. I have a parent and id columns and I verified that parent = id. I set the parent's id column to null.

The only thing that shows in the treelist is the parent row no children, no expand arrow. The datasource is has data. I get no errors.

Any ideas?

Here's my DataSource:
Dim geoDataList As List(Of FacilitiesList) = ds.GetDistanceGridFacilities(oLat, oLon, radius, facilityNumber)

        RadGeoTreeList.DataSource = geoDataList
        RadGeoTreeList.DataBind()

Here's the TreeList:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel" runat="server">
            <telerik:RadTreeList runat="server" ID="RadGeoTreeList" Visible="true" DataKeyNames="FacilitiesreportingId" ParentDataKeyNames="VERA3" AutoGenerateColumns="false" 
            Width="100%" Height="400" ShowTreeLines="true">
                <Columns>
                    <telerik:TreeListBoundColumn DataField="FinanceNumber" HeaderText="Finance Number" UniqueName="FinanceNumber"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Origin" HeaderText="Origin" UniqueName="Origin"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Destination" HeaderText="Destination" UniqueName="Destination"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Address" HeaderText="Address" UniqueName="Address"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="City" HeaderText="City" UniqueName="City"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="State" HeaderText="State" UniqueName="State"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="ZipCode" HeaderText="Zip" UniqueName="ZipCode"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Distance" HeaderText="Driving Distance" UniqueName="Distance"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Area" HeaderText="Area" UniqueName="Area"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="PFC" HeaderText="PFC" UniqueName="PFC"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="OnRolls1" HeaderText="OnRolls" UniqueName="OnRolls"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Residual" HeaderText="Residual" UniqueName="Residual"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Withheld" HeaderText="Withheld" UniqueName="Withheld"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Optional1" HeaderText="OPT" UniqueName="Optional1"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="VERA1" HeaderText="VER" UniqueName="VERA1"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="VERA3" HeaderText="VERA3" UniqueName="VERA3"></telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="FacilitiesreportingId" HeaderText="FacilitiesreportingId" UniqueName="FacilitiesreportingId"></telerik:TreeListBoundColumn>
                </Columns>
            </telerik:RadTreeList>
        </telerik:RadAjaxPanel>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" />
Angel Petrov
Telerik team
 answered on 16 Oct 2012
5 answers
95 views
Hi,

I have a scenario where I'm dynamically creating checkbox at client side and need to decorate it using RadFormDecorator.
For Ex:
<form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
           <Scripts>
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
           </Scripts>
       </asp:ScriptManager>
       <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Default" DecoratedControls="All" />
       <div id="d"></div>
   </form>
   <script type="text/javascript">
       window.onload = function () {
           var cb = document.createElement('input');
           cb.type = 'checkbox';
           document.getElementById('d').appendChild(cb);
           var decorator = $find("<%= RadFormDecorator1.ClientID %>");
           if (decorator) {
               decorator.decorate(cb, true);
           }
       }
   </script>
Thanks in advance...
Abhijit Shetty
Top achievements
Rank 2
 answered on 16 Oct 2012
4 answers
107 views
Hi,

I need to change the default RibbonBar images. If the we add approx. 30 RadRibbonItem in a RadRibbonGroups, it picks the default RibbonBar images (if we don't add imageurl). I already have a customized default icon for the RadRibbonItem, but it doesn't pick the customized ribbonimage after 17-18 ribbon items are added.

Below is the url of the default RibbonBar items

<img title="" class="rrbButtonImage" style="visibility:visible;" alt="Item Image" src="/Project/WebResource.axd?d=aiNB5OmQeNHVf5XWk97-tMFIIzmuwsC9HNSxCKe1M4-JmQYIEnPBVjt7MpL3voxN3azNeKtr7v83kvmeXWrcYGa5IwnR-ZE6EJPsGTC97bU1&t=634849188040000000" complete="complete"/>

Here the red cross image is the default icon

Customized image when no imageurl is added.


Please suggest.
Bozhidar
Telerik team
 answered on 16 Oct 2012
2 answers
98 views
Hello,

Recently we are no longer able to directly open links in the preview mode of the editor. We need to use shit+click or ctrl+click to open them. Of course this is a simple solution, but one of my clients is not happy with this behaviour. He just wants to click.

You can see this behaviour in your demo here:

http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx

Go to preview mode and try to click the link there. Nothing happens unless you ctrl+click it.
Is this by design? It used to be possible to just click it. Is there a work around for this maybe?

Using IE9, 2012.2.912.35 release.

Thanks!

Yeroon
Yeroon
Top achievements
Rank 2
 answered on 16 Oct 2012
1 answer
144 views
I've noticed that when you hover over the button using Chrome when you have the metro touch skin in use it underlines the text.  Is there a css fix for this?
Bozhidar
Telerik team
 answered on 16 Oct 2012
2 answers
568 views
Hii,
How tho add a folder icon in every node of treeview?

thanks.
Kate
Telerik team
 answered on 16 Oct 2012
2 answers
165 views
Helo To All  I am using RadAsyncUpload.Its working on my local System but when i upload it online its not working..When i am uploading files i am not getting green signal like when i am trying i am getting like this..plz see attached file..

My web config is


    <httpHandlers>
      <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.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" />
    </httpHandlers>
    <httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
  </system.web>
  <system.codedom>
    <compilers>
             <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.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=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
</configuration>
Cat Cheshire
Top achievements
Rank 1
 answered on 16 Oct 2012
1 answer
142 views

Hii,
How to allow users to upload all files except the files with no extension?

thanks..
Princy
Top achievements
Rank 2
 answered on 16 Oct 2012
1 answer
81 views
Hi,
 If I put content such as M&T in the RadTickerItem it changes the  & to &amp;. Is there a way to stop this from happening? In the code below the Ham & Eggs becomes Ham &amp; Eggs.
<telerik:RadTicker AutoStart="true" runat="server" ID="Radticker1" Loop="true">
    <Items>
        <telerik:RadTickerItem >Ham & Eggs</telerik:RadTickerItem>
        <telerik:RadTickerItem>M&T<telerik:RadTickerItem>
        <telerik:RadTickerItem>AT&T<telerik:RadTickerItem>
    </Items>
</telerik:RadTicker>
Slav
Telerik team
 answered on 16 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?