Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
106 views
I am using a Grid / User Control Edit Form in a  radgrid, similar to this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx


In this form, I wish to place a data-bound radcombobox. The combobox seems to work but I cannot figure out how to set the SelectedValue for the radcombobox so it will 'pre-set' to the correct entry when a user edits a pre-existing record.

Does anyone have an example of how I can do this? Thanks.

Never mind, figured it out... SelectedValue propery didn't pop up in visual studio as a property I could set at runtime. I manually added it to the line with the appropriate data binding and it now works great.
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 asked on 23 May 2012
1 answer
65 views
Unable to find Rad Grid,
In my website, I have a Master page, included with Jquerymin.js and MyScript.js
In my content page i have radgrid view, I'm trying to access rad grid view from MyScript.js but unable to access. 
Getting error unable to call method  get_masterTableView();

grid = $find('<%= gvChartData.ClientID %>');
       var masterTable = grid.get_masterTableView();

Please help me in solving my problem.


Regards
Krishna
Eyup
Telerik team
 answered on 23 May 2012
2 answers
125 views
I have a radcomboBox, with CheckBoxes set to true. How can I get it so that when a user clicks on the text, it also checks/unchecks the checkbox?

<telerik:RadComboBox
	ID="CustomerComboBox" runat="server" 
	Width="300px" Height="140px"
	EmptyMessage="Type a customer name"
	DataTextField="CustomerName" 
        DataValueField="CustomerId"
	CheckBoxes="True"  
        OnClientItemChecked="ReportSystem.CustomerComboBox_Checked"
	AllowCustomText="False"
	MarkFirstMatch = "True"
	OnClientKeyPressing="ReportSystem.OnClientKeyPressing"
	>
</telerik:RadComboBox>
Chris
Top achievements
Rank 1
 answered on 23 May 2012
5 answers
240 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
92 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
94 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
173 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
76 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
114 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
118 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?