Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
160 views
I have a website that consists of 2 main areas, the public facing section and an admin section (loacted in an admin subdirectory)

Because the admin section will also be using RAD controls, Do I have to also copy the RadControls directory to the admin subdirectory or is there some way to set up a central 'reference' to them ?
Ivo
Telerik team
 answered on 06 Nov 2008
1 answer
198 views
Hi,

I have configured my site to use radeditor in the place of the OOB RTE, using the wsp.Everything is working fine. Am trying to plug in the RADImage manager functionality and was successful. but its failing in the below mentioned scenario.

My site architecture is i have a site where

I have a top level site collection, two subsites.

Subsite 1 has all libraries(doc, pic, etc.. )

Subsite 2 inturn has one more subsite(lets call it as subsite21) and subsite21 has a wiki library. Now i want to use the picture library available in the subsite 1 in this wiki library to insert images in the wiki article.

If i mention the imagelibrary url in the listconfig.xml file and when i click on the image manager in the wiki article while editing, it throws me a "invalid path" error.

How do i solve this? do help me at the earliest.

Thanks in advance.,
Shiva
--



Lini
Telerik team
 answered on 06 Nov 2008
3 answers
98 views
Hi,

I am using rad combobox in several pages of my website. I have updated all of its instances in my code after getting the latest version of Rad Combobox.
But earlier i was making use of description field in the combobox:
    

        <

 

radC:RadComboBox ID="combPayment" runat="server" Description="PAYMENT_TABLE" MarkFirstMatch="true"

 

 

            AllowCustomText="False" ExpandEffect="Fade" Height="150px" NoWrap="True" Width="200px"

 

 

            TabIndex="4" >

 

        </radC:RadComboBox>

And the new version doesn't have any description field.
This field contains the name of the database table, used to fill the comboboxes.
Now i don't want to add dynamic attributes to combobox , So is there any other field that i can use or any other way ?


Thanks

Atanas Korchev
Telerik team
 answered on 06 Nov 2008
2 answers
184 views

I am trying to attach an event to a DropdownList which is part of my Edit Form. But the SlectedIndex_changed event doesn't fire even though when I select it does a postback. Appreciate any help

                    <telerik:RadGrid    ID="rgContactNumber"
                                        OnItemCommand="rgContactNumber_ItemCommand"
                                        OnItemDataBound="rgContactNumber_ItemDataBound"
                                        OnNeedDataSource="rgContactNumber_NeedDataSource"
                                        OnUpdateCommand="rgContactNumber_UpdateCommand"
                                        AllowAutomaticDeletes="True" AllowAutomaticUpdates="True"
                                        AllowAutomaticInserts="true" AllowPaging="True"
                                        AllowSorting="True" AutoGenerateColumns="False" 
                                        EnableAJAX="True"
                                        GridLines="Horizontal" runat="server" Width="98%"
                                        EnableAJAXLoadingTemplate="False"
                                        LoadingTemplateTransparency="0"
                                        PageSize="5">
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="False" />
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>                         
                        <MasterTableView Width="100%" GridLines="Horizontal" DataKeyNames="ContactID" PageSize="5"
                                             AutoGenerateColumns="False"  CommandItemDisplay="TopAndBottom">
                            <CommandItemTemplate>
                                <table>
                                    <tr>
                                        <td width="30%">
                                            <asp:LinkButton ID="btnAdd" Text="Add Contact Number" CommandName="InitInsert" runat="server"/>
                                        </td>
                                    </tr>
                                </table>
                            </CommandItemTemplate>
                            <Columns>
                                <telerik:GridEditCommandColumn  ButtonType="ImageButton"
                                                                UpdateImageUrl="../App_Themes/Default/DataEditingImages/Edit.gif"
                                                                CancelImageUrl="../App_Themes/Default/DataEditingImages/Cancel.gif">
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn    DataField="ContactId" Groupable="False" HeaderText="Contact Id"
                                                            UniqueName="ContactIdColumn" ReadOnly="True" Visible="false">
                                </telerik:GridBoundColumn>                     
                                <telerik:GridBoundColumn    DataField="ContactValue" HeaderText="Phone Number"
                                                            SortExpression="ContactValue" UniqueName="ContactValue">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn    DataField="ContactSubType.Description" HeaderText="Contact Type"
                                                            SortExpression="ContactSubType.Description"
                                                            UniqueName="PhoneType" ReadOnly="true" Visible="true">
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn    DataField="ContactDescription" HeaderText="Describe Other"
                                                            SortExpression="ContactDescription" UniqueName="ContactDescription"
                                                            Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="IsPrimary" HeaderText="Primary"
                                                UniqueName="Primary" Visible="true"> 
                                </telerik:GridCheckBoxColumn> 
                                <telerik:GridDropDownColumn HeaderText="Phone Type" UniqueName="ddlPhoneType" Visible="false"
                                                            ListValueField="ContactSubTypeID"
                                                            ListTextField="Description"
                                                            DropDownControlType="DropDownList">
                                </telerik:GridDropDownColumn>                                                           
                                <telerik:GridButtonColumn   ConfirmText="Are you sure you want to Delete this Contact?"
                                                            ButtonType="ImageButton"
                                                            ImageUrl="../App_Themes/Default/DataEditingImages/Delete.gif"
                                                            CommandName="Delete"
                                                            Text="Delete"
                                                            UniqueName="DeleteColumn">
                                <HeaderStyle Width="20px"/>
                                </telerik:GridButtonColumn>                
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <FormTemplate>
                                    <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;background:white;">
                                        <tr>
                                            <td colspan="2" style="font-size: small"><b>Contact Details</b></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0">
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Phone Number</td>
                                                    <td><asp:TextBox ID="txtContactValue" runat="server" Text='<%# Bind( "ContactValue" ) %>'/></td>
                                                </tr>
                                                <tr>
                                                    <td>Phone Type</td>
                                                    <td>
                                                        <asp:DropDownList   ID="ddlPhoneType"
                                                                            DataSourceID="odsContactSubTypes"
                                                                            DataTextField="Description"
                                                                            DataValueField="ContactSubtypeID"
                                                                            runat="server"
                                                                            AutoPostBack="true"
                                                                            ShowToggleImage="True"
                                                                            Width="150px">
                                                        </asp:DropDownList>                                                                    
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Is Primary</td>
                                                    <td><asp:CheckBox ID="chkIsPrimary" runat="server"/></td>
                                                </tr>
                                                <tr>
                                                    <td>Describe Other</td>
                                                    <td><asp:TextBox ID="txtContactDescription" runat="server" Visible="false"/></td>
                                                </tr>                                       
                                                <tr>
                                                    <td align="right" colspan="2">
                                                        <asp:Button ID="btnUpdate"
                                                                    Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                    runat="server"
                                                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                        </asp:Button>&nbsp;
                                                        <asp:Button ID="btnCancel"
                                                                    Text="Cancel"
                                                                    runat="server"
                                                                    CausesValidation="False"
                                                                    CommandName="Cancel">
                                                        </asp:Button>
                                                    </td>
                                                </tr>
                                            </table>
                                    </FormTemplate>
                            </EditFormSettings>               
                        </MasterTableView>
                    </telerik:RadGrid>

Here is the Code Behind

    protected void rgContactNumber_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem item = e.Item as GridEditFormItem;
            DropDownList ddl = (DropDownList)item.FindControl("ddlPhoneType");
            ddl.AutoPostBack = true;
            ddl.SelectedIndexChanged += new EventHandler(ddl_SelectedIndexChanged);
            ddl.DataSource = CollateralPartyBLO.GetContactSubTypes();
            ddl.DataBind();
        }
    }

    protected void ddl_SelectedIndexChanged(object sender, EventArgs e)
    {
        int id = ddl.SelectedIndex;
    }

Stephen
Top achievements
Rank 1
 answered on 06 Nov 2008
4 answers
93 views
Hi.

I just upgraded my website to use the latest version of RadControls for ASP.NET AJAX (2008.Q2 1001) but when I deployed the website it didn't recognize the new versions, so I had to modify the web.config file to downgrade the version to 723.

After reviewing the new dlls I noticed that the dates are correct, but for some reason they don't work on my server.

Also, the Telerik.Web.UI.dll has a date of 9/30/2008 2:21 PM, which seems old. All other dlls have 10/8/2008.

My Web.Config file has the following entries:

<

 

add assembly="Telerik.Charting, Version=2.0.5.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

 

<

 

add assembly="Telerik.ReportViewer.WebForms, Version=2.8.8.925, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

 

<

 

add assembly="Telerik.Reporting.Processing, Version=2.8.8.925, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

 

<

 

add assembly="Telerik.Reporting, Version=2.8.8.925, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

 

<

 

add assembly="Telerik.Reporting.Interfaces, Version=2.8.8.925, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

But after the deploy I had to change it back to:

 

<

 

add assembly="Telerik.Charting, Version=2.0.3.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

 

<

 

add assembly="Telerik.ReportViewer.WebForms, Version=2.8.8.723, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

 

<

 

add assembly="Telerik.Reporting.Processing, Version=2.8.8.723, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

 

<

 

add assembly="Telerik.Reporting, Version=2.8.8.723, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

 

<

 

add assembly="Telerik.Reporting.Interfaces, Version=2.8.8.723, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>


 

 

How can I fix this?

Thanks.
Jose Guay

Jose
Top achievements
Rank 2
 answered on 06 Nov 2008
4 answers
109 views
I was working with the RadMenu and using it as a Vertical Menu.  I am using the Gray Style. Everything seems to work fine in ie7 and Firefox, but in ie6 I am having 2 issues.

1. .rpExpanded

.RadPanelBar_Green .rpExpanded .rpText
{
 background: transparent url('PanelBar/downarrow2.png') no-repeat 100% 0px;
 background-position: right top;

}

On .rpExpandable, I have an image called rightarrow2.png.  When I click to expand, it switches to downarrow2.png in ie7 and Firefox.  In ie6, expands but the image stays rightarrow2.png.

2. .rpSelected

.RadPanelBar_Green .rpGroup .rpSelected
{
 text-decoration: none;
 background-color: #006633;
 background: #006633;
 color: #FFF;
 height: 25px;
 padding-top: 7px;
 
}

In this one, I have a background color of #006633 showing up for the selected cells below the root.  It works fine in ie7 and firefox, in ie6 it does nothing.

William
Top achievements
Rank 1
 answered on 06 Nov 2008
1 answer
104 views
Hi. Every time i open configuration wizard for setting my chart, the wizard's settings will reset. If i want change only one parameters of my chart, i must set it all. Is it ok or are there some error?

Tanks
Alessandro
Ves
Telerik team
 answered on 06 Nov 2008
1 answer
136 views
I saw some examples with binding gantt chart to daterange:
RadChart1.PlotArea.YAxis.AddRange((new DateTime(2007, 1, 1)).ToOADate(), (new DateTime(2008, 1, 1)).ToOADate(), ((new DateTime(2008, 1, 1)).ToOADate() - (new DateTime(2007, 1, 1)).ToOADate()) / 7);

How can I bind that to sqldatasource with 2 fields "DateStart" and "DateEnd"?

Thanks



Ves
Telerik team
 answered on 06 Nov 2008
1 answer
117 views
I have a ajax chart that contains a barchart series bound to a sql data source.  In code I am adding a new series (a calculated trend line).  The code to create, populate, and add the series is in the chart init method.  The code runs, but the new serices (line) is not visible.  Any assistance would be appreciated.
Ves
Telerik team
 answered on 06 Nov 2008
3 answers
872 views
Simple I thought but I can't get any success:(

What I am trying to achieve is that when a radWindow closes the grid refreshes.

I use a radWindow opened by a button in a grid row to allow uploads of files to be associated with the row. When the upload completes the user closes the upload window and I then want to refresh the grid in order to show the names of the files uploaded in a grid cell.

The upload updates the database table with the names of the uploaded files.

tow attempts that fail -

 
function onClientClose(radWindow) {  
    alert('ClientClosed');  
    var masterTable = $find("<%= grd.ClientID %>").get_masterTableView();  
    masterTable.dataBind();  
    
//    window('<%=grd.ClientID %>').AjaxRequest('<%= grd.UniqueID %>', 'ResetAndRebind');  
}  
 

Declan
Declan
Top achievements
Rank 2
 answered on 06 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?