Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
269 views
I have a RadGrid with all rows set to be editable (inline) in PreRender. I'm setting a background color (BackColor) on every other GridEditableItem in this step, because there is no alternate style for editable rows.

I've got a heavy border at the bottom of each row - as well as a background image (according to FireBug it's coming from an axd resource).

The "Selected" row style also is hidden because of this default background image.

I've spent several hours trying to get rid of the border (1px from the inline style and 1px from the background image), and have had no luck.  

I can disable the border in Firebug and/or IE's developer tools, on the fly, and eliminate the border, allow the Selected Row style to function, but I can't seem to do it in my app.

Any assistance for what should be a very simple task would be greatly appreciated!

In my default css:

div.RadGrid_Default .rgEditRow
{
    background-image:none !important;
    border:none;
}


PreRender in code-behind:

protected void Page_PreRender(object sender, EventArgs e)
       {
           bool alternate = false;
            
           foreach (GridItem item in grid.MasterTableView.Items)
           {
               if (item is GridEditableItem)
               {
                   GridEditableItem editableItem = item as GridDataItem;
                   editableItem.Edit = true;
                   if (alternate)
                   {
                       item.BackColor = System.Drawing.ColorTranslator.FromHtml("#efefef");
                   }
                   alternate = !alternate;
               }
           }
       }

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2011
1 answer
81 views

When I try to filter an item in a grid which has virtual scrolling enabled on client side, it does not bring up anything. 

I am trying to get an item which has an id 100. I am scrolling through the pages in a grid virtually, but when I search for an item it brings up a blank page.

Please advice.

Thanks,
Divya
Princy
Top achievements
Rank 2
 answered on 10 Nov 2011
4 answers
410 views
I am using the current version of the RadGrid control for ASP.NET/AJAX and am following the edit template example using a SQLDataSource to handle Select/Insert/Update/Delete. I have the example working and would like to be able to have a multi-selectable listbox control, either the stabndard control or Rad control, that will populate the selected values into a single column within the RadGrid as a comma or semicolan delimited value. I would also like the item(s) of the list box to be selected based on the delimited value during edit events on existing records. Based on what I have coded, only the first selected item is inserted/updated into the corresponding RadGrid column and database. Do I need to add on_Updating and on_Inserting events in the code behind to handle this and how do I go about passing the correct value to the SQLDataSource?

The listbox contained within the edit template is as follows:

 

 

<asp:ListBox ID="lbLights" runat="server" SelectionMode="Multiple" SelectedValue='<%# Bind("Lights") %>'

 

 

 

DataSource='<%# (new string[] { "HIRL", "MIRL", "LIRL", "Centerline Lights", "Pilot Controlled", "Non-Standard", "None" }) %>' TabIndex="8" AppendDataBoundItems="True">

 

 

 

<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>

 

 

 

</asp:ListBox>

 


Thanks,

Aaron
Velmurugan
Top achievements
Rank 1
 answered on 10 Nov 2011
1 answer
73 views
I have a radbutton and a textbox in edititemtemplate.How can i make the textbox disabled when user clicks the radbutton?
Princy
Top achievements
Rank 2
 answered on 10 Nov 2011
1 answer
135 views
Hi. I can create and delete folders, upload and delete files. But the refreshing logo with greyed out background won't go away.

My code is below. For an image of the issue please look at http://stackoverflow.com/questions/7927274/telerik-upload-manager-folder-creates-and-deletes-but-refresh-images-stays

telerikupload.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="telerikupload.aspx.cs" Inherits="plle_telerikupload" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<head runat="server">
    <title></title>
</head>
<body>
<form runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server" />
     
            <telerik:dialogopener runat="server" id="DialogOpener1"></telerik:dialogopener>            
            <asp:Button runat="server" ID="DocumentManagerButton" Text="doc"
                        Visible="true" />            
        </asp:Panel>
        <asp:Label ID="Info" SkinID="Info" runat="server" />
    </div>
    </form>
</body>
 
</html>

telerikupload.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI.Editor.DialogControls;
using Telerik.Web.UI;
 
public partial class plle_telerikupload : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        FileManagerDialogParameters documentManagerParameters = new FileManagerDialogParameters();
        documentManagerParameters.ViewPaths = new string[] { "~/" };
        documentManagerParameters.UploadPaths = new string[] { "~/" };
        documentManagerParameters.DeletePaths = new string[] { "~/" };
        
        var dialog = "~/dialogs/default/";
         
 
        documentManagerParameters["ExternalDialogsPath"] = dialog;
 
        DialogDefinition documentManager = new DialogDefinition(typeof(DocumentManagerDialog), documentManagerParameters)
        {
            ClientCallbackFunction = "DocumentManagerFunction",
            Width = Unit.Pixel(694),
            Height = Unit.Pixel(440)
        };
 
        DialogOpener1.DialogDefinitions.Add("DocumentManager", documentManager);
 
        DocumentManagerButton.OnClientClick = string.Format("$find('{0}').open('DocumentManager');return false;", this.DialogOpener1.ClientID);
    }
}
Rumen
Telerik team
 answered on 10 Nov 2011
1 answer
77 views
My radbutton looks pressed in IE.Is there any work around for this?
Rumen
Telerik team
 answered on 10 Nov 2011
1 answer
61 views
Hi

I have been trying to copy a list from Word that is not formatted with the style normal. When i paste it into RadEditor i get strange formatting on my list. For example: I can make a paragraph style in Word called ListParapraph. I then make a new listformat that uses the ListParagraph style for the text. When i try to copy that list to RadEditor 2008 Q2 it makes the list like stairs and it adds a lot of empty space below the list.
Here is the HTML-code that i get.
<p style="margin: 0cm 0cm 10pt 36pt" class="TestParagraph2"><span style="font-family: symbol"><span style="font-size: 24px">·</span><span style="font: 7pt 'times new roman'">        </span><span style="font-size: 24px">Sdfsdfsdfs</span>
<p style="margin: 0cm 0cm 10pt 36pt" class="TestParagraph2"><span style="font-family: symbol"><span style="font-size: 24px">·</span><span style="font: 7pt 'times new roman'">        </span><span style="font-size: 24px">Dfsdfsdfs</span>
<p style="margin: 0cm 0cm 10pt 36pt" class="TestParagraph2"><span style="font-family: symbol"><span style="font-size: 24px">·</span><span style="font: 7pt 'times new roman'">        </span><span style="font-size: 24px">Dfsdfsdfs</span>
<p style="margin: 0cm 0cm 10pt 36pt" class="TestParagraph2"><span style="font-family: symbol"><span style="font-size: 24px">·</span><span style="font: 7pt 'times new roman'">        </span><span style="font-size: 24px">Fsdfsdf</span>
<p style="margin: 0cm 0cm 10pt 36pt" class="TestParagraph2"><span style="font-family: symbol"><span style="font-size: 24px">·</span><span style="font: 7pt 'times new roman'">        </span><span style="font-size: 24px">sdfsdfsdfsdfs</span></span></p>
</span></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</span></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</span></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</span></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>

Its not closing the <p> tags after each line so the list becomes very strange (like stairs). I noticed that the behavior is changed in newer versions of RadEditor but is that the only way to fix the problem?


Rumen
Telerik team
 answered on 10 Nov 2011
3 answers
52 views
i continually keep seeing the same problem on this one page I am making where I make all these formatting changes and when I save it and look at the results, those formatting changes aren't there.  For example, I just selected all and changed the font to Arial but i'm looking at the page it's not all arial.  I see times new roman in various areas.  why does it do this? i go into the html and there is no reference to times new roman... why does it revert back to that? 
Rumen
Telerik team
 answered on 10 Nov 2011
1 answer
105 views
Hi,

I ran into an issue and as i am unable to find any post relating to it , i am pasting the image here. This issue is caused when typing some text inside radEditor and clicking through mouse after deleting the test. Note: The radEditor is inside the radWindow. Help will be much appreciated.
Rumen
Telerik team
 answered on 10 Nov 2011
0 answers
76 views
I have a Visual Studio 2010 project using Telerik Radcontrols for ASP.NET AJAX Q1 2011 SP1.  Primarily just using dropdowns and a radgrid and a button.  Everythings works great locally through the VS IDE and running the app on Localhost.  After deploying to our test server environment, while it loads the first page fine - which consists of the dropdowns for making selections, the 2nd page, which is the results from the database loading to a RadGrid, does not display.  The RadGrid simply shows a big box where the grid data should be, but no data.  I know the app is talking to the database because if I View Source and look at the page source, I can see the database records listed!  And there are all sorts of references to the grid as well in view source.  All controls display great except for the RadGrid.  Any ideas?
Nancy
Top achievements
Rank 1
 asked on 09 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?