Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
211 views
Hi,

Can I hide/show different chartseries without going to postback or redatabind?.

Thank you.
Tsvetie
Telerik team
 answered on 10 Aug 2012
1 answer
63 views
hi,
Attached file is a screenshot of my website it is like msdn website.
i have these problems, please guide me:

1) After user clicked on a node of tree a page must be rendered at right side (exactly same as msdn).
my pages are stored in 'Contents' folder and their names are based on node's ID that is 1.htm, 2.htm, etc.
I want to load a specific page based on clicked node's ID
into right side using AJAX without whole page refresh.
I don't want to use iframe element.

2) address bar must show the address of specific loaded page at right side I want to provide it as a link to users.


the project is suspended because of these two...
Tooraj
Top achievements
Rank 1
 answered on 10 Aug 2012
1 answer
129 views
Is there some sample code on how to best do this. I only need it for IE.
Thanks ... Ed

Ivan Zhekov
Telerik team
 answered on 10 Aug 2012
1 answer
111 views
Hi,

Is there a way to easily override all the black in the new Metro Touch theme?

For example, the RadToolbar in Metro has a white background and gray text, in Metro touch, the bg is now black and the text white.

The black is just too dark and over powering.  In the Metro theme, a lot of elements didn't contrast enough...with the Metro Touch, you guys went the opposite and made a lot of things black against white (which is as high contrast as you can get), but it's a bit much.

I'd rather not have the extra baggage of maintaining a custom theme based on Metro Touch and just wanted to see if there is a way to sneak some css somewhere that would globally change all the black bg settings.

Thanks!
Ivan Zhekov
Telerik team
 answered on 10 Aug 2012
1 answer
46 views
I have used as per suggested here

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=grid 

but when clicking on the radTabs available validation is firing. How can I remove this validation so that it should work only on update
Shinu
Top achievements
Rank 2
 answered on 10 Aug 2012
5 answers
465 views
Hi,
        How to assign the values from selected row of the radgrid to
Page1.aspx:
  
<script language="javascript">
function callShow() 
{
  if (window["<%=RadGrid1.ClientID %>"].MasterTableView.SelectedRows.length > 0) 
  {
    var selectedRows = window["<%=RadGrid1.ClientID %>"].MasterTableView.SelectedRows[0];
    window["<%= RadGrid1.ClientID %>"].AjaxRequest("<%= RadGrid1.UniqueID %>", "No|" + selectedRows.KeyValues["No"]);
  }    
}
</script>
<html>
<asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional">
  <ContentTemplate>
     <asp:TextBox ID="txtNo" runat="server"/>
     <asp:TextBox ID="txtName" runat="server"/>
  </ContentTemplate> 
</asp:UpdatePanel>
..
..
<radG:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" GridLines="None" Skin="Office2007" AllowSorting="false" EnableAJAX="true" AutoGenerateColumns="false">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="No">
 <Columns>
   <radG:GridBoundColumn DataField="No" UniqueName="No"     HeaderText="No">                                                                     </radG:GridBoundColumn>
   <radG:GridBoundColumn DataField="Name" UniqueName="Name"   HeaderText="Name">                                                                   </radG:GridBoundColumn>
 </Columns>  
</MasterTableView> 
<ClientSettings EnableClientKeyValues="true">
      <Selecting AllowRowSelect="true" />
      <ClientEvents OnRowSelected="callShow" />
</ClientSettings> 
</radG:RadGrid>
</html>
  
  
Page1.aspx.cs:
  
protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
{
  if (eventArgument != null)
  {
    if (eventArgument.StartsWith("No"))
    {
      string[] arr1 = eventArgument.Split(new char[] { '|' });
      txtNo.Text = arr1[1].ToString();
    }
  
}
textboxes which is outside of radgrid in server side coding.
Please find me the solution as soon as possible.
Note: im using classic radgrid.

Regards,
Asif
Tsvetina
Telerik team
 answered on 10 Aug 2012
0 answers
104 views
Hi,

I was trying to set AllowedFileExtensions in RadAsyncUpload, but no matter how I set it, it doesn't work (all the extensions are available) AND, what's worse, it breaks file size valildation - I have the MaxFileSize set for something like 3MB, but as long as AllowedFileExtensions are set, the validation fails for a 2MB file, while it lets through a file that is 18kB.

I've seen a few threads where you suggest to disable Silverlight. I've done it. I've also disabled flash - no avail.

I've tried to set it in markup, in code, using a dot before the extension as well as without it. Nothing works.

My project is using telerik 2010_3_something, so I thought maybe it got fixed in some newer version. I set up a new project with telerik 2012_1_529 in a totally new project - no change.

I'll probably try to use a custom validator now, hope it works... But anyway please tell me if there is possible to make it work anyway.
Chris
Top achievements
Rank 1
 asked on 10 Aug 2012
1 answer
99 views
Hi ,
 How do I change the border color of the selected date in radcalendar. Please help
Savyo
Princy
Top achievements
Rank 2
 answered on 10 Aug 2012
5 answers
150 views
I have a list in a RadDropDown, that users can select multiple values from, these are then saved to a database in a comma separated string.

When I wish to edit the data I need the same checkboxes to be ticked.

My code is atttached, I'm getting the first value to tick, but on subseqent values the x is null and no further binding takes place. The value of the selectedItem matched the value of Usr from the array.

'populate the dropdown and pre select checkboxes
If Not IsDBNull(u_ds.Tables(0).Rows(0)("LinkedUsers")) Then
    Dim arrLinkedUsers As Array = Split(u_ds.Tables(0).Rows(0)("LinkedUsers"), ",")
    For Each Usr In arrLinkedUsers
 
        ddlClinic.SelectedValue = Usr
        Dim x As RadComboBoxItem = DirectCast(ddlClinic.SelectedItem, RadComboBoxItem)
        If Not x Is Nothing Then
            x.Checked = True
        End If
 
    Next Usr
End If

Andy


Andy Green
Top achievements
Rank 2
 answered on 10 Aug 2012
1 answer
244 views
Hey Guys,

I've come up against a sticky one here.  I'm trying to apply a dynamic (from UserControl) ItemTemplate to my RadListView.
I do this OnItemDataBound and it works great except for the fact the ItemTemplate seems to have already been set up and so I end up modifying the template ready for the next record and not the current one.  So all templates are staggered out-of-sync by one record.
It seems there is no event to handle that lets me check my dataitem in time to set the current ItemTemplate.  I;ve read a solution online regarding the vanilla .NET ListView where you create a custom version which exposes what is effectively a "OnItemCreating" event where you can query the underlying data item in time to set the ItemTemplate accordingly.

I guess my question is really, have I missed something in Telerik's ListView that will allow me to do this?  And if not, can I extend the Telerik ListView in the manner of that example and create an event where I can carry out my desired operations?

Many thanks for any help - code snippets below.

<telerik:RadListView ID="rlvJobsListPage" runat="server" ItemPlaceholderID="phJobsList" DataSourceId="objJobList"
    OnItemDataBound="rlvJobsListPage_ItemDataBound" AllowCustomPaging="true" AllowPaging="true" PageSize="20" AllowSorting="True">
    <LayoutTemplate>
        <div id="searchList">
            <div id="phJobsList" runat="server"></div>
        </div>
    </LayoutTemplate>
    <EmptyDataTemplate>
        No records found
    </EmptyDataTemplate>
    <ItemTemplate>First item gets this default - not my dynamic template like the rest of them do</ItemTemplate>            
</telerik:RadListView>

protected void rlvJobsListPage_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e)
{
    // Set each bound item to status "Loaded"
    if (e.Item is RadListViewDataItem)
    {
 
        RadListViewDataItem thisDataItem = (RadListViewDataItem)e.Item;
        Job thisListing = (Job)thisDataItem.DataItem;
 
        //Formulate the Template name and Render it!
        rlvJobsListPage.ItemTemplate = Templating.Render_ITemplate(Globals.SectionIds.Jobs, thisListing.ListingTemplate, TemplateType.Summary, this);           
         
 
    }
}

Tsvetina
Telerik team
 answered on 10 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?