Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views
I have a website that currently has a data grid on a page called "data_manager.aspx".  I am adding a new data grid page called "data_manager2.aspx", but I want the user to choose which page to view when the menu link is clicked.

1)  When a user clicks the data manager menu option, it will launch a radWindow Modal that asks them which page they want to view.

2) When the user clicks the link to the page he/she wants to view, the modal window closes and the parent window directs to the appropriate page.

3) Query strings must pass between the parent to the rad modal back to the new parent when the selection is made.

Ideas on how to do this?
Shinu
Top achievements
Rank 2
 answered on 02 Feb 2011
2 answers
191 views
Hi,

I want to use jQuery AJAX methods to load a User Control containing Telerik controls dinamically/programatically.

I want to do this because I am trying to develop an ASP.NET application without PostBacks. I will maintain in my Master page all JSON collections returned from my WCF services and do client binding of this collections to Telerik Controls.

I will load the user controls only for the first time they are called and maintain them in separated DIVs. When the controls is needed again I will switch them using jQuery hide/show intead of loading the user control again.

Telerik has a very good support for client manipulation of controls using javascript so I beleieve that this is possible.

I have a jQuery small framework that already do this with html pages in an MVC application. The problem is that Telerik ASP.NET MVC does not have enough controls as do Telerik ASP.NET and I need some of them.

This page here (http://aspxtutorial.com/post/2011/01/02/Load-aspnet-web-user-control-using-jQuery-and-web-method.aspx) show how to load ASP.NET controls with jQuery.  I could test with some Telerik controls but I need to know if all ASP.NET Telerik Controls support this kind of procedure/architecture.

Can you help me ???
mvbaffa
Top achievements
Rank 1
 answered on 02 Feb 2011
4 answers
221 views
Hi all,

I'm having trouble trying to get the client event "ValueChanged" of the RadNumericTextBox to fire when AllowOutOfRangeAutoCorrect is set to false. I have my RadNumericTextBox inside a GridTemplateColumn from the RadGrid. The JS function is never called.

Here's how my code looks like:

<telerik:GridTemplateColumn HeaderText="Qty" DataField="Quantity" UniqueName="Quantity">
                <ItemTemplate>
                    <telerik:RadNumericTextBox ID="quantity" runat="server"
                        DataType="System.Int32"     
                        AllowOutOfRangeAutoCorrect="false"                
                        MinValue='<%# Decimal.Parse(Eval("MinimumQuantity").ToString()) %>'
                        DbValue='<%# Convert.ToInt32(Eval("Quantity")) %>'
                        Type="Number"
                        SelectionOnFocus="SelectAll"
                        NumberFormat-DecimalDigits="0">
                        <ClientEvents OnValueChanged="OnClientValueChanged" />
                    </telerik:RadNumericTextBox>
                </ItemTemplate>
            </telerik:GridTemplateColumn>

<script type="text/javascript">
        function OnClientValueChanged(sender, args)
        {
             alert("hello");
         //do something
        }
</script>

Thanks in advance!

Eric
Eric
Top achievements
Rank 2
 answered on 02 Feb 2011
2 answers
223 views
I have a custom control that contains a radSkinManager, radScriptManager and a radMenu. This control is on every web page. My client wants the "Default" skin applied and the font on the menu set to bold. I have set the radMenu property "Font-Bold='true'" but the skin overrides this and turns off the bold. How do I get around this??
dhuss
Top achievements
Rank 1
 answered on 02 Feb 2011
2 answers
124 views
(I mean DISABLING) :)

In my application the tasks displayed will be filter on a per user basis.

For example when User A is logged in, they will see only User A's tasks.

Some users however will have the ability to see the tasks of other users.

My question is how do I set the scheduler in these cases to read only. A user looking at another users tasks cannot Create, Update or Delete tasks. Nor can they more or re size a task.

I don't want it dimmed out. I just want is so all edit functions are disabled.

Cheers.

Brad
Brad
Top achievements
Rank 1
 answered on 01 Feb 2011
3 answers
106 views
Hi...

Kinda new to the PanelBar and I am trying to do something specific with it that I am not finding on the forums.

I have a PanelBar which I am databinding in the code behind.

Each Item will have a repeater inside it so I have the following code
<telerik:RadPanelBar ID="RadPanelBar1" runat="server"  ExpandMode="FullExpandedItem">
    <ExpandAnimation Type="None" />
    <CollapseAnimation Type="None" />
    <ItemTemplate>
        <asp:Repeater ID="PremisesRepeater" runat="server">
            <ItemTemplate>
                <%--..some user control--%>
            </ItemTemplate>
        </asp:Repeater>
    </ItemTemplate>
</telerik:RadPanelBar>

Bound like this.

RadPanelBar1.DataSource = MyCustomer.MyBusinesses;
RadPanelBar1.DataTextField = "Id";
RadPanelBar1.DataValueField = "Id";
RadPanelBar1.DataBind();

The problem is that once this is databound, the PanelBar doesnt collapse any items at all. Everything is expanded and the repeater and it's contents are shown for all items. Items will not collapse when the header is clicked on.

Am I missing something? I would like to use this control specifically for the expand/collapse functionality.

Kind Regards,
Andrew
Andrew
Top achievements
Rank 1
 answered on 01 Feb 2011
4 answers
150 views
Hey all,

I have a RadComboBox that I want to have pull data from a separate WCF service project, and I've followed the guide for linking a RadComboBox to a WCF service (http://www.telerik.com/help/aspnet-ajax/combobox-loading-items-from-wcf-service.html), but it will not work when the service is in a WCF project separate from the web project.  I first tried configuring the RadComboBox to use a service within the same web project and that worked great, but once I moved the service to a separate project, it started giving the error "The server method GetData failed".

So, I have two projects in my solution.  A WCF service project and a web project, and the web project has a service reference to the WCF service project.  The web project has the following RadComboBox on its default page:
<telerik:RadComboBox ID="RadComboBox1"
   EnableLoadOnDemand="true"
   Width="250"
   runat="server">
    <WebServiceSettings Method="GetData" Path="http://localhost:4835/Service.svc" />         
</telerik:RadComboBox>

The WCF service project has the following ajax-enabled service:
namespace WcfService
{
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Service
    {
        [OperationContract]
        [WebGet(ResponseFormat=WebMessageFormat.Xml)]
        public RadComboBoxData GetDataTelerik(RadComboBoxContext context)
        {
            RadComboBoxData data = new RadComboBoxData();
 
            //todo: call db..
 
            RadComboBoxItemData item = new RadComboBoxItemData();
            item.Text = "rawr";
            item.Value = "teh value";
 
            data.Items = new RadComboBoxItemData[] { item };
            return data;
        }
    }
}

And the service project has the following web.config file:
<?xml version="1.0"?>
<configuration>
 
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
 
  <system.serviceModel>
      <behaviors>
          <endpointBehaviors>
              <behavior name="WcfService.ServiceAspNetAjaxBehavior">
                  <enableWebScript />
              </behavior>
          </endpointBehaviors>
          <serviceBehaviors>
            <behavior>
              <serviceMetadata httpGetEnabled="true"/>
            </behavior>
          </serviceBehaviors>
      </behaviors>
      <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
          multipleSiteBindingsEnabled="true" />
      <services>
          <service name="WcfService.Service">
              <endpoint address="" behaviorConfiguration="WcfService.ServiceAspNetAjaxBehavior"
                  binding="webHttpBinding" contract="WcfService.Service" />
          </service>
      </services>
  </system.serviceModel>
   
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
 
</configuration>

When the service was in the web project and working properly, the same serviceModel section of the above config file was in the web project's web.config.  When I moved the service to its own project, I pulled that section out and put it in the service project's web.config.  The only difference is I set httpGetEnabled to true (so that the service could be referenced and the wsdl could be viewed).

But when the RadComboBox tries to pull data from the service, it gives the error message "The server method GetData failed".  What am I missing?  Thanks!

-Joey
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 01 Feb 2011
3 answers
388 views
Hi,

I am working over a RadMenu.
In my development, I would like to create, in a certain condition, a menu item for this menu in which the url is opened in a new window.
There is someone who have an idea???

Thanks.
Mehdi Baatout
Top achievements
Rank 1
 answered on 01 Feb 2011
1 answer
151 views
Hi,

I'm binding my grid to a collection of objects, unfortunately, the object only contains an id of another object that I want to display the Display Value for.  So rather than make a service tier change, I'm handling the retrieval within the UI.

My question is, do DataItem Attributes have a DataField property value so I can bind to them?

I'm using NeedsDatasource to bind and then explicitly using telerik:GridBoundColumn to handle which columns are displayed.

I'm adding my Attributes in the code behind in ItemDataBound, like this:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        Object obj1= (Object)e.Item.DataItem;
        e.Item.Attributes.Add("Attribute1", DataSet.Find(p => p.Code == obj1.Code).DisplayValue);
    }
}


Is there a way to bind a column to the Attribute named "Attribute1"?

Thanks!

Coy
Coy
Top achievements
Rank 1
 answered on 01 Feb 2011
3 answers
290 views
Need solution:
Click on RadComboBox and scroll mouse weel - List Box opens and remains open on top of screen as the screen scrolls underneath.
Please help!
Cori
Top achievements
Rank 2
 answered on 01 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?