Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Howdy,

I have the following class in my editor CSS file

body

{

 

font-family: Times New Roman !important;

 

 

font-size: 12pt !important;

 

 

background-image: url(policy_bg.jpg) !important;

 

 

background-repeat:repeat-y !important;

 

 

background-position:right !important

 

}



I can't get the background to show! I also tried

RadEditor1.CssFiles.Clear();

RadEditor1.CssFiles.Add(

"edit.css");

 


And that didn't appear to work either.

My background is plain white, help!
Delphi
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
146 views
I have my FileExplorer nested in a RadWindow, but no matter what I try, I can't open folders?

I can create/delete a folder, but when I double click or right click>open, nothing happens? Therefore I don't think it's a rights issue, and I have had success moving the FileExplorer unchanged to an empty page outside any RadWindow, where I could open the folders no problem.

My code is:

    <telerik:RadWindow runat="server"  
        Width="800px" Height="541px" VisibleStatusbar="false" 
        ID="winFileExplorer" Modal="true" Behaviors="Close" 
        Title="Select image"
        <ContentTemplate> 
            <div class="floatr" style="width:210px;"
            <fieldset> 
                <legend>Preview</legend> 
                <div class="c"><asp:Image ID="imgPreview" runat="server" style="margin:10px 0;max-width:180px;max-height:500px;" /></div
            </fieldset> 
            </div> 
            <telerik:RadFileExplorer ID="fileExplorer" runat="server"  
                Width="570" TreePaneWidth="150"  
                ExplorerMode="Default" VisibleControls="ContextMenus,Toolbar,Grid" DisplayUpFolderItem="true" 
                EnableOpenFile="true" EnableCreateNewFolder="true" 
                OnClientItemSelected="OnClientItemSelected" OnClientFileOpen="OnFileOpen"
            </telerik:RadFileExplorer> 
        </ContentTemplate> 
    </telerik:RadWindow> 

Paths are set server-side, but there's no change if I put them in directly. What could be wrong??
Fiko
Telerik team
 answered on 25 Jun 2010
8 answers
378 views

If you create a menu, you are given the ability to create separators which come across as class="rmSeparator" in the html, but if you link your menu to an xml datasource, you lose this ability... how do you add separators if you are linking to an xml datasource?

XML Example without separators below:

<?xml version="1.0" encoding="utf-8" ?> 
<Items Text="">  
  <Item Text="Visitors" Url="" Level="Lvl1" > 
    <Item Text="Event Calendar" Url="#" Level="Lvl2" /> 
    <Item Text="City Road Map" Url="#" Level="Lvl2" /> 
    <Item Text="Contact Us" Url="#" Level="Lvl2" /> 
    <Item Text="Historic Preservation" Url="#" Level="Lvl2" /> 
    <Item Text="Interactive Maps" Url="#" Level="Lvl2" /> 
    <Item Text="Latest News" Url="#" Level="Lvl2" /> 
    <Item Text="Ocala Municipal Arts Commission" Url="#" Level="Lvl2" /> 
    <Item Text="Security &amp; Hurricane Information" Url="#" Level="Lvl2" /> 
  </Item> 
.....

Do you add them to the XML somehow??
Yana
Telerik team
 answered on 25 Jun 2010
1 answer
301 views
I need to save the value of my RadComboBox to a SQL Server Database.  When the form is updated, the value of the RadCombo is always blank, even after I select a value.  Also,  I have no option in the .aspx for assigning a SelectedValue.  Here is a code snippet:

<

 

 

telerik:GridTemplateColumn HeaderText="Job No" DataField="JOB_NO">

 

 

 

<ItemTemplate

 

<%# DataBinder.Eval(Container.DataItem, "JOB_NO")%>

 

 

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="cboJob" runat="server" Sort="Ascending" AppendDataBoundItems="true" EnableLoadOnDemand="true" Width="350px" Height="140px" DataValueField="JOB_NO" EmptyMessage="Select a Job" AutoPostBack="true" DataTextField="JOB_NO" MarkFirstMatch="true" AllowCustomText="false" DropDownWidth="300px"

 

 

 

OnItemDataBound="cboJob_ItemDataBound" HighlightTemplatedItems="true" >

 

 

 

 

 

<HeaderTemplate>
<table style="width:300px; text-align:left">

 

 

 

 

<tr>

 

<td style="width:100px;">Job No</td>

 

 

 

<td style="width:200px;">Part No</td>

 

 

</tr>

 

</table>

 

 

</HeaderTemplate>

 

 

 

 

 

 

<ItemTemplate>

 

 

 

<table style="width:300px; text-align:left">
<tr>

 

 

<td style="width:100px;"><%# DataBinder.Eval(Container.DataItem,"JOB_NO")%></td> <td style="width:300px;"><%# DataBinder.Eval(Container.DataItem,"JOBR_PART_NO")%></td>

 

 

</tr>

 

 

</table>

 

 

 

</ItemTemplate>

 

 

</telerik:RadComboBox>

 

</EditItemTemplate>

 

 

 

 

</telerik:GridTemplateColumn>

//******In the C# code behind I have the following code in the ItemDataBound for the RadGrid:
 

if

 

 

(e.Item is GridEditFormItem && e.Item.IsInEditMode)

 

 

 

{

 

 

 

GridEditFormItem editFormItem = (GridEditFormItem)e.Item;

 

TextBox txt = (TextBox)editFormItem.FindControl("CUST_ID");

 

 

 

 

GridEditableItem edititem = e.Item as GridEditableItem;

 

RadComboBox combobox = (RadComboBox)edititem.FindControl("cboJob");

 

 

 

 

DataTable dt = cData.getDataTable("SELECT DISTINCT JOB_NO, JOBR_PART_NO FROM JOB_REVISION WHERE CUST_ID = '" + txt.Text.ToString() + "' ORDER BY JOB_NO", "JOB_REVISION");

 

combobox.DataSource= dt;

combobox.DataTextField = 

 

"JOB_NO";

 

 

combobox.DataValueField = 

 

"JOB_NO";

 

 

combobox.DataBind();

 

combobox.SelectedValue =

 

DataBinder.Eval(e.Item.DataItem, "JOB_NO").ToString();

 

 

 

//*******I also have the following code for the combo:
 

 

 

 

 

protected void cboJob_ItemDataBound(object sender, RadComboBoxItemEventArgs e)

{

e.Item.Text = ((D

 

ataRowView)e.Item.DataItem)["JOB_NO"].ToString();

 

 

 

e.Item.Value = ((

 

DataRowView)e.Item.DataItem)["JOB_NO"].ToString();

 

 

 

e.Item.DataBind();

}

 

 

 

 

 

 

Kalina
Telerik team
 answered on 25 Jun 2010
2 answers
99 views
I have loading panel like this:

        <telerik:RadAjaxLoadingPanel ID="ralpLoadingImage"  Width="100%" Height="100%" BackImageUrl="images/i_blank.gif" runat="server" Transparency="25">
            <asp:Image ID="imgLoading" runat="server" AlternateText="Loading..." ImageUrl="~/images/loading_blue.gif" style="margin-top:10px" />
        </telerik:RadAjaxLoadingPanel>

I want to set different message like "Loading for John..." instead of "Loading..." for everyone. So here John is a value I want to passed in.

Is it possible to do this?



Cindy Wang
Top achievements
Rank 1
 answered on 25 Jun 2010
5 answers
332 views
Hi,

I just wanted to find out if it's possible to disable image resizing in the Design mode of the RadEditor?

The reason for doing this is that we want images to be pasted into the editor "as is".  If we need
to resize them, we want to do it in Photoshop or Gimp.  We've had the situation where a user uploads a 4Mb
image, then resizes it down to thumbnail size.

Thanks for the help.


Bart.
Dobromir
Telerik team
 answered on 25 Jun 2010
2 answers
400 views

I have a simple RadComboBox with a few items in it.  I have AutoPostBack="true" and am implementing the OnSelectedIndexChanged event in the code behind.

What I want to do is:
    If the user selects a certain value in the dropdown, pop up a javascript warning message that allows the user to cancel the change. (like Confirm("Are you sure?");)

My problem is if I use OnClientSelectedIndexChanging, I don't have access to the NEW selected value.  And in OnClientSelectingIndexChanged, I don't have a way to cancel the change (if they choose Cancel in the popup)

Is there any way to accomplish this?

Thanks,
Justin
Justin Lee
Top achievements
Rank 1
 answered on 25 Jun 2010
4 answers
185 views

In your Automatic Load On Demand demo page when user type text into combobox, only matching elements are listed AND letters that user typed are bolded on items. Is it possible to achieve that effect when not using Automatic Load On Demand but WCF load on demand?

I have more complex scenario with related combobox: I use second combo OnClientItemsRequesting event to add first combo's value to context and then WCF returns elements filtered by first combo value and typed text. It works great but it would be even better if I could apply bolding effect.

tomekm
Top achievements
Rank 1
 answered on 25 Jun 2010
2 answers
120 views
Hi, I have a grid that sometimes has a null value in a field for a record.  For example we might have three fields: Name, Address, and Phone number....  Phone number doesn't always have a value.  ( I can't fix that as I am pulling from another database, and can't actually put in values.  Just have select access to the data.)

Anyway, the grid lines will not appear for fields that are "empty" or "null".  Is there a way to correct this?

Thanks,
GP
GP
Top achievements
Rank 1
 answered on 25 Jun 2010
3 answers
193 views
I cannot seem to be able to display a negative value in the grid.  Is there something simple I am missing?

The field type is a numeric field in Sql Server 2000.


What I currently have:
<telerik:GridBoundColumn HeaderText="Total Amount Due" DataField="TOTAL_AMOUNT_DUE" DataFormatString="{0:c}">
</telerik:GridBoundColumn>


Radoslav
Telerik team
 answered on 25 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?