Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views
For layout purposes I am trying to use the RadScheduler control in Sitefinity 4.0.  I want to modify the template so that when it's clicked it goes to the event's home page.  It seems that the event page in the events widget needs the DateCreated value.  How can I cast an appointment object as an event object?  I'm trying to do something to the effect of this:

Container doesn't exist.  Is this even possible?  Or the dataitem doesn't exist.  Something gives me an object not set to instance error.

<telerik:RadScheduler runat="server" ID="Scheduler1" SelectedView="MonthView" height="100%" allowedit="false" allowdelete="false" allowinsert="false">
    <appointmenttemplate>
        <h6>
            <a href="<%=this.EventUrl %>                
                <%#((Event)Container.Appointment.DataItem).DateCreated.Year.ToString() %>
                /<%#((Event)Container.Appointment.DataItem).DateCreated.Month.ToString() %>
                /<%#((Event)Container.Appointment.DataItem).DateCreated.Day.ToString() %>
                /<%#Eval("Subject").ToString().Replace(" ", "-").ToLower() %>">
                <%#Eval("Subject") %>
            </a>
        </h6>
    </appointmenttemplate>
</telerik:RadScheduler>
Ivan Dimitrov
Telerik team
 answered on 06 May 2011
3 answers
107 views
Hello,

I am using template columns to divide a column into two or more columns. Example:

Organization
--------------------
Balance| Quantity

unlike other columns, I am unable to resize these template columns.. Can you guide me as to how can I acheive resizing of these columns as well...

Regards,
Effat
Effat
Top achievements
Rank 1
 answered on 06 May 2011
1 answer
136 views
I am loading html content from a database and whenever there is a break "<br/>" the editor adds a "<br></br>". how can this be stopped?

Thanks!
Rumen
Telerik team
 answered on 06 May 2011
12 answers
228 views
This is a follow up for

http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-radtreeview-serverside.aspx

After applying the suggested workaround, I found that the combobox doesn't resize when tree nodes are expanded.
Instead, H/V scrolls are shown. Does someone know how to get rid of these scrolls and have the combo resizing when a
treenode expands?

Thanks,
Cris
Kate
Telerik team
 answered on 06 May 2011
3 answers
262 views
Hi all,

Please help!
Is there any way to disable postback at GridFilterMenuItem ?
I already tried as below but it doesn't work. 
Even Postback value always show 'False' at runtime my grid still postback when I select FilterMenuItem.

<FilterMenu EnableEmbeddedScripts="True" >
  <DataBindings><telerik:RadMenuItemBinding PostBack="false"/>
</DataBindings>
</FilterMenu >
&
Dim menu As GridFilterMenu = RadGrid1.FilterMenu
For Each item As RadMenuItem In menu.Items
    Dim a As String = item.Text
    item.PostBack = False
Next
Iana Tsolova
Telerik team
 answered on 06 May 2011
1 answer
95 views
Hi,

Can anyone help me here? I got a problem in upgrading the website from Radcontrol 1.1x to RadControl Q1 2011. Its a huge leap in version so there is a big problem on it. I already have telerik.web.ui.dll in my bin folder but the same problem I get not only in this control but almost every controls.
Genady Sergeev
Telerik team
 answered on 06 May 2011
1 answer
213 views
Sorry for my very bad italian/english.
I'm quite new to .NET and Telerik.
I have a RadGrid control in which I perform edit and insert by using the Radgrid modal popup.
Some of the columns are edit/insert column template, and I can populate the textboxes by using RadDatePicker, Combobox ...
I would like some fields in the edit popup to be populated from data picked doubleclicking on another RadGrid (let's say it's in a RadWindow opened by a RadButton near the textbox).
How can I perform data transfer between RadWindow and edit/insert popup of the first RadGrid?
Thank you
Princy
Top achievements
Rank 2
 answered on 06 May 2011
3 answers
80 views
i have made a page with telerik editor on,
width: 355px > works fine in Internet Explorer but not in Firefox,

if i remove the basictoolbar.xml, its OK in firefox, but i want to add some text editing options,

anyone who can help me?

you can check the problem on

http://www.viavacation.com/nl/account/acco-add-2/

regards
Wouter
Rumen
Telerik team
 answered on 06 May 2011
1 answer
187 views
I have a RadGrid in a page, and the header text for the columns is set dynamically in the PreRender event so that localization can occur.

I added three new columns to the grid, and for some reasion when I try to find these columns by their UniqueName, an exception is thrown.  If I comment out the call to the three new columns, the problem goes away. If I add any one of the three new columns back, the problem returns.  The problem occurs with the columns "OrderDate", "OrderNo", "PONumber"

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowPaging="false"
            AllowSorting="false" Skin="Simple" EnableEmbeddedSkins="false" Width="100%"
            OnNeedDataSource="RadGrid1_NeedDataSource" 
            OnItemDataBound="RadGrid1_ItemDataBound"
            OnDataBound="RadGrid1_DataBound"
            OnPreRender="RadGrid1_PreRender">
            <MasterTableView TableLayout="Fixed">
                <Columns>
                    <telerik:GridBoundColumn DataField="LineItemId" Visible="false" UniqueName="LineItemId"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderLinePOSID" Visible="false" UniqueName="OrderLinePOSID"></telerik:GridBoundColumn>
                      
                    <telerik:GridTemplateColumn UniqueName="LineNumber" Visible="false">
                      <ItemTemplate>
                        <asp:Label runat="server" ID="lblLineNumber" />
                        <asp:Label runat="server" ID="lblLineAssociation" />
                      </ItemTemplate>
                    </telerik:GridTemplateColumn>
                      
                    <telerik:GridTemplateColumn UniqueName="DisplayName">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="LevelLabel" Text="   > " Visible="false"><img alt=" "src="/partner/gfx/POS_RelatedItem.gif" /></asp:Label>
                              
                            <asp:HyperLink runat="server" ID="ProductLink" TabIndex="-1"></asp:HyperLink>
                            <div class="posItemInfo" runat="server" id="AdditionalInfoContaner">
                                <asp:Label runat="server" ID="AdditionalInfoLabel"></asp:Label>
                            </div>
                              
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                      
                    <telerik:GridBoundColumn DataField="OrderDate" UniqueName="OrderDate"></telerik:GridBoundColumn>
                      
                    <telerik:GridBoundColumn DataField="OrderNo" UniqueName="OrderNo"></telerik:GridBoundColumn>
                      
                    <telerik:GridBoundColumn DataField="PONumber" UniqueName="PONumber"></telerik:GridBoundColumn>
                      
                    <telerik:GridBoundColumn DataField="Qty" UniqueName="Qty" HeaderStyle-Width="70"></telerik:GridBoundColumn>
                      
                    <telerik:GridTemplateColumn UniqueName="EndUser">
                        <HeaderStyle Width="274px" />
                        <ItemTemplate>
                            <asp:DropDownList runat="server" ID="EndUserList" Width="250" CssClass="partnerform"></asp:DropDownList>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                      
                      
                    <telerik:GridTemplateColumn UniqueName="Actions" ShowFilterIcon="false">
                        <HeaderStyle Width="80px" />
                        <ItemTemplate>
                            <asp:Button runat="server" ID="SplitButton"/>
                              
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                  
                </Columns>
                  
                <NoRecordsTemplate>
                    <br />
                    <%= _noItemsText %>
                </NoRecordsTemplate>
            </MasterTableView>
        </telerik:RadGrid>


protected void RadGrid1_PreRender(object source, EventArgs e)
    {
        RadGrid1.Columns.FindByUniqueName("DisplayName").HeaderText = _objGenericFormListProvider.FindValue("PartNumber");
        RadGrid1.Columns.FindByUniqueName("OrderDate").HeaderText = "????";
        RadGrid1.Columns.FindByUniqueName("OrderNo").HeaderText = "!!!!";
        RadGrid1.Columns.FindByUniqueName("PONumber").HeaderText = "****";
        RadGrid1.Columns.FindByUniqueName("Qty").HeaderText = _objGenericFormListProvider.FindValue("Quantity");
        RadGrid1.Columns.FindByUniqueName("EndUser").HeaderText = _objGenericFormListProvider.FindValue("EndUser");
    }
Princy
Top achievements
Rank 2
 answered on 06 May 2011
1 answer
117 views
Hi,

I am using RadComboBox in my page.Whenever you select the first item in combo box, selected index becomes -1.
(For example, If am having 10 elements in combobox,by default 1st item is selected, when you click on drop down and and again select the first item,while accessing the selected index from the server side -1 is coming).

Because of this am not able to select the selected value and selected text.
(Binding the RadComboBox from the database)

After doing the same thing, I tried to access the selected value from the client side in OnDropdownClosed event, Selected value and Text is coming.But it is not coming from the server side.


Thanks,
John
Badri
Top achievements
Rank 1
 answered on 06 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?