Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
I am exporting pdf files and was wondering if there was a way that if the cell is right aligned in the grid, to make it right align in the pdf file as well.  I created a custom control.  I have/will have over 200 reports. I want to be able to determine if the cell is right aligned or not other then 

            GridColumn col = (GridColumn)RadGrid1.MasterTableView.GetColumn("ColumnUniqueName"); 

where I would have to know each ColumnUniqueName.
Daniel
Telerik team
 answered on 30 May 2009
3 answers
259 views
Hi,

I would like to create appointment slots to either force user to create their appointment in defined slots, or allow them to create appointment outside of slots with confirmation.
And I would like slots to be rendered as a background area under appointments, with templated rendering...

In the first time, I would like only to have them been rendered as background area...

Do you know if it is possible to do it easily please ?
Peter
Telerik team
 answered on 30 May 2009
12 answers
194 views
Hi,
I have a splitter control on my page with a sliding pane & other panes.
I also have a Radtooltipmanager that displays a tooltip for a control within one of the splitter panes.

My problem is..
When i hover over the sliding pane bar, it activates the OnAjaxUpdate, which displays my bespoke tooltip.
I have not coded this.

How can i stop this happening ?

Many Thanks
Mark
Svetlina Anati
Telerik team
 answered on 30 May 2009
3 answers
111 views
Hi, 
My problem started when I tried to add the property to export PDF within the "CommandItemTemplate" of RadGrid.
In the examples I saw, was being used "RadAjaxManagerProxy", however, I already use the RadGrid "RadAjaxManager" but the effect does not happen.
Any ideas?
Daniel
Telerik team
 answered on 30 May 2009
3 answers
239 views
I am using the RadScheduler and here is my scenario:
  • I would like to disable the onclick event of the scheduler control and add an external button that says "add event"
  • When users click this button, I would like it to open a custom insert form with custom attributes that also uses recurrence
  • I need this custom insert form to be a web page not a user control

I have been working with this control for a very short time and I have the custom attributes and recurrence working just fine in a user control.  When I try using the schedulerDefaultForm as part of a webpage, however, it gives me an error because the schedulerFormContainer is null, therefore the appointment and owner fields are null and I get null reference exceptions.  I have searched around the forums and documentation a bit but I can't find an example of a custom insert form that is a web page and not a user control.  Any help would be appreciated.
Peter
Telerik team
 answered on 30 May 2009
5 answers
415 views
I have a RadGrid that has a Templated column containing a RadComboBox that is populated with data from a different datasource that the RadGrid's datasource (Example: You have a RadGrid of Products which can have ParentProducts.  When inserting new Products or editing existing Products you want to allow the user to select that the Product has no Parent Product or select a Product from a list of Products as the parent).

I am having an issue with the RadGrid always selecting the ""/Nul/Select an option value even when the user selects a value.  The effect of this is that any new item inserted via the RadGrid always has no Parent and any item with a Parent that is edited ends up having no Parent.

Is there something missing or wrong in the code below?

 <telerik:GridTemplateColumn HeaderText="SectionID" UniqueName="SectionID">  
                        <EditItemTemplate> 
                            <telerik:RadComboBox ID="SectionIDEditor" runat="server" AppendDataBoundItems="true" DataValueField="SectionID" DataTextField="SectionName" DataSourceID="SqlDataSource3" Skin="WebBlue" > 
                            <Items> 
                                <telerik:RadComboBoxItem Value="" Text="Select Parent Section" /> 
                            </Items> 
                            </telerik:RadComboBox> 
                        </EditItemTemplate> 
                        <ItemTemplate> 
                            <asp:Label ID="SectionIDLabel" runat="server" Text='<%# Eval("SectionID") %>'></asp:Label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 

    Protected Sub RadGrid1_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound  
        If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then 
 
            'access/modify the edit item template settings here  
            Dim Section As RadComboBox = CType(e.Item.FindControl("SectionIDEditor"), RadComboBox)  
            Section.DataSourceID = "SqlDataSource3" 
            Section.DataBind()  
 
            If Not DataBinder.Eval(e.Item.DataItem, "SectionID"Is Nothing And IsNumeric(DataBinder.Eval(e.Item.DataItem, "SectionID")) Then 
                ''Section.SelectedValue = DirectCast(DataBinder.Eval(e.Item.DataItem, "SectionID"), Integer)  
                ''Section.Items(0).Attributes("style") = "color: red"  
                'Section.SelectedValue = DataBinder.Eval(e.Item.DataItem, "SectionID")  
 
                ''If Section.Items.FindItemByValue("", True).Selected Then  
 
                ''End If  
                ''Dim ComboItem As RadComboBoxItem  
                ''For Each ComboItem In Section.Items  
                ''    If ComboItem.Value.Equals(e.Item.DataItem) Then  
                ''        ComboItem.Selected = True  
                ''    End If  
                ''Next ComboItem  
                If (Not Session("updatedValue"Is NothingThen 
                    Section.SelectedValue = Session("updatedValue")  
                End If 
            Else 
                Section.SelectedValue = "" 
            End If 
 
        End If 
 
        'If (TypeOf e.Item Is GridEditableItem AndAlso CType(e.Item, GridEditableItem).IsInEditMode) Then  
        '    'Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)  
        '    'Dim editMan As GridEditManager = editedItem.EditManager  
        '    'Dim editor As GridTemplateColumnEditor = CType(editMan.GetColumnEditor("SectionID"), GridTemplateColumnEditor) 'in case you have RadComboBox editor for the GridDropDownColumn (this is the default editor), 'you will need to use ComboBoxControl below instead of DropDownListControl 'and add RadComboBoxItems instead of ListItems to the Items collection of the editor   
        '    'Dim Section As RadComboBox = editor.ComboBoxControl  
 
        '    Dim Section As RadComboBox = CType(e.Item.FindControl("SectionIDEditor"), RadComboBox)  
        '    'Section.Items.Insert(0, New RadComboBoxItem("Select Parent Section", "NotSetItem"))  
        '    If Not DataBinder.Eval(e.Item.DataItem, "SectionID") Is Nothing And IsNumeric(DataBinder.Eval(e.Item.DataItem, "SectionID")) Then  
        '        'Section.SelectedValue = DirectCast(DataBinder.Eval(e.Item.DataItem, "SectionID"), Integer)  
        '        'Section.Items(0).Attributes("style") = "color: red"  
        '        Section.SelectedValue = DataBinder.Eval(e.Item.DataItem, "SectionID")  
 
        '        'If Section.Items.FindItemByValue("", True).Selected Then  
 
        '        'End If  
        '        'Dim ComboItem As RadComboBoxItem  
        '        'For Each ComboItem In Section.Items  
        '        '    If ComboItem.Value.Equals(e.Item.DataItem) Then  
        '        '        ComboItem.Selected = True  
        '        '    End If  
        '        'Next ComboItem  
        '    End If  
 
 
        'End If  
 
    End Sub 
Iana Tsolova
Telerik team
 answered on 30 May 2009
7 answers
802 views


Hello


              I want the my grid to load in the same manner as the demo is shown of the Drag-Drop grid.

I inserted the loading Panel ,but I am not able to show theloading image when the backroung goes gray.
In the demo they have written a cssclass which I will have to include in my aspx but the CssClass is not there in the sample demo .Please help me with this is required very importantly.



Thankx in advance,
Regards
Ritzie
Iana Tsolova
Telerik team
 answered on 30 May 2009
1 answer
118 views

                                            
Hi telerik team,

I have a doubt hiding edit and delete images in a column based upon Groupby status in outlook style grid.

i followed below URL

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/webmail/defaultcs.aspx

instead of Received from date i will have status:open(4) on Expand group shows 4 (rows)items
in which edit and delte should display
if Satus:Closed(8) in which Edit and delete column will display but without images

I m able to do in common grid but in outlook style grid?
Appreciable for any quick help

Thanks & Regards
G.Sudheer kumar

Georgi Krustev
Telerik team
 answered on 30 May 2009
5 answers
157 views
Hi

A few moths ago I started a thread and later a support ticket regarding writing the week number in the date header of the radscheduler week and day view and your reply was that I could find the LiteralControl that held the header by referring to:

RadScheduler1.Controls[0].Controls[0].Controls[2].Controls[0]

and then use my custom method to retrieve the week number and write it to the LiteralControl

that worked fine until I upgraded to the latest version of the package which renders an error that the same control now is a WebControl not a LiteralControl. Is there a new way for me to write to the header or anotherway to display the week number?

with kind regards
Peter
Telerik team
 answered on 30 May 2009
1 answer
112 views
Update: I think its a side effect of a different control I am using

I have a control on the page that does an ajax request back to a page e.g.(clicking a button) in that button event I am making a call to some web service. After I get the results back from that call I am using linq to filter down the data by some items on the page.
I tired setting the data source of my grid after I am done with the linq filtering but rows never show up on the page. I ended up reading this link Rebind grid on command/postback event with EnableViewState = false thiking that would be what I need to do, but that has not worked for me either.

Here is some of the code I have written.

public class Programs 
    { 
        public string Name 
        { 
            get
            set
        } 
        public bool Required 
        { 
            get
            set
        } 
 
        public bool Approved 
        { 
            get
            set
        } 
    } 
 
 public partial class Charts: Page 
    { 
        List<Programs> ProgramList; 
 
 
 protected void Button_Click(object sender, ImageClickEventArgs e) 
 
   
                //Programs has items in it and is declare as a var 
                // for brevity sake I left out the filtering  code 
                ProgramList = programs; 
 
                DetailsGrid.DataSource = null
                DetailsGrid.Rebind(); 
 
protected void DetailsGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
        { 
            if (ProgramList != null
            { 
                DetailsGrid.DataSource = ProgramList; 
 
            } 

That datasource is set and the Items created code does run but the grid never shows up on the page. It
Georgi Krustev
Telerik team
 answered on 30 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?