Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views

In the sample online scenario "RadGrid bound to WCF Web Service" the sample code binds to a WCF method. The sample client settings are below (I copied them straight from the sample code)
          <ClientSettings>
                <DataBinding SelectMethod="GetDataAndCount" Location="GridWcfService.svc"
                    SortParameterType="Linq" FilterParameterType="Linq">
                </DataBinding>
            </ClientSettings>
           
Now if the endpoint (which GetDataAndCount() belongs) requires message level encryption how do I provide credentials as part of the client call?

For instance in the code behind the following is how I would have performed this on the server side...
     
           MySampleClient ac = new MySampleClient("SampleEndpointWSHttpBinding");
            ac.ClientCredentials.UserName.UserName = Session["Username"].ToString();
            ac.ClientCredentials.UserName.Password = Session["Password"].ToString();
            List<DataPoints> dp = ac.GetDataAndCount(...);

So how do you do this on the client side. Any help appreciated

Rosen
Telerik team
 answered on 25 Aug 2009
3 answers
123 views
Hi there,

I try to minimize a RadWindow and it works fine as long as I don't use a MinimizeZoneId.

  var oWin = radopen("Report.aspx?r_Key=1", null);  
    
  // this could be browser specific...  
  oWin.setSize(document.body.clientWidth, document.body.clientHeight -100);  
  oWin.moveTo(0, 100);  
    
  oWin.set_behaviors( Telerik.Web.UI.WindowBehaviors.Resize +   
                      Telerik.Web.UI.WindowBehaviors.Minimize +  
                      Telerik.Web.UI.WindowBehaviors.Close +  
                      Telerik.Web.UI.WindowBehaviors.Maximize +  
                      Telerik.Web.UI.WindowBehaviors.Move );  
 

If I minimize, it is minimized in the current position, which is fine.

When I try to set the RadWindowManager property MinimizeZoneId, it obviously takes it into account but instead of a small minimized icon, I get something that does not look like anything but is in the right position and has the size of my window before minimizing...

Any hope, doctor?
Georgi Tunev
Telerik team
 answered on 25 Aug 2009
2 answers
279 views
hi, i would like to know would it be possible for me to configure the calendar to only have month and year selection instead of having it select by date.

Samantha
Top achievements
Rank 1
 answered on 25 Aug 2009
2 answers
248 views
Hello,

My case is that.. i have a rad menu..

support three buttons in radmenue: HOME , ABOUT US, CONTACT US

i want to do that when user click "Home" menu then open "RadMultiPage1" when user click "About US" then open "RadMultiPage2" when user click "CONTACT US" then open "RadMultiPage3"

How could i do please help me.. i try so many thing but fail .. please help me correctly and also give me the code snippet..

I am very thankful..

Thanks.
Muhammad
Top achievements
Rank 2
 answered on 25 Aug 2009
3 answers
466 views
I am experiencing a problem with the RadEditor's default size -- it is very large and is distorting other elements on the page.

To illustrate, i have a 400x400px web part zone on a page. This renders perfectly when the page is in "view" or "edit" mode, however when i select "Modify Shared Web Part", the Radeditor stretches the web part zone to approx 800px wide and 600px high, overlapping all corresponding page elements.

I have tried setting the width of the RadEditor window to a fixed size (400x400px).  This fixes the auto-stretching issue (ie. it displays in a 400x400px space) however the RadEditor window then has scrollbars for all the added whitespace.

Is there any way i can get the RadEditor to stretch to 100% of the web part zone without it adding all the superfluous whitespace?
Lini
Telerik team
 answered on 25 Aug 2009
2 answers
101 views
I have a question regarding to RadExportFooter:

How can I override the Export-function of the RadExportFooter wirh my own export-function?

thanks

Christian
Princy
Top achievements
Rank 2
 answered on 25 Aug 2009
3 answers
130 views
I am using dynamic programmatic addition of a SqlDataSource in the page_init handler using Me.Controls.Add(sds) where sds is the SqlDataSource.

Then I set the trgrid.DataSourceID = sds.ID and trgrid.MasterTableView.DataSourceID = sds.ID and do a trgrid.Rebind().

And everything works fine on initial page access, postbacks, etc, as long as I do NOT put the code in a If Not Page.IsPostBack block.

If I do put it in a If Not Page.IsPostBack block then the initial page access works fine, but any postback bombs with the following error:

The DataSourceID of 'trgrid' must be the ID of a control of type IDataSource.  A control with ID 'sds' could not be found.

So how to fix this error? Should the If Not Page.IsPostBack block of code for programmatic addition of the SqlDataSource be put in a different event handler other than the Init event handler?
Veli
Telerik team
 answered on 25 Aug 2009
3 answers
279 views
Hi,

I am trying to create some docks dynamically in my application. Not only the docks, the raddockzone and raddockLayout is also created dynamically. I dont have any issues in creating this dynamically. But if I drag a dock to any other zone, all the dynamically created docks are lost during postback. Here i am using two layouts, one which is created dynamically and other one which ia already there and holds some static zones in them. The problem occurs when I try to drag and drop on dock in either way.

Can you give me a solution for this immediately. I am working on this for a long time now. I cannot wate anymore time. Any help is appreciated.

Thanks,

Ajish.
Pero
Telerik team
 answered on 25 Aug 2009
1 answer
121 views
I tried to use the approaches on your document at http://www.telerik.com/help/aspnet-ajax/upload_howtoclientfilesize.html but couldn't make the code work!

I want to check the file size on the client (I want to limit the upload to 5 MB) but the javascript function cannot even be called (I place an alert code and nothing happens)

Could you please advise me what to do?

Here are excerpts from my code:

<table cellpadding="0" cellspacing="0"> 
                                    <tr> 
                                        <td align="left" valign="top"> 
                                            <telerik:RadUpload ID="ruAttachment" runat="server" OverwriteExistingFiles="True" 
                                                AllowedFileExtensions=".doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.pdf,.mov,.wmv,.mpg,.avi,.wma,.mp3,.jpg,.gif,.png,.bmp" 
                                                Width="300px" MaxFileInputsCount="1" ReadOnlyFileInputs="True" ControlObjectsVisibility="None" 
                                                EnableEmbeddedSkins="False" Skin="Vinsume" MaxFileSize="2147483647" /> 
                                            <telerik:RadProgressArea runat="server" ID="rpaAttachment" OnClientProgressUpdating="checkUploadedFilesSize" 
                                                Language=""> 
                                                <Localization Uploaded="Uploaded"></Localization> 
                                            </telerik:RadProgressArea> 
                                            <telerik:RadProgressManager runat="server" ID="rpmAttachment" /> 
                                        </td> 
                                    </tr> 
                                </table> 


<script language="javascript" type="text/javascript"> 
 
         
        function checkUploadedFilesSize(progressArea, args) { 
            alert("fgdfgdf"); 
            //progressArea.confirmed is a custom variable, 
            // you can use another if you want to 
            if (!progressArea.confirmed && 
                args.get_progressData().RadUpload.RequestSize > 1000000) { 
                if (confirm("The total size of the selected files" + 
                 " is more than the limit." + 
                 " Do you want to cancel the upload?")) { 
                    progressArea.cancelRequest(); 
                } 
                else { 
                    progressArea.confirmed = "confirmed"; 
                } 
            } 
        } 
 
    </script> 
 
Mehmet Ali Ozenci
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
132 views
Hi,

I'm writing tests for our product using Selenium. My issue is that I'm having trouble detecting when the Scheduler has finished loading (like after the view is change from Month to Day). My current solution is

        public static void WaitForTelerikSchedulerToLoad(this Selenium.ISelenium selenium, Action function, string timeout)
        {
            selenium.RunScript("var wasShown = false;");
            function();
            selenium.WaitForCondition("window.wasShown = window.wasShown || selenium.isElementPresent('LoadingPanelScheduler'); window.wasShown && !selenium.isElementPresent('LoadingPanelScheduler')", timeout);
        }

The issue with this is that it is unreliable. Is there a better way to detect that the Scheduler has finished loading?
Helen
Telerik team
 answered on 25 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?