Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
94 views
Hi,

I have a 
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        </telerik:RadScriptManager> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"  
            AllowSorting="True" GridLines="None"  
            onneeddatasource="RadGrid1_NeedDataSource" AllowAutomaticDeletes="True"  
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True"  
            AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"> 
<HeaderContextMenu EnableTheming="True"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
<MasterTableView> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
<Columns> 
<telerik:GridTemplateColumn HeaderText="someheader"> 
<ItemTemplate> 
some user control 
</ItemTemplate> 
<EditItemTemplate> 
<uc1:WebUserControl ID="WebUserControl1" runat="server" /> 
</EditItemTemplate> 
</telerik:GridTemplateColumn> 
</Columns> 
</MasterTableView> 
 
            <ClientSettings> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            </ClientSettings> 
 
<FilterMenu EnableTheming="True"> 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
        </telerik:RadGrid> 
    </div> 
     
    </form> 
</body> 
</html> 


And the usercontrol:



<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="WebUserControl" %> 
<asp:ListBox ID="ListBox1"  SelectionMode="Multiple" runat="server"> 
    <asp:ListItem>12</asp:ListItem> 
    <asp:ListItem>3</asp:ListItem> 
    <asp:ListItem>45</asp:ListItem> 
    <asp:ListItem>5</asp:ListItem> 
    <asp:ListItem>5</asp:ListItem> 
    <asp:ListItem>44</asp:ListItem> 
    <asp:ListItem>3434</asp:ListItem> 
</asp:ListBox> 
 

how do i get the values from the listbox in the usercontrol when performing a save or update? and how do i select pre-defined values(the ones saved in an edit to a db) in the listbox when displaying it in itemtemplate?


 
first last
Top achievements
Rank 1
 asked on 08 Dec 2008
0 answers
97 views
I have a Scheduler control that is currently showing a 7 day week in TimelineView mode.  The correct days are being displayed in the content area, however the header reads "Mon, 12/08/2008 - Mon, 12/15/2008", which is incorrect, as only Monday through Sunday are being displayed.  Is this a known issue, and if so is there a fix or workaround available?
Tiarnan
Top achievements
Rank 1
 asked on 08 Dec 2008
3 answers
178 views
Ok, I know this is a weird one:

Is it possible (without returning multiple columns) to group IP addresses displayed in RadGrid by subnet?

For example:
1.1.1.1 - 1.1.1.255
1.1.2.1 - 1.1.2.255
1.1.3.1 - 1.1.3.255

Thanks.
apb
Top achievements
Rank 1
 answered on 08 Dec 2008
1 answer
126 views
I have added templates at runtime to my menu and that works fine.
The template includes a RadTextBox that I want to do a postback on TextChanged.
in the InstantiateIn function I have
                radTextBox.TextChanged += new EventHandler(radTextBox_TextChanged); 
This works the first time it is called. Subsequent changes to the text cause a postback, but it does not seem that the TextChanged function is called.
            void radTextBox_TextChanged(object sender, EventArgs e) 
            { 
                RadTextBox target = (RadTextBox)sender; 
                if (target.BackColor == System.Drawing.Color.Red || target.BackColor == System.Drawing.Color.Green) 
                { 
                    target.BackColor = System.Drawing.Color.Green; 
                } 
                else 
                { 
                    target.BackColor = System.Drawing.Color.Red; 
                } 
            } 
The backcolor of the RadTextBox starts as white, turns red on a postback and doesn't change again when I change the text more.

I'm pretty lost on what to try to get the text changed to call properly more than the first time. Any pointers would be greatly appreciated.
Baatezu
Top achievements
Rank 2
 answered on 08 Dec 2008
2 answers
106 views
Hello,

Out of the box, why is the font for the selected item in the RadComboBox so bigger than the rest of the text?  Is that a setting somewhere, or is what what the Skin looks like?  Do all the skin's look like that?

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 08 Dec 2008
1 answer
123 views
Hi there,

I'm trying to add a little 'Insert Widget' button for a CustomDialog, but I'm stuck at resizing the button (CSS Class rade_tools) to a specific size.

Is there a way of programatically defining the button size, overriding the default values?

Thanks in advance.
Rumen
Telerik team
 answered on 08 Dec 2008
2 answers
242 views
It seems that GetAppointmentsInRange will return only the first item in a recurrence pattern or an exception to the pattern (with its own record in the db).  If I run this on a date containing a standard recurrence of an appointment, nothing is returned.

I need to get a list of all the events on a date regardless of if they are a one-off, first of a recurrence, or otherwise...basically, if it is being rendered by Scheduler on a particular day, I am hoping to find a way to get the appointment via code.  Is that the intent of the "GetAppointments..." methods?  If not, what is the proper way to query for a day's events?

Thanks,
Jeff
GrZeCh
Top achievements
Rank 2
 answered on 08 Dec 2008
2 answers
101 views
The images in the Toolbar help article "HTML structure explained" show up as broken links:

http://www.telerik.com/help/aspnet-ajax/appearance-html-structure-explained.html

Is it me? If bot, cna you fix that please, it's an interesting article.

Thanks, Steve
Steve Newbery
Top achievements
Rank 1
 answered on 08 Dec 2008
0 answers
147 views
Greetings,

I've been using the online and installed help to try and make a hierarchical grid within Sharepoint. I can get the Master data just fine, but the detail data will not show up. When I expand the record I always get "No child records to display". I've been struggeling with this for days now and I'm absolutely at a dead end. 

Here is what I'm trying to do. If anyone spots something out of the ordinary please let me know:

My design is to make a Sharepoint web part that programatically builds and binds the data.

nm...found the problem
Matthew
Top achievements
Rank 1
 asked on 08 Dec 2008
1 answer
124 views
hi,
I have Placed my application in C:\Inetpub\wwwroot\. I want to upload a file using document manager  to a folder (Attachments) in the application.I am not allowed to upload the file due to permission problem.
this works only if the appliaction path is given. I want the folder to work when it is Placed inside C:\Inetpub\wwwroot\.

It throws a following error.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. 

Please provide a solution to Access permission for all kinds of OS such as Windows2003,XP, Vista. 

Thanks
Veda  
Rumen
Telerik team
 answered on 08 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?