Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
442 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
79 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
142 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
85 views
My radbutton looks pressed in IE.Is there any work around for this?
Rumen
Telerik team
 answered on 10 Nov 2011
1 answer
64 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
54 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
111 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
83 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
3 answers
103 views
I have some extra fields in my appointment table which are not user-edited fields, but rather need to be generated from the appointment's information when the appointment is created or updated.
 
Is there a way for me to hook onto an event of the Radscheduler so that on inserts and updates, I can generate my extra field data, without interfering with Radscheduler's binding still handling the normal fields? Perhaps a way to have Radscheduler call my recalcuation function after every time it does an insert or update? I don't want to have to rewrite the whole edit/insert event. Is there a better way?
Plamen
Telerik team
 answered on 09 Nov 2011
3 answers
128 views
Hi all,
I am using appointment template to display appointment. If at same time interval there are more than 3 appointment its going to overlapped. Is there is any way by which we fix the width of appointment template, so that they will not overlapped,
thanks
Plamen
Telerik team
 answered on 09 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?