Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
246 views
I have a button inside another radpane that is calling server side onclick code to change the contenturl of another url.  When I click the button the radpane getting changed does not get updated with the new webpage.   The button is inside a ajaxpane.  Any help to get the contenturl to work is appreciated.
Tsvetie
Telerik team
 answered on 19 Aug 2010
1 answer
158 views
Dear Support,

I am using the sample of the DBContentProvider to  make my application using FileExplorer.
Only difference being that i am not saving the content of the file uploaded in the Database, I am using the FileSystem of the server to store the file physically.

My approach is:

1. I have kept a folder on the server file system (E.g. "C:\ClientFiles"). And i save all the uploaded file in that folder only just by changing the name of the File. The new name is the combination of the ID attribute of the File on the Database and its extension. E.g. If client is uploading an "Folder A\Folder Child\Apple.jpg" file, then i save it as "1.jpg" in the "C:\ClientFiles" folder. If client is uploading an "Folder B\Folder Child\Orange.jpg" file, then i save it as "2.jpg" in the "C:\ClientFiles" folder which is on the FileSystem in the server.

Note: I am storing the Path of the File("C:\ClientFiles\1.jpg","C:\ClientFiles\2.jpg") and thier names ("Orange.jpg", "Apple.jpg") in the Database against their IDs.

2.Now i have tried lots of things trying to show the preview of the file or download the file, but am not succeeding it. I know i need to make changes in the DBContentProvider class. Can you please tell me which all methods in the DBContentProvider class do i need to override to make it work.A sample would be great.
Fiko
Telerik team
 answered on 19 Aug 2010
11 answers
692 views
Is there a straightforward way to return custom attibute fields when using a custom Scheduler Provider? We've written a provider that leverages an existing data architecture but we also need to take advantage of custom attributes. The provider architecture seems to use only Appointment objects and there doesn't seem to be any way to add arbitrary information to that object.

These two approaches may not be intended to be used together, but I thought I would check before abandoning this approach for another . . .

Thanks in advance!
brian
Divya
Top achievements
Rank 1
 answered on 19 Aug 2010
1 answer
47 views
On a custom toolbar button click I would like to insert a start html tag at begining of  selected content and and an close tag at the end of the selection.

There is a help on inserting HTML tag at the beginning of the selection, the problem is inserted the close tag at the end of the selection

for example a user selcts some text in content area;
Telerik.Web.UI.Editor.CommandList["MyTestButton"] = function(commandName, editor, args)
{
   editor.pasteHtml(
'<TagBegin>');

       /*some way to find end of selection ???*/

   editor.pastHtml('<TagEnd>');
 
};

Thanks in advanced
Rumen
Telerik team
 answered on 19 Aug 2010
1 answer
208 views

Hi,

I am having a radgrid assosiated with a radajaxmanager and radajaxloadingpanel. I am using usercontrol insert and edit forms. I am having a button inside insert form (usercontrol). On click of that button i want to confirm with the user. So i wrote the script to call a radconfirm onclientclick of that button and if [OK] button is clicked in the confirm box, i am programatically calling the button click from javascript code using buttonObj.click();

My code works well in following cases,
                  1. if i use image button in place of asp:button (or)
                   2. if i remove the radajaxmanager and ajaxpanel from the the parent page.

But not with the normal asp:button. Can you please help me in sorting out the problem.

My script to call radconfirm,


<script type="text/javascript"
        var buttonObj; 
        var confirmValue = false
      
        function UpdateConfirm(btn) { 
            if (!confirmValue) { 
                buttonObj= btn; 
                var confirmString = "Do you wish to update?."
                radconfirm(confirmString, UpdateConfirmCallBackFn, 300, 120, "", "Confirm Update"); 
                return false
            
        
  
    function UpdateConfirmCallBackFn(arg) { 
        if (arg) { 
            confirmValue= true
            buttonObj.click();
        
   }

My button inside the usercontrol insert form,

<asp:Button ID="btnUpdate" runat="server" Text="Update"
        ValidationGroup="grp" OnClick="btn_Click" OnClientClick="return UpdateConfirm(this);" />

My RadAjaxManager Code in the parent grid page,

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
            Loading... 
        </telerik:RadAjaxLoadingPanel
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            <AjaxSettings
                <telerik:AjaxSetting AjaxControlID="grid1"
                    <UpdatedControls
                        <telerik:AjaxUpdatedControl ControlID="grid1" /> 
                                            </UpdatedControls
                </telerik:AjaxSetting
            </AjaxSettings
        </telerik:RadAjaxManager>

Regards,
Saravanan K
Veli
Telerik team
 answered on 19 Aug 2010
1 answer
197 views
hi,

how to wrap the text without space while editing the grid, i have set the max length as 500, if i typed the long  works without space means,
it's over lapin with the near row , some times if work is too long, it goes beyond the grid.
i have attached the sample image ,

i need of the answer,

regards
priya
Shinu
Top achievements
Rank 2
 answered on 19 Aug 2010
1 answer
97 views
Quick question.  I've just slapped the RadMenu on my master page and had hoped it would behave the same as the OOB SharePoint menu.

For examples sake, the OOB menu structure looks like this (with Top Level Site and Site Collection always displaying)

Top Level Site | Site Collection
                                       Sub Site 1
                                       Sub Site 2

However, when I implement the RadMenu, I get the following...

Top Level Site
             Site Collection (have to hover over Top Level Site to get this)
                            Sub Site 1
                            Sub Site 2

I've set the DataSourceID to the same ID as the OOB menu, and the correct items show up, I would just like the Site Collection item to always display.

Any thoughts?
Peter
Telerik team
 answered on 19 Aug 2010
1 answer
51 views
Raddatetimepicker control in a radgrid is displaying eight days per week.

Example for August 2010:

the first row of dates displayed in the calendar are:

31 25 26 2 28 29 30 31

second row

32 1 2 3 4 5 6 7

third row
33 8 9 10 11 12 13 14

The heading for days at the top is blank S M T W T F S
Pavel
Telerik team
 answered on 19 Aug 2010
1 answer
89 views
Hello All,
i have a Problem with the PostBackCompressation.
I create a stream in a Webservice witch contain a Excel Stream and put them out in a ASPX file with response stream. I changed the Mimetype to Excel then can the Client open Excel. The Problem is i get a demaged File when the Compress is enabled. My Questions is can i disable the Compressation in a spezific Mimetype?

Sorry for my bad English.

Rosen
Telerik team
 answered on 19 Aug 2010
1 answer
241 views
Hi,

I'm just learning the controls and I've searched the forums and documentation and examples, but don't seem to find my answer.  I'm sure that I'm just overlooking the answer.

I would simply like to report server side errors back to the client.  i.e if a user presses a button that causes a postback to the server, and the server code catches an exception I'd like to notify the user like this:

try
{
   MyBusinessLogicCall();
}
catch(Exception ex)
{
   ???  icon = ErrorIcon;
   string Title = "An unexpected error has occured";
   string messageText = ex.message;
     
   // Call some api function to display error info to the user
   // Something like the windows MessageBox...  Probably RadAlert???
   // But how do I invoke this from the Server Code??
   MessageBox.Show(Title, messageText, icon);
  
     
}

Any help would be appreciated!
Georgi Tunev
Telerik team
 answered on 19 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?