Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
391 views
Hi,

I want to change the header strip color of PanelBar. Please see the attached screenshot. I made changes in PanelBar.css under div.rpHeaderTemplate for background Image but didn't get success. can anyone please let me know how to do that.

Thanks,
--Jai
Kate
Telerik team
 answered on 09 Jun 2011
12 answers
304 views
Hi,

I was wondering why the list of allowed files (your sample shows jpeg, png, gif) are displayed properly in the 'File Type' dropdown when browsing for a file on the AsynchUpload control, but show 'All Files' on the upload control, even thought the settings are the same.  Also, is there a way to actually filter these types in the available files window, like Windoes Explorer?

Thanks
Peter Filipov
Telerik team
 answered on 09 Jun 2011
1 answer
87 views
Hi,
I have a RadGrid within which I use an ItemTemplate to determine how the rows look. In the item template there is a RadToolBar, I want to have a javascript function for each of the buttons on the toolbar that does something with the ID of the current row (as contained in the ClientDataKeyNames for the grid.).

I'm getting to the function specified by OnClientButtonClicking but am then a little unsure how to get the ID of the row that was clicked.  Any pointers?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 09 Jun 2011
2 answers
172 views
I've got a ListView bound to a Linq data source. I've got both edit and insert templates. I only allow the user to edit two of the fields. the rest of the fields (i.e. update by user id, udpated datetime, created date time, etc.) I want the system to set. On what event of the ListView can I set the additional fields before the item is updated / inserted into the database? And coulde you show me an example?

Thanks!
Iana Tsolova
Telerik team
 answered on 09 Jun 2011
13 answers
307 views
Hi,

I have a weird problem on IE 7 (works on firefox 3.5)
There is a Combo box with 2 line  drop down items. The first time i click on the drop down, the items overlap. It looks like the Combo box  does not know that its got multiline items. The next time i click i get all the items without the overlapping.

TIA
PS
marbleblue
Top achievements
Rank 1
 answered on 09 Jun 2011
1 answer
88 views
I'm working with a client who uses the telerik editor in their community forum.  As a tech company they have a priority language for one of their devices (it closely follows C#).  While the Code Block Editor is great, they have been asking me about adding in some minor changes to the formatting rules to better represent their specific language syntax and color coding.

Is this possible?
Rumen
Telerik team
 answered on 09 Jun 2011
2 answers
1.8K+ views

Hi,

I can easily bind the grid to a List<> collection on Page_Load. However, I'm unable to populate the grid with data on an postback from an user event - for example a button click, and I can't really understand why.

Below is a sample of what I'm trying to do - the result should be the three random rows inserted into the grid, but the grid remains empty. I also can provide a small project sample, but I can't attach it to the post - you only accept gif, jpg files?

ASPX:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="WebApplication1.test" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadButton ID="RadButton1" runat="server" Text="Load"
        onclick="RadButton1_Click">
    </telerik:RadButton>
    <telerik:RadGrid Width="400px" Height="400px" ID="RadGrid1" runat="server">
    </telerik:RadGrid>
</asp:Content>


Code behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace WebApplication1
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected void RadButton1_Click(object sender, EventArgs e)
        {
            List<FillTest> testList = new List<FillTest>();
            testList.Add(new FillTest("wer", "ERterte", "ertert", "ertert"));
            testList.Add(new FillTest("ertert", "dfgdfg", "ertert", "ertert"));
            testList.Add(new FillTest("dgdfg", "rwer", "pfsd", "vfswe"));
            RadGrid1.DataSource = testList;
        }
    }
 
    public class FillTest
    {
        string _testProperty, _test, _description, _code;
 
        public string Code
        {
            get { return _code; }
            set { _code = value; }
        }
        public string Test
        {
            get { return _test; }
            set { _test = value; }
        }
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        public string TestProperty
        {
            get { return _testProperty; }
            set { _testProperty = value; }
        }
 
        public FillTest(string testProperty, string test, string description, string code)
        {
            _testProperty = testProperty;
            _test = test;
            _description = description;
            _code = code;
        }
    }
}
John
Top achievements
Rank 1
 answered on 09 Jun 2011
3 answers
110 views

Hello,

One of my current tasks is to modify the Image Editor(RadEditor) to allow the user to do some limited Image manipulations. On this task I've encountered some issues :

1) could Image Editor be modified to include a zoom control? For instance if the user has to take a crop from a 2000 x 3000 pixels image, he can't see the whole image fitted in the window.

2) Is there a way to have Image Editor open with Crop "Enabled" by default ? On careful inspection on the js code on the ascx, there are some props in the prototype init; ie. 

1.this._cropEnabled = true// this doesn't work ?
but none of the changed yield results.

How can the ascx ( or what are the caller parameters ) modified to have crop enabled, and the bounding boxes visible when the Image Editor inits ?

3) When setting the default width and height of the crop area

 

1.//Set initial position
2.this.setBounds({ x: 0, y: 0, width: 70, height: 70 });
All browsers behave and keep these settings, except IE ( which gives a weird value like 48x83 px ). Is this a know bug or I'm dealing with IE faulty box models ? And if there is a known limitation, is there a workaround ?

Thanks!

Rumen
Telerik team
 answered on 09 Jun 2011
1 answer
81 views

I need to display a rad grid in the following format which is attached with this post.  I wil  enter the values in the textbox inside the grid and save the data to the databse.   The attached grid is ASP GRID . Whether  this is possible in rad grid


Mira
Telerik team
 answered on 09 Jun 2011
1 answer
112 views
FF never shows the default font name when the editor loads. This issue is highlighted in the following thread.

http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-font-name-initial-value-never-gets-set-in-firefox-2.aspx

A fix is provided, but it has been more than 2 years and I am wondering if you plan on fixing this in the editor itself rather than requiring a hack.
Rumen
Telerik team
 answered on 09 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?