Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
257 views

I'm using the same functionality as outlined in "RadGrid bound to WCF Web Service" sample. In that sample the client binding section is as such
          <ClientSettings>
                <DataBinding SelectMethod="GetDataAndCount" Location="GridWcfService.svc"
                    SortParameterType="Linq" FilterParameterType="Linq">
                </DataBinding>
            </ClientSettings>

However I have a need to send extra parameters in that GetDataAndCount() function. I don't see any way to intercept this call on the client side and provide the necessary information.

Can you please advise?

James
Top achievements
Rank 1
 answered on 23 May 2012
3 answers
117 views
Hi. I have a specific menu requirement. I know that individual parts can be created with the radMenu but I don't know how to create it as a whole (or whether it can be created).

The menu has a complex structure but each part is fairly simple. My main problem is the third level of the menu (I've already created the first two levels).

So the first level is fairly straightforward and can be defined in the aspx.cs file (ie its fixed). Each level 1 menu item is unique but its relatively straightforward. The second level for menu.items[0] is also straightforward but has to be created in code, cannot be predefined in the aspx.cs but can be created using fairly straightfoward radMenuItems (which can then be added to menu.items[0].items

My problem is that each of these second level menu items (but only in menu.items[0].items) would ideally be defined with an itemtemplate. Each item in menu.items[0].items will have a sub menu with the same template but different data and each is effectively a mega dropdown. I understand the mega drop-down demo but that is defined in the aspx.cs file but my problem is that the level 2 menu has to be constructed in code and the mega drop-down is then level 3.

How can I create a menuItem based on a template?
Kate
Telerik team
 answered on 23 May 2012
0 answers
114 views
Does rad controls support hijax solution? rad_test.aspx calls an ajax request to rad_control.aspx and renders the content in panel div. When I run it, the RadDatePicker control loads but the calendar does not popup?

Example:
rad_control.aspx:
<%@ Page Language="C#"  %>
   <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <form runat="server">
    <telerik:RadScriptManager  runat="server" ScriptMode="Release" />
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" ClientIDMode="Static">
            <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true" ClientIDMode="Static">
            </Calendar>
        </telerik:RadDatePicker>
        </form>

rad_test.aspx:
<%@ Page Language="C#" %>

    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script>
    <script>
        jQuery(document).ready(function () {
            jQuery.ajax({
                type: 'GET',
                url: 'rad_control.aspx',
                cache: true,
                success: function (response) {
                    $('.panel').append($(response));
                }
            });
        });
    </script>

    <form id="form1" runat="server">
    <div class="panel">
        
    </div>
    </form>


Xml
Top achievements
Rank 1
 asked on 23 May 2012
1 answer
196 views
We have your asp .net ajax web controls but do not have your Sharepoint controls. It looks like we will get them sometime after October of this year. In the mean time how do I call javascript from a SharePoint WebPart. The WebPart is just a user defined control ascx file. Where do I register the script section and where do I put the functions?

I was told:

You can create a Litral control and set the Text property, like following -

protected override void CreateChildControls()

{

Litral scriptLitral=new Litral();

scriptLitral.Text="<script type='text\javascript'>";

scriptLitral.Text+="function CustomAlert(msg){";

scriptLitral.Text+="alert(msg);}</script>";

Controls.Add(scriptLitral);
}


I tried this but could not add the function to a button control. Can you help?
 
Thanks,
 
Steve Holdorf
Rumen
Telerik team
 answered on 23 May 2012
3 answers
91 views
Hi.
I am using vertical RadSlidingPane which contains RadPanelBar.
When RadSlidingPane is resized to bigger width, everything is ok and RadPanelBar is resized according to RadSlidingPane width.
On the contrary, when RadSlidingPane is shrunk RadPanelBar remains the same, without being shrunk according to RadSlidingPane width.
The question is why this happens and how can avoid such behaviour?
Dobromir
Telerik team
 answered on 23 May 2012
1 answer
132 views
I have a project in which I am populating the tooltips using a webservice.  It is working well with the .asmx within my project.

I want to be able to make this web service a separate website so it can be reusable by multiple applications.  Is it possible to set the WebServiceSettings on the RadToolTipManager to connect to this web service?

I've tried setting the Path attribute to the "http:" address of the web service and simply get the error "RadToolTipManager response error: Exception=The server method 'GetData' failed.".  I've also tried setting a service reference to the web service and setting the Path attribute to the wsdl of the web service.  Still no success.

Thanks for you help.
Marin Bratanov
Telerik team
 answered on 23 May 2012
1 answer
145 views
Is there any event that fires for a radWindow when it loses the focus? there appears to be the add_activate method which allows me to add a handler when the window receives the focus, but I can find nothing in the documentation for when the window loses the focus.

Would I have to write a function in a settimeout that calls itself and constantly checks if the window is still the active window? seems a little resource hungry!

Stuart
Marin Bratanov
Telerik team
 answered on 23 May 2012
1 answer
119 views
how can i save a unicode character in its original form in the ms sql(for eg. malayalam letters should be save in db as malayalam not english form)
Marin Bratanov
Telerik team
 answered on 23 May 2012
1 answer
231 views

Hi

I am using telrik radopen function to open the popups. I have a situation in which child popup opens from parent popup which opens from grandparent .aspx page.

Grandparent (.aspx page) -> popup (parent) -> popup(child)

I want to close the parent popup and child popup on click of a button on child popup. I tried using 

GetRadWindow().BrowserWindow.BrowserWindow.Close() // this one and variations of this errored !

GetRadWindow().BrowserWindow.close(); // this did not errored but didn't close parent window
GetRadWindow().Close(); // this closes only child window - when invoked from button click on child window

I read the question Is it possible to close parent window from child (Javascript)?

If in case it is not possible to close the parent popup from child popup is there a workaround so that I can simulate the behavior of 'submit button click' on child control can close child and parent popup and refresh the grid on the grandparent .aspx page?

May be redirect can help. In that case how do I do that?
Any suggestions.

Thanks
Kuldip

Marin Bratanov
Telerik team
 answered on 23 May 2012
1 answer
156 views
I'm sure this is a really obvious and quick fix, but I have a page whereby a user clicks in a button in the middle of the page (in this case, a button inside a radgrid). That button fires the tooltip, but it renders the tooltip at the top of the window, so the user has to scroll all the way to the top of the window. The tooltip doesnt scroll with the browser. Any thoughts? Here's how I have the tooltip configured:

<telerik:RadToolTip ID="UserEdit" runat="server" Skin="Office2010Black"
        ManualClose="True"  Position="Center" RelativeTo="BrowserWindow"
        ShowCallout="False" Modal="True">
Hello!
</telerik:RadToolTip>
Marin Bratanov
Telerik team
 answered on 23 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?