Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
242 views

I recently upgraded Ajax Controls Toolkit to latest version and when I opened up my page which I used RadDock, the look and feel just changed. Now, a dock has a black top border which i donno where it came from. I opened up the source and it seems like there's this line:

<div class="rdTopBorder"></div>
<div class="rdBottomBorder"></div>
<img id="ctl00_cphLeftColumn_1_radDock1" style="border-width: 0px;" src="../../library/Company/32/bb_mainbanner.jpg"/>
...

How to change that?

Pero
Telerik team
 answered on 27 Aug 2009
1 answer
81 views
I am finding that sometimes on postback none of the selected files are uploading and there is nothing in the InvalidFiles collection. It just refreshes the form clearing the file path boxes. There is no obvious difference between what I do when it works and when it doesn't. I even use the same files.

It is not a file size problem and I am not using an updatepanel.

Does anyone have any ideas?

Thanks
Vesko
Top achievements
Rank 2
 answered on 27 Aug 2009
1 answer
86 views
Hi,

For some reason, when a user clears text from a radeditor, the editor actually contains a "<p>&nbsp;</p>" when the form is posted. 

To be clear: a user opens a web page with a radeditor and there is "Some text" in the control.  The user clicks in the control and clears out all the text.  To the user, the box looks clear.  When the form is posted, we have some javascript that checks the control to validate the text.  What it is finding is "<p>&nbsp;</p>" while I would expect to find "".

How can we correct this behavior?

Here is the text of my control:

 

<telerik:RadEditor ID="txtBookmark" runat="server" Height="70px"

 

 

Width="415px" OnClientLoad="SetCorrectSize" EditModes="Design" EnableResize="False" Skin="Office2007"> <Tools>

 

 

<telerik:EditorToolGroup>

 

 

<telerik:EditorTool Name="AjaxSpellCheck" />

 

 

</telerik:EditorToolGroup>

 

 

</Tools>

 

 

</telerik:RadEditor>

Thanks!
Rich

 

Rumen
Telerik team
 answered on 27 Aug 2009
3 answers
132 views
I am using a treeview in updatepanel. When I try to rebind tree all node texts is cleared, and just (+ -) icons remind.
I have Q1 2009 and use load on demand with ServerSideCallback option. I read this topic but there isn't answer:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/nodeclick-clears-out-the-content-of-node-templates.aspx

Thanks.


Mojtaba
Top achievements
Rank 1
 answered on 27 Aug 2009
1 answer
94 views
Hi there,

I have a tab strip with a pair of listboxes (sources and destination) on each. I have one additional single listbox on another tab. This other listbox consolidates all of the selected items from each of the other listboxes under the other tabs. I am having trouble getting the consolidated ("lbYourChoices") show the added items. I have no trouble transferring to the paired listbox, but my issue is updating the other lb. I have tried everything I can think of. I am sure I am missing the obvious:

Thanks!

 


 

function ClientTransferring(sender, e)

 

 

{

 

var lbChoices = $find("<%= lbYourChoices.ClientID %>");

 

 

var newitems = lbChoices.get_items();

 

 

e.set_cancel(

true);

 

 

 

var items = e.get_items();

 

 

for (var i = 0; i < items.length; i++)

 

{

 

var item = items[i];

 

 

var itemx = new Telerik.Web.UI.RadListBoxItem();

 

 

itemx = items[i];

 

if (item.get_text() != "Select item(s)") {

 

lbChoices.trackChanges();

lbChoices.get_items().add(itemx);

lbChoices.commitChanges();

sender.transferItem(item, e.get_sourceListBox(), e.get_destinationListBox());

}

 

}

 

}

 

 

 

 

<telerik:RadPageView ID="RadPageView7" runat="server">

 

 

<telerik:RadListBox ID="lbYourChoices" runat="server" AllowDelete="True"

 

 

style="top: 15px; left: 0px; height: 150px; width: 225px"

 

 

Height="175px" Width="225px" AutoPostBack="True">

 

 

 

 

 

 

</telerik:RadListBox>

 

 

 

 

 

 

</telerik:RadPageView>

 

 

 

 

 

 

 

<telerik:RadPageView ID="RadPageView1" runat="server">

 

 

 

 

 

 

<asp:RadioButtonList ID="RadioButtonList1" runat="server"

 

 

RepeatDirection="Horizontal"

 

 

style="top: 15px; font-family: Arial, Helvetica, sans-serif; font-size: x-small">

 

 

 

 

 

 

<asp:ListItem Selected="True">List View</asp:ListItem>

 

 

 

 

 

 

<asp:ListItem>Tree View</asp:ListItem>

 

 

 

 

 

 

</asp:RadioButtonList>

 

 

 

 

 

 

<telerik:RadListBox ID="RadListBox3" runat="server" AllowTransfer="True"

 

 

DataKeyField="item_id" DataSortField="item_id" DataSourceID="obj_Accounts"

 

 

DataTextField="item_name" DataValueField="item_id"

 

 

style="top: 15px; left: 0px; height: 150px; width: 175px"

 

 

TransferToID="RadListBox4" Height="150px"

 

 

AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" Width="180px"

 

 

 

 

 

 

OnClientTransferring="ClientTransferring">

 

 

</telerik:RadListBox>

 

 

 

 

 

 

 

<telerik:RadListBox ID="RadListBox4"

 

 

style="top: 15px; left: 0px; height: 150px; width: 175px"

 

 

AllowTransferOnDoubleClick="True" EnableDragAndDrop="True" runat="server"

 

 

Height="150px" Width="180px"

 

 

AutoPostBack="True"

 

 

AutoPostBackOnTransfer="True"></telerik:RadListBox>

 

 

 

 

 

 

 

<asp:ObjectDataSource ID="obj_Accounts" runat="server"

 

 

OldValuesParameterFormatString="original_{0}" SelectMethod="GetByDimensionName"

 

 

TypeName="fvTempDAL.DimensionItemsDataSetTableAdapters.DimensionItems">

 

 

 

 

 

 

<SelectParameters>

 

 

 

 

 

 

<asp:Parameter DefaultValue="Accounts" Name="DimensionName" Type="String" />

 

 

 

 

 

 

</SelectParameters>

 

 

 

 

 

 

</asp:ObjectDataSource>

 

 

 

 

 

 

<br />

 

 

 

 

 

 

</telerik:RadPageView>

 

 

 


 


Yana
Telerik team
 answered on 27 Aug 2009
3 answers
78 views
I create a simple page...  add a bunch of objects including a window and a menu.

Set properties on the window:
modal = True
VisibleOnPageLoad = True

I run the project and the entire page is in modal state except for the RadMenu which I can still click on to nagivate the project.

Is this a bug?  An expected behavior? Something I need to program around?

Please advise.

R
Robert
Top achievements
Rank 1
 answered on 27 Aug 2009
1 answer
115 views
Is it possible to show radtooltip inside Itemtemplate in a radgrid in a MVC framework ? When I put radtooltip inside GridTemplateColumn in radgrid, I get an erro " Script controls may not be registered after PreRender". Please help.
Thanks 
Anil 
Svetlina Anati
Telerik team
 answered on 27 Aug 2009
1 answer
88 views
Hi,

I have two questions regarding the RadEditor. I am using RadControls 2009 Q2 within MOSS 2007, and I use the RadEditor in my custom webparts.

1) the default font size and font-family are set to Verdana with a size:3. I wish to change this setting, but could not find which css class defines this. Please advise.

2) I have Image Manager enabled in my RadEditors. For some reason the upload button in the Image Dialog suddenly stopped working, and I do set the values to ViewImagePath and UploadImagePath.

Thanks,
Vincent
Stanimir
Telerik team
 answered on 27 Aug 2009
1 answer
117 views
Hi,

We use the telerik Q 2009 with llblgen pro as #1 O/R mapper and data-access tier generator for .NET.
I create a simple grid directly connected on the entity object via a asp:objectdatasource.

The method select and insert works fine.
But i have a problem with the update method and delete.

For the update and delete method i have the following :
49|error|500|The field 'Id' is read-only and can't be changed.|
If I enable the column Id i don't have any error but the item is not update but created.

I try also to use UpdateCommand Event and UpdateParameters but i received the same error.
Any experience with LLBLgen and Telerik ?

Thanks is advance for your help.

Edwin.


Bellow my code for the Grid :

<telerik:RadGrid ID="GridBranche" runat="server"  
    AutoGenerateColumns="false"  
    PageSize="20"  
    GridLines="None" 
    AllowPaging="true"  
    AllowAutomaticInserts="true"  
    AllowAutomaticUpdates="true"  
    AllowAutomaticDeletes="true" 
    DataSourceID="_objDataSource"  
    PagerStyle-AlwaysVisible="True" OnItemDeleted="GridBranche_OnItemDeleted"
    <PagerStyle Mode="Slider" /> 
    <MasterTableView EditMode="InPlace" CommandItemDisplay="Top" HorizontalAlign="NotSet" AutoGenerateColumns="false"  
    DataKeyNames="Id"
        <Columns> 
            <telerik:GridBoundColumn HeaderText="Id" DataField="Id" DataType="System.Int32"  
            SortExpression="Id" UniqueName="BrancheId" ReadOnly="true" /> 
            <telerik:GridBoundColumn HeaderText="Naam" DataField="Name" /> 
            <telerik:GridDropDownColumn HeaderText="Taal" DataField="LanguageId" DataSourceID="_objLanguageSource"  
            DataType="System.Int32" ListValueField="Id" ListTextField="Name" SortExpression="Id" UniqueName="Languages">             
            </telerik:GridDropDownColumn> 
            <telerik:GridDropDownColumn HeaderText="Land" DataField="CountryId" DataSourceID="_objCountrySource"  
            DataType="System.Int32" ListValueField="Id" ListTextField="Name" SortExpression="Id" UniqueName="Country"
            </telerik:GridDropDownColumn>             
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderText="Bewerken" /> 
            <telerik:GridButtonColumn ConfirmText="Delete this branche?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn" HeaderText="Wissen" /> 
        </Columns> 
        <EditFormSettings ColumnNumber="3" CaptionDataField="Name" CaptionFormatString="Aanpassen branche: {0}"
            <FormTableItemStyle Wrap="false" /> 
            <FormMainTableStyle GridLines="None" CellPadding="3" BackColor="White" Width="100%" /> 
            <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> 
            <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> 
            <EditColumn ButtonType="ImageButton"  
                InsertText="Insert banner type" UpdateText="Update banner type" UniqueName="EditCommandColumn1" CancelText="Cancel edit"
            </EditColumn> 
        </EditFormSettings> 
    </MasterTableView> 
</telerik:RadGrid> 
 
<asp:ObjectDataSource ID="_objDataSource" runat="server" 
    InsertMethod="SaveBranche"  
    SelectMethod="GetBranchesForOverview"  
    UpdateMethod="SaveBranche"  
    DeleteMethod="DeleteBranche" 
    TypeName="Adver.Service.Domain.BranchesService"  
    DataObjectTypeName="Adver.Business.EntityClasses.BranchesEntity">    
</asp:ObjectDataSource> 
 
<asp:ObjectDataSource ID="_objLanguageSource" runat="server" SelectMethod="GetLanguages"  
TypeName="Adver.Service.Domain.LanguageService"
</asp:ObjectDataSource> 
 
 
<asp:ObjectDataSource ID="_objCountrySource" runat="server" SelectMethod="GetCountries"  
TypeName="Adver.Service.Domain.CountryService"
</asp:ObjectDataSource> 


code for the service layer

public bool  SaveBranche(BranchesEntity entity) 
        { 
            if(entity.Id > 0) 
            { 
                entity.IsNew = true
            } 
            return repository.SaveBranche(entity); 
        } 
 
        public bool UpdateBranche(BranchesEntity entity, int id) 
        { 
            entity.Fields[(int)BranchesFieldIndex.Id].ForcedCurrentValueWrite(id); 
            entity.IsNew = false
            return repository.SaveBranche(entity); 
        } 




Rosen
Telerik team
 answered on 27 Aug 2009
2 answers
117 views
Hi,

I'm using RadGrid with Filtercolumns on most of then. My problem is that I want to change the dropdown Filter option (NotLike, Contains,...etc) to another language rather than English.
Can you tell me if it is possible?

Best Regards
Eduardo Barbosa
Madrinha
Top achievements
Rank 1
 answered on 27 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?