Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
220 views
I have two controls in my page, 1 readonly textbox (input) and 1 radcombobox.

i changed the style of my textbox as shown below:
<style type="text/css"> 
        input[readonly] 
        {  
             background-color: #fafafa !important;  
             color: #000000 !important;  
             cursor: default !important; 
        } 
    </style> 

however it seemed like radcombobox uses input[readonly] as well and it is affected by my custom style. how can i prevent this?
Kamen Bundev
Telerik team
 answered on 20 May 2010
2 answers
117 views
We just ran into something interesting where with the latest Telerik update the user ends up inserting two records (instead of one) when inserting a record.

User Behavior:
There is a popup with some prompts.  Using only the keyboard the user types in the text boxes, hits tab, (repeat).  When on the final text box, the user hits tab, this highlights the Insert button, then the user hits Enter.

As a result two records are inserted.
Note: this was only duplicated using IE8

System Behavior:
It appears that the Enter key submitted the page to insert a record, but it also submitted the page again as a response to having the Insert button activated. 

As a result, the Insert record method was called twice by one Enter button press.


Work Around:
We found our popup had the following in the code behind's page load -
 Page.Form.DefaultButton = btnSubmit.UniqueID;
We removed this and things are back to normal.


The Question:
We rolled back our Telerik dll to 2009q2 and did not have an issue with this popup, however the 2010Q1 version did.  Any ideas as to what this might be in the 2010q1?  We are scratching our heads over here.

Thanks!

Tim
Jeff
Top achievements
Rank 1
 answered on 20 May 2010
1 answer
154 views

Hope someone can help me with this... It seems like it should be an easy thing to do but the solution evades me.

I have a RadPanel on my aspx page that is databound from my code behind. IF I do not call a method from an event the RadPanel drops down and shows the subnavigation, however the navigationUrl does not get created. I have tried several event calls, like onItemCreated or onDateBound but nothing seems to populate the sitenavigationURL.

Here is my codefront

<script type="text/javascript">

function CollapseAllItems()

{

var panelbar = <%= RadPanelBar1.ClientID %>

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

{

panelbar.Items[i].Expand();

}

}

</script>

<radP:RadPanelbar ID="RadPanelBar1" runat="server" RadControlsDir="~/RADCONTROLS" SkinsPath="/skins/menu/"

Skin="fnSub" ExpandMode="SingleExpandedItem" ExpandAnimation-Duration="3" ExpandAnimation-Type="OutSine" onD>
<%--OnItemCreated="RadPanelBar1_ItemDataBound"--%>

</radP:RadPanelbar>


 

SqlDataAdapter

 

da5 = new SqlDataAdapter(cmd5);

 

 

DataSet ds5 = new DataSet();

 

da5.Fill(ds5,

"navigation");

 

 

//Bind ds to Radpanelbar

 

 

 

 

RadPanelBar1.DataTextField =

"navigationName";

 

RadPanelBar1.DataFieldID =

"navigationId";

 

RadPanelBar1.DataFieldParentID =

"parentNavigationId";

 

 

//RadPanelBar1.DataNavigateUrlField = "navigationFullUrl";

 

 

 

 

RadPanelBar1.DataSource = ds5;

RadPanelBar1.DataMember =

"navigation";

 

RadPanelBar1.DataBind();

 

protected

 

void RadPanelBar1_ItemDataBound(object sender, Telerik.WebControls.RadPanelbarEventArgs e)

 

{

 

if (DataBinder.Eval(e.Item.DataItem, "navigationTarget") != DBNull.Value)

 

{

e.Item.Target = (

string)DataBinder.Eval(e.Item.DataItem, "navigationTarget");

 

}

 

 

}

 

Nikolay Tsenkov
Telerik team
 answered on 20 May 2010
8 answers
1.2K+ views
Hello,

I have a problem with the RadCombo and large lists. I've had a look at some other threads but they are quite old.

The combo is populated by AJAX and uses the checkbox item template found elsewhere in the forums. If I load 15,800 items in IE it takes 2 minutes before the browser is usable. The server time to generate the dataset is 3-4 seconds, there seems to be about 20s of other server time as noted by watching the server process in task manager the rest is IE running at 100% CPU. After this time when I click on the drop down I still have to wait 15 seconds for the drop to actually appear with content. Chrome is much faster, 1:15 rather than 2 minutes and almost instantaneous to get the drop down to appear. I also have a loading panel and the spinny (WebBlue) stops after 25 or so seconds, again presumably because the AJAX has finished and it's waiting for the browser to do whatever.

This is the combo:

 <telerik:RadComboBox ID="str_name_campaign" runat="server" oncopy="return false;" 
                                                onpaste="return false;" oncut="return false;" xonkeypress="return tabOnly(event)" 
                                                onmousewheel="return false" OnClientDropDownOpening="OnClientDropDownOpening" 
                                                OnClientDropDownClosing="OnClientDropDownClosing" OnClientSelectedIndexChanging="OnClientSelectedIndexChanging" 
                                                OnClientBlur="OnClientBlur" Width="490px" AllowCustomText="True" ChangeTextOnKeyBoardNavigation="False" 
                                                AutoCompleteSeparator=";" MarkFirstMatch="true" CssClass="cssradtextbox" DataTextField="str_item_name" 
                                                DataValueField="str_item_code" EnableLoadOnDemand="false" OnClientLoad="OnClientLoad"> 
                                                <ItemTemplate> 
                                                    <asp:CheckBox ID="CheckBox1" runat="server"/> 
                                                </ItemTemplate> 
                                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                                            </telerik:RadComboBox> 

This is the server code:
  Protected Sub str_name_campaign_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles str_name_campaign.ItemDataBound 
    ComboItemBound(sender, e) 
  End Sub 
 
  Private Sub ComboItemBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) 
    'Add each combo checkbox to the Handler 
    Dim objl_CHECKBOX As CheckBox 
 
    objl_CHECKBOX = CType(e.Item.FindControl("CheckBox1"), CheckBox) 
    objl_CHECKBOX.Attributes.Add("onclick", "checkboxClick('" & CType(sender, Telerik.Web.UI.RadComboBox).ClientID & "');") 
    objl_CHECKBOX.Text = CType(e.Item.DataItem, Data.DataRowView).Item("str_item_name").ToString & " - " & CType(e.Item.DataItem, Data.DataRowView).Item("str_item_code").ToString 
  End Sub 
 

If I comment out ItemDataBound, it is slightly faster, but only a few seconds. Getting the dropdown is 50% faster though albeit I have checkboxes and no text.

What can I do to speed this up? The client wants IE rather than Chrome, so that option is out. We are looking at additional filtering options but it could be quite legitimate for the client to want all 15,800 items in the list.

Ideally the combobox needs to be fully searchable (rather than just starts with) and multiple select with checkboxes, but I don't seem able to get all these options to work together.


Regards,
Mark Leavesley
Simon
Telerik team
 answered on 20 May 2010
1 answer
48 views
HI,

we thought to use RadUpload for Silverlight, to provide multiple file selection.

But we want that if user doesn't install silverlight , it should be provided with by default the RadAsyncUpload / RadUpload. 

Can that be automatically ? or what i need to do for ?

Thanks & Regards,
Dimitar Milushev
Telerik team
 answered on 20 May 2010
7 answers
228 views
Hi I tried the code shown in http://www.telerik.com/help/aspnet-ajax/grdpreventgroupsexpansion.html
to hide the expand collapse button in my grouped grid.

However I was not able to remove the padding which shows up in IE7.

Can you help me with CSS to remove the padding for the grid. I have several other grids in my project. Is there something I can specify in the grid declaration itself?

Thanks.


Dimo
Telerik team
 answered on 20 May 2010
1 answer
106 views
Hello,

I need to add an event to a RadHtmlField in order to check the HTML created by content editors. I have followed the patterns defined in the technical documentation, but I cannot link any of the events in the examples on the client side: OnClientInit, OnClientLoad, OnClientCommandExecuting, OnClientCommandExecuted, OnClientPasteHtml and OnClientSelectionChange. When I add one of these events I receive the following error:

An error occurred during the processing of . Type 'Telerik.SharePoint.FieldEditor.RadHtmlField' does not have a public property named 'OnClientLoad'.

Can I associate those events to a RadHtmlField?

Thank you very much for your help.

Best Regards.
Rumen
Telerik team
 answered on 20 May 2010
3 answers
237 views
On the DataManager.ValuesYColumns property, I tried using a Non-integer column on the ValuesXColumn and did the tooadate conversion on the itemdatabound event and it worked. But it wont work on the ValuesYColumns
Ves
Telerik team
 answered on 20 May 2010
4 answers
81 views
After reading those threads,

http://www.telerik.com/community/forums/aspnet-ajax/grid/popup-editmode-not-working-in-ie-6.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/editmode-quot-popup-quot-problem.aspx




I am figuring out that this also applies for Grids within Docks.

We have a grid within a dock and we use the modal popup feature but even the popup is grayed out. If we remove the grid from the grid and place it somewhere else it works.

As in the other cases, it works fine with Firefox & Chrome but not in Internet Explorer.

In this case, is there any workaround ?

Thanks,
Pierre

pylacroix
Top achievements
Rank 1
 answered on 20 May 2010
7 answers
228 views
Hi

I have created a user control (ascx) that contains a RadMenu comprised of images.  In order to remove the padding from around the images I use the following code (http://demos.telerik.com/aspnet-ajax/menu/examples/appearance/imageonly/defaultcs.aspx):

<style type="text/css">
    
        div.RadMenu a.rmLink .rmLeftImage
        {
            position: relative;
        }
        
        div.RadMenu .rmItem .rmLink .rmLeftImage,
        div.RadMenu .rmItem .rmLink,
        div.RadMenu .rmLink .rmText
        {
            margin: 0;
            padding: 0;
        }
        
</style>

This works perfectly for the menu in my user control.  However, the user control is then embedded in a master page which contains its own RadMenu, and the above code also removes the padding from that menu, which I don't want to happen.

So basically I require that the style be applied only to the RadMenu that's in the user control and to not affect the RadMenu that's in the master page...

Thanks for any suggestions
Yana
Telerik team
 answered on 20 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?