Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
287 views
I have a RadComboBox that is not databound at the server but is set up with WebServiceSettings to allow it to be loaded from the client.  I am using this to load different items depending on the state of other controls on the page, but do not want load on demand functionality, instead I am calling requestItems() from client-side code when I require the items in the list to change:

<telerik:RadComboBox ID="cboCustomer" runat="server" EmptyMessage="Select a customer" MarkFirstMatch="true" OnClientItemsRequesting="cboCustomer_ItemsRequesting"
    <WebServiceSettings Path="Services/ComboData.asmx" Method="GetCustomers" /> 
</telerik:RadComboBox> 
 
<script type="text/javascript"
    function cboCustomer_ItemsRequesting(sender, eventArgs) { 
        var context = eventArgs.get_context(); 
        context["SelectBy"] = getSelectBy(); 
    } 
</script> 
 

When I then call $find("<%=cboCustomer.ClientID %>").requestItems("", false) the list is populated correctly from my web service, but the empty message disappears.  if I select an item from the list it is displayed with the rcbEmptyMessage css class applied (sometimes multiple times) even though an item is selected.  If I delete the text from the combobox the empty message doesn't reappear.
Eliza Sahoo
Top achievements
Rank 1
 answered on 22 Apr 2010
1 answer
54 views
hello,

we're running Telerik version 2009.3.1314.35, it looks like the color picker doesn't work in Mac Safari 4.0.5 within the editor.  I can't find in the release notes for future versions whether this is fixed or not, but it appears to work on the Telerik Demos.  I'm trying to determine if it's conflicting style sheets or code on our site, or it simply wasn't supported in 2009.3.1314.35

thanks,


thanks
Rumen
Telerik team
 answered on 22 Apr 2010
2 answers
124 views
Trying to bind to a WCF service and I'm getting the message "Error: Sys.ArgumentException: Cannot
deserialize. The data does not correspond to valid JSON".  Saw the post about the HttpHandler possibly being the problem, but I added it via the Smart Tag again and it still doesn't work.  The syntax checker for the web.config is complaining that the required attribute "name" is missing from the tag.  What should the proper handler entry be? 
Larry
Top achievements
Rank 1
 answered on 22 Apr 2010
2 answers
141 views
Anyone who had to work on the Pager localization for a RadGrid must have been confronted with two things:

  1. The advanced pager cannot be localized as easily as the other styles of pagers for the RadGrid : there is no PagerStyle item property that you can set in your aspx file to localize the Labels and Buttons of the advanced pager (like "PagerTextFormat" or "PageSizeLabelText").
  2. You have to access the elements of the advanced pager as described in the following page: http://www.telerik.com/help/aspnet-ajax/grdaccessingdefaultpagerbuttons.html

This is a litle bit anoying, just because Telerik has given us the habit of extreme ease and flexibility, with a lot of properties that are customizable immediateley. But hopefully, accessing the advanced pager items (and localizing them) is simple and well documented (see the URL above.)

But something was missing. The "of" label as used in "Page x of y" is just not documented! After a litle investigation, it was rather easy to discover it, but the thing is that this Label doesn't contain only the word "of" but the page count as well ("of x" embedded in the same Label!)

To fully localize the advanced pager for the RadGrid, and until Telerik gives us the missing properties that would allow us to localize it very easilly, here is the code that can be used (just a sample):
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        //Is it a GridPagerItem  
        if (e.Item is GridPagerItem)  
        {  
            // Localization for the pager has to happen here.  
            Label lblPageSize = (Label)e.Item.FindControl("ChangePageSizeLabel");  
            lblPageSize.Text = "Page size";  
            Label gotoPage = (Label)e.Item.FindControl("GoToPageLabel");  
            gotoPage.Text = "Page";  
            Button gotoButton = (Button)e.Item.FindControl("GoToPageLinkButton");  
            gotoButton.Text = "Go";  
            Button changeButton = (Button)e.Item.FindControl("ChangePageSizeLinkButton");  
            changeButton.Text = "Change";  
            Label pageOfLabel = (Label)e.Item.FindControl("PageOfLabel");  
            pageOfLabel.Text = "of&nbsp;" + (((GridPagerItem)(e.Item))).Paging.PageCount;  
        }  
    }  
 

I just hope that this post helps at least one person out there :)

Francois
Francois MARTIN
Top achievements
Rank 2
 answered on 22 Apr 2010
4 answers
78 views
Hi All,
 I am facing a weird issue with RadWindowManager. When I place this control on a page it generates HTML which contains some unlcosed anchor tags. Please have a look at the HTML here:

<div>
 <a onclick="$find('{0}').close(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"                
      class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan">
 <span class="rwInnerSpan">
 <a onclick="$find('{0}').close(null);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan">
 <span class="rwInnerSpan">               
</div>

Because of this incorrect HTML IE does not render page correctly(Firefox still works, probably it understands broken HTML)
To do some troubleshooting I developed test application which has only RadWindowManager in a page. In test app it worked fine and I could not reproduce this incorrect behavior in test app. It only happens in my live project.

Can anyone provide me any suggestion on this?

I am attaching complete HTML related to RadWindowManager. Attached file has extension jpg but it's a simple text file. I had to change the extension because site does not allow upload txt files.

Regards
Shrikant
Georgi Tunev
Telerik team
 answered on 22 Apr 2010
3 answers
275 views
Does anyone have any examples of Client-Side Binding with GridTemplateColumn? I have a grid that is linked to a web service. All of my fields update except my template fields. There is a get_cell() that returns a reference to a regular column but not a template one. It almost seems like you have to use all regular columns then manually replace the HTML using javascript. Is there a better way or any examples that might help me? I have lots of places where i have two lines of data in a single field.

Thanks!
Levi
Nikolay Rusev
Telerik team
 answered on 22 Apr 2010
3 answers
238 views
How can i use ItemTemplate with Client-Side RadGrid data binding ?
i use a web method to bind data on client side..

here is my sample:
it hasn't worked out...

        <telerik:RadGrid ID="IndividualHistoryGrid" AllowFilteringByColumn="true" 
            runat="server" GridLines="None" AllowPaging="true" 
            AllowSorting="true" OnPreRender="IndividualHistoryGrid_PreRender" 
            PageSize="6"
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <MasterTableView TableLayout="Fixed" DataKeyNames="IndividualCode" ClientDataKeyNames="IndividualCode"
                <ItemTemplate> 
                    <asp:Panel ID="ItemContainer" runat="server"
                        <b>Name:</b> 
                        <%# Eval("Name")%> 
                    </asp:Panel> 
                </ItemTemplate> 
            </MasterTableView> 
            <GroupingSettings CaseSensitive="false" /> 
            <ClientSettings> 
                <DataBinding SelectMethod="GetDataAndCount" Location="IndividualGetHistoryMethod.aspx" 
                    SortParameterType="Linq"  FilterParameterType="Linq"
                </DataBinding> 
                <ClientEvents OnDataBinding="onDataBinding"></ClientEvents> 
            </ClientSettings> 
        </telerik:RadGrid> 

i tried the sample on the below link:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/listview/defaultcs.aspx



Nikolay Rusev
Telerik team
 answered on 22 Apr 2010
0 answers
81 views
Can any one let me know how can we implement Recurrence on multiple dates of the month / multiple months of an year. The samples only allows to set one date / one month.

Some thing like the attached image

Regards
Nitesh    
Nitesh Gaba
Top achievements
Rank 1
 asked on 22 Apr 2010
1 answer
134 views
Hi,

When I am binding the xml file to the radtabstrip I am getting the "Data at the root level is invalid. Line 1, position 1. " I am pasting my xml file here,

<?xml version="1.0" encoding="utf-8" ?>
<MainMenu>
  <Menu Text="Home" Url="#">
    <Menu Text="test1"></Menu>
    <Menu Text="test3"></Menu>
    <Menu Text="test2"></Menu>
  </Menu>
  <Menu Text="Policy Management" url="#">   
  </Menu>
  <Menu Text="Claims Management" Url="#">   
  </Menu>
  <Menu Text="Fast Quote" Url="#"> 
  </Menu>
  <Menu Text="Batch Processes" Url="#">   
  </Menu>
</MainMenu>

and in cs file in page load i am using this code

 MainMenu.LoadXml("XMLFile.xml") and I used this also

MainMenu.LoadContentFile("XMLFile.xml");

plz help me soon.











Yana
Telerik team
 answered on 22 Apr 2010
3 answers
939 views
Hi all, I am creating an admin section for a client and they use dotNetProtect.
Apparently dotNetProtect is blocking the /Telerik.Web.UI.WebResource.
axd file from being accessed and according to their pathetic support, there is no fix!

I was wondering if I could just cut and paste the JS code from this file into a js page.
Without this file I get the Telerik is undefined. When I remove dotNetprotect, it works.

Is there any solution or workaround you all can think of?
John

T. Tsonev
Telerik team
 answered on 22 Apr 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?