Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
157 views
I add by code my checkboxlist in ItemDataBound event
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
{  
 CheckBoxList chkLst = null;

// add checkboxlist only in edit item
 if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode))  
 {  
      chkLst = new CheckBoxList();  
      chkLst.ID = "MyCheckLst";  
      lst = new ListItem("Item1", "1");  
      chkLst.Items.Add(lst);  
      lst = new ListItem("Item2", "2");  
      chkLst.Items.Add(lst);  
      // Add checkboxlist to CheckBox (every checkbox have a checkboxlist)

      (GridEditableItem)e.Item["MyCheck"

].Controls.Add(chkLst);

 

 }  
 
 
In RadGrid1_ItemUpdated event i try to retrive the checkboxlist
protected void RadGrid1_ItemUpdated(object source,Telerik.Web.UI.GridUpdatedEventArgs e)  
{  
    CheckBoxList cbl = (CheckBoxList)e.Item["MyCheckLst"].Controls[0];  
} 
This is the error: 
{"Cannot find a cell bound to column name 'MyCheckLst'"} System.Exception {Telerik.Web.UI.GridException}

If I edit the row I can see the checkboxlist, but if I show page HTML I have not any checkboxlist!!!
Please, HELP!!!
Marco Rosignoli
Top achievements
Rank 1
 answered on 12 Apr 2010
3 answers
237 views
I Have a RadTreeView inside a RadComboBox, and i have inside the aspx page the RadScriptManager, i can bind the data to the tree, but when it gonna be draw in the page i get the error:
"Script control 'RadTreeView1' is not a registered script control, Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"
If i set the property RegisterWithScriptManager of the tree to false, the tree draws in the page with no problems, but with no functionalities.
Its there a way to manually register the RadTreeView scripts into the RadScriptManager so i can get the tree functionality back?

Thanks
Dimitar Milushev
Telerik team
 answered on 12 Apr 2010
1 answer
132 views
Hi ,

I have added a  image column in Rad Grid.
aspx code is below.

<telerik:GridImageColumn DataType="System.String" dataimageurlfields="PHOTO_PATH" display="true"
                                                          
                     AlternateText="Customer image" DataAlternateTextField="ContactName" ImageAlign="Middle"  
                      ImageHeight="110px" ImageWidth="90px"
                      HeaderText="Image Column" />

Photo_path field  has value" \\192.168.0.08\photos\images\MUM4\219937W.JPG" . Image is not diplaying.

Please give me advice.

Thanks.



Sebastian
Telerik team
 answered on 12 Apr 2010
1 answer
205 views
Hello,
I'm writting this post because i have an issue with the automatic focus on the updated control after Ajax Request. I apologize in advance for my awful english which isn't my mother tongue...

Here is my scenario :

- I have  a WebControl on my master page. This webcontrol makes a request to an Exchange Web Service returning the number of unred messages for the current user.
- The request to the Web Service is done asynchronously by Ajax after the page is loaded. As the request can take a few second to success, i don't want this request to happen in the code behind loading event.
- Globally everything works fine, but the problem is the automatic focus on the updated control after the ajax request. If the user scrolls down the page in order to read the text (for example) the browser automatically scrolls to the top (where my WebControl is) in order to focus on the updated control (which is a simple label).
- The web request is currently triggerred by an Ajax Timer (in order to refresh the number of unread mails each 5 minutes). I have also tried to fire the ajax request in the javascript page load. The result is always the same...
- I'm using a RadAjaxManager (i tried with a RadAjaxPanel : the result is the same and the Timer has a weird behavior...) and i'm in a MOSS 2007 environment.
- I have red some posts about focusing controls after a request, but in my scenario there are not necesseraly any controls selected.

So here is my question : Is there any way to disable the automatic focus on the updated control? My goal is to update this control in the background without any focus on it after the request.

Thanks in advance,
Best regards
Dallet Olivier
Iana Tsolova
Telerik team
 answered on 12 Apr 2010
0 answers
134 views
hi,

   How to Implement "LoadOnDemand"Property in MultiColumn RadCombo .
  And Populate RadCombo with TypeddataSet (.xsd file).
    Please Provide me with sample .


Thank you ..
Liji Jose
Top achievements
Rank 1
 asked on 12 Apr 2010
1 answer
120 views
I have set up a grid very similar to that in the online demo found here.

The issue exists in both the demo and my code (which is virtually identical).

Using the demo as a basis, what if the senario existed where I wanted to update the description only?
It will always force you to reupload the image anytime you want to update any of the other fields.

Can this demo be modified so I can edit any of the columns without having to upload an image each time (unless the image also happens to be one being edited)?
Rosen
Telerik team
 answered on 12 Apr 2010
1 answer
242 views
I believe Monday is the release date for the latest version of visual studio, and I know and have used the Telerik controls with the 2010 software however I was wondering if a new release of the Telerik controls will come out soon to reflect the final version of the .NET 4 framework?
Sebastian
Telerik team
 answered on 12 Apr 2010
1 answer
106 views
Hi,

We have an aspx page (say Page1) that contains a user control to upload files (it is not RadUpload), and a RadWindow to display a confirmation box. This aspx page (Page1) is displayed on top of another page (parent) (say Page 2).
The issue seems to come intermittently, while trying to upload files of type .xlsm where Page1 just flickers but does not upload the file.

We have observed that if we move the RadWindow declaration down (below the usercontrol and other controls) on Page1, it does upload some of the .xlsm files then.
Not sure what exactly is happening here but could you please give any idea for this kind of behaviour?

We are just showing the RadWindow through javascript (i.e. find(radwindowname).show). It has a OnClientClose method and DestroyOnClose is set to 'false'.

Thanks & Regards,
Puneet
Georgi Tunev
Telerik team
 answered on 12 Apr 2010
5 answers
130 views

1.
http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx

While the content is being loaded, the right border is invisible.

2.
If a delay occurs while the content is being loaded, and the user move the mouse to another product, the load image doesnt appears.
You can reproduce it by doing something like this:

 protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
 {
  UpdateToolTip(args.UpdatePanel);
 }

 private void UpdateToolTip(UpdatePanel updatePanel)
 {
  Label label = new Label();
  label.Text = "aaaaa";

  System.Threading.Thread.Sleep(3000);

  updatePanel.ContentTemplateContainer.Controls.Add(label);
 }

PS: How can I use the format code block?

Svetlina Anati
Telerik team
 answered on 12 Apr 2010
3 answers
109 views
Hi,

In my Datagrid, I added 3 Buttons in the edit column, the 1 is edit, and if you click there save and cancel will be shown.
But now my problem there is that this both buttons are on top of each other instead of side by side.

I tried to fix this with floating left. But this is not a good solution, and works only in a few browsers.

Has anyone any idea how to fix this?
Thomas Luck
Top achievements
Rank 1
 answered on 12 Apr 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?