Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 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
61 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
518 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
115 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
123 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
177 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
273 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
1 answer
107 views
I have a web user control.In my user control there is a asp:panel and in the asp:panel there are textboxes contexmenus and radgrids.
When I do enabled=false to panel only textboxes and contexmenus are be enabled=false. radgrids are still enabled=true
Why?
Eyup
Telerik team
 answered on 10 Aug 2012
3 answers
76 views
Hi,

I am trying to use the RadUpload control in my application, but I am getting some very strange results, and no matter what I do it doesn't seem to change it.
Please see the attached screen shot.
There are 2 edit controls swhowing per file, along with a Browse button AND a select button, as well as a dot to the left.
It is currently set to use the Office2010Blue skin, but seems to ignore this.
Markup for the upload control shown below


<div style="left: 0px; position:absolute; top: 60px; height: 230px; width: 320px;">
  <telerik:RadUpload ID="Upload" runat="server" MaxFileInputsCount="3" EnableEmbeddedSkins="true"
    ControlObjectsVisibility="RemoveButtons, AddButton" SkinID="Office2010Blue">
  </telerik:RadUpload>
</div>

Has anyone any idea how I can get this to look right?
What I really want, is for each file to show a text box, select button and remove button in the correct skin.


Thank you

Paul

Ivan Zhekov
Telerik team
 answered on 10 Aug 2012
4 answers
140 views
I have defined auto insert on my r.a.d. grid. When I click on Add New Record button, a form is displayed above the grid which displays all fields of the grid. This is default behavior of r.a.d grid. I want to achieve same behavior using code. Any idea?
Please help.
Radoslav
Telerik team
 answered on 10 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?