Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
81 views
I noticed on a cbo dropdown with autopostback was not re-positioning the screen (as if Ajax is not taking place) to its vertical location and when I referenced 2009.3.1503.35 version the problem went away.

Update:   Behavior is back to normal with 2010.2.809.35.

VS2008 IE8.
Lenny_shp
Top achievements
Rank 2
 asked on 09 Aug 2010
1 answer
186 views
Here's the general synopsis.

I'm generating a report on the server end.
1. The user goes to the page and clicks 'Generate Report' which calls server side generation
2. The RadProgressArea shows up and updates it's details correctly
3. After the report has been generated, it is saved on the server side
Where I have a problem is step 4:
4. Using either Response.TransmitFile or Response.WriteFile, send the newly generated report to the user.
I need to do some server side code, which is why I just can't do a window.location to the filename and this is where I'm running into issues.

When I change the response object to send the file, I lose the ability to:
1. Make the ProgressArea disappear (normally it automatically does on the postback with an unchanged response object)
2. Allow the user to click generate report again and repopulate the progressarea (the report still will generate fine, but the progress area remains static and doesn't reset.

My idea solution would be:
1. Click Generate Report
2. RadProgressArea appears
3. Once the report has finished generating, reset/hide/nullify the ProgressArea
4. Call server side function to send file to user.

I thought I could find a solution by registering a startup script to simply call the server side function to send the file, but then I read that AJAX doesn't have that functionality.

I hope you understand the theory behind this, and I can provide some code if needed.
Genady Sergeev
Telerik team
 answered on 09 Aug 2010
1 answer
518 views
Hi,

What is the best way to format the phone number as {0:(###)###-####) for the phone numbers that are string in database.
I cannot use dataformatstring or telerik:maskeditcolumn as both expects the phone number as integer.

I also tried template column and have label's text as format string above but it still displays the plain text.
I want to display the column as ready only and should support sorting.

Any help is appreciated.

Regards
Cori
Top achievements
Rank 2
 answered on 09 Aug 2010
0 answers
93 views

I am binding a Panel bar to hierarchical data following way. I do get panel bar populated with hierarchy.

.DataSource = CategoryCollection.ToList

                        .DataTextField = "Name"

                        .DataNavigateUrlField = ""

                        .DataFieldID = "Id"

                        .DataFieldParentID = "ParentId"

                        .DataBind()

In Item click event I want to know the value of Id and parentId of clicked item. I was trying to do following way but I am getting value nothing.

e.Item.Attributes("Id").ToString. I need to know if selected item is a parent Item or a child item. If it's child item then load user control.

What I am trying to do is when user click on a panel item show a user control with data populated for selected panel item. I do need to pass Id and a parentId on item click to pass to this user control.

I am trying to load user control on item click event. Is this a good approach? I don’t want to load user controls for all the panel items.

A K
Top achievements
Rank 1
 asked on 09 Aug 2010
12 answers
1.3K+ views
Hi I am hoping for some help.

I have a grid with an editform popup (no usercontrol just edit form) after I do an update or insert I dont want to see the popup. How do I hide it?

I have tried 

grdItems.MasterTableView.ClearEditItems();

grdItems.MasterTableView.ClearChildEditItems();

grdItems.MasterTableView.ClearSelectedItems();

All of which don't work.


Can anyone help me out


Thank you!

mb
Top achievements
Rank 1
 answered on 09 Aug 2010
6 answers
210 views
Hi,

I am using a radeditor on my page . I have a list of values in the "Insert Code snippet" .
The problem is when I try to click on the arrow of the "Insert Code snippet" , it inserts the code snippet at the beginning of the editor ,irrespective of where my cursor is located at .

I am placing my cursor in the middle of the text ,but it ends up inserting the code snippet right at the beginning instead of where the cursor is at.
I have a video of the action ,but cannot attach an avi type of file .

Thanks in advanace,

Swapna
Rumen
Telerik team
 answered on 09 Aug 2010
1 answer
110 views
I have a page with more than a dozen fields, most of them are only one line, some are small like half line, all of them need to be rich text (html).

When I try to use the editor on this page, the editor is too large, taking up far more space than the fields, even with one toolbar at the top, the bottom border of the editor is huge in comparison to a one line field.

Is there some way to configure the RadEditor such that it displays the inline edit box very minimally, taking up the same space (or nearly so) as a text field? If so, then I could use the ToolbarMode with PageTop or Floating so the toolbar was reused by all the fields on the page thus not taking up space in the already cramped form.

Michael Grant
Rumen
Telerik team
 answered on 09 Aug 2010
1 answer
307 views
Hi 

I  am using StripFormattingOnPaste = "css"  for removing style tags from editor content . but it is removing style tags only when we paste content on design tab of editor .

It is not removing style tags when we paste html content on the html tab of  editor .

please  do possible 

Thanks
 
Rumen
Telerik team
 answered on 09 Aug 2010
1 answer
273 views
Our clients work with large text fields (greather than 150K) and occasionally have trouble saving them in RadEditor. Previous posts in this forum have mentioned that the Q2 2010 release's new capability to disable RadEditor's Undo/Redo functionality will help when working with large text fields. Here are my questions:

  1. How do you actually disable the RadEditor's Undo in the Q2 2010 release? Do you simply remove the Undo/Redo tools on the menu, or is there some other way?
  2. Once Undo is disabled, what is the maximum field size recommended with RadEditor? Is it now greater than the 100K you have recommended in the past?

Thanks,
Geoff LeBlond
Silverchair Science & Communications

Rumen
Telerik team
 answered on 09 Aug 2010
4 answers
153 views
I'm customising the toolsfile.xml with my own tool;

  <tools name="My Toolbar" enabled="true"
    <tool name="MyTool" text="My Tool Text" showicon="true" showtext="false" /> 
  </tools> 

I'm customising the icon with the stylesheet, which works without issue.... until i change the showtext property to true. 
At this point, the icon reverts to the default "info" icon, and my defined icon is ignored.

I'm assuming this a bug?  I'd like to show the text as well as the icon.....




Rumen
Telerik team
 answered on 09 Aug 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?