Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
192 views

How to change the color of a raddock titlebar. I tried using

<style type="text/css">  
    .rdTitlebar,.rdTitle  
    {  
        background:green !important;  
    }     
</style> 


It doesnt work!
Bozhidar
Telerik team
 answered on 16 Jul 2010
3 answers
117 views
hi,

I need to disable the functionality to edit html elements in desing modus. Is there a way to do that.
for example.

I have added a textarea to the editor, users can now enter text into the textarea by double clicking it and edit the value.
other example.

I have added a radio button to the editor. Users can now alter the selected state.

I want to disable this behaviour.

thx

gerco
Rumen
Telerik team
 answered on 16 Jul 2010
2 answers
177 views
Hi,

I have a Radwindow which contains a radiobuttronlist controls having 2 listitems.
I wanted that on index change of the radio buttons, a text in a label would be displayed.
However the server side code doesn't fire.

Is it because it is a Radwindow?
Below is the code that I am using.

[ASPX CODE]

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12%">&nbsp;</td>
<td width="70%" class="body_header2">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:RadioButtonList ID="RadBtnConf" runat="server" AutoPostBack="true"
onselectedindexchanged="RadBtnConf_SelectedIndexChanged">
<asp:ListItem Value="0" Text="Conformance"></asp:ListItem>
<asp:ListItem Value="1" Text="Non Conformance"></asp:ListItem>
</asp:RadioButtonList>
</td>                                               
</tr>
</table>

[C# CODE]

protected

 

void RadBtnConf_SelectedIndexChanged(object sender, EventArgs e)

 

{

Label1.Text =

"You selected " + RadBtnConf.SelectedItem.Text;

 

}


Please suggest.
Thanks
Debashis Pyne
Top achievements
Rank 1
 answered on 16 Jul 2010
1 answer
74 views
Whenever I drag and drop a radchart control onto a page in my project I get a box in the designer that says "Error Creating Control - RadChart1 Object reference not set to an instance of an object.

What are the steps I can take to resolve this? It seems to happen on any page I put the control on in my project.
Ves
Telerik team
 answered on 16 Jul 2010
3 answers
86 views
I have RadGrid on a page the is not ajaxified (for a reason).  The page Mode is set to "NextPrevAndNumeric".  Clicking on the Numeric page buttons work, but the Next and Previous buttons do not.  When I click on them, they throw the error "Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> ..."  I set enableEventValidation="false" (just to test), and the error goes away, but the buttons do nothing.

I created a simple version to demonstrate. (remember, there is no RadAjaxManager or RadUpdatePanel on the page)

<head runat="server">
      
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server"></asp:ScriptManager>
        <telerik:RadGrid ID="theGrid" runat="server" AutoGenerateColumns="false" 
            OnNeedDataSource="theGrid_NeedDataSource"
            EnableViewState="false" AllowPaging="true">
            <MasterTableView PageSize="25">
                <PagerStyle AlwaysVisible="true" Position="Top" 
                    Mode="NextPrevAndNumeric" />
                <Columns>
                    <telerik:GridBoundColumn HeaderText="Col1" DataField="Col1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Col2" DataField="Col2">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
          
        </telerik:RadGrid>
      
    </form>
</body>
</html>

Code Behind:
protected void theGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            DataTable tbl = new DataTable();
            tbl.Columns.Add("Col1", typeof(string));
            tbl.Columns.Add("Col2", typeof(string));
  
  
            for (int i = 0; i < 50; i++)
            {
                tbl.Rows.Add(i.ToString(), i.ToString());
            }
            theGrid.DataSource = tbl;
        }
Pavlina
Telerik team
 answered on 16 Jul 2010
1 answer
126 views
hi

I have layout my 3 buttons in a single table row.

But when i apply Ajaxmanager on them, they just seems to align themselve on top of each other. How do I solve this? Thanks
Dimo
Telerik team
 answered on 16 Jul 2010
1 answer
105 views
Hi
  I have added a custom css file in editor like this

 

<CssFiles>

 

 

<telerik:EditorCssFile Value="StyleSheet/user_override.css" />

 

 

</CssFiles>

 


css file contains this
h1
{color: Red;}

now in format block dropdown "Heading 1" is still displaying black color but on selection in design it displays red color.

How can I simulate the custom css class to reflect in FormatBlock Dropdown ?


any suggestions would be highly appreciated.

Thanks
Rizwan Bashir


Rumen
Telerik team
 answered on 16 Jul 2010
3 answers
100 views
Hi,

I have written some code that will parse a string and render any ASP.NET controls within it (using Page.ParseControl). This is working nicely and I am able to use RadEditor in source mode to edit the strings such as this:

Hello World, here is a button: <asp:button id="btnTest" runat="server"></asp:button>

When I switch to design or preview mode though, I don't see anything. This is as expected but I would like to customise RadEditor so that a snippet of HTML is displayed to let the user know it is still there. Is this possible? I was thinking about a filter but as far as I understand it these permanently clean up the source, whereas I want to change what is shown depending on the view whilst preserving the source.

I would also ideally like to do is add ASP.NET control declarations via the UI. I think the right way to do this is probably to use a custom dialog, is that a good starting point?

Thanks in advance for any help and advice,

Richard.
Rumen
Telerik team
 answered on 16 Jul 2010
4 answers
122 views
Hello,

I was looking at using a dropdownlist inside of one of the columns in a radgrid to launch commands from, such as  edit row - View details - Delete - Options...etc

I've successfully added the dropdownlist to my columns and I've been able to find the dropdownlist in my radgrid's ItemCreated event (and while attempting to make it work, the ItemDataBound event) , i've even  been able to attach my dropdownlists .selectedindexchanged event to a method that i have created.  

But no matter what i do it just won't fire the event.  Is there something blocking my event?  Or should this method work and I am just implementing it wrong? 

Thanks,
Steve
Mira
Telerik team
 answered on 16 Jul 2010
1 answer
84 views
Hi,

i have a page to insert, edit, update my user in the database.
Therefore i use a radgrid with an inform usercontrol for the editform and to insert a new user.
It already worked editing, but it wont work now...

I get an out of range exception, which gets created because of following code:

to get to the editform i call the codebehind via a click event with a "context" radmenu working fine.

radGridUser.Items[pIndex].Edit = true;

the index is correct, but when i watch the radGridUser for the Items the count is always one below the pIndex (the selected griditemindex).

after enabling Item.Edit i just do: radGridUser.Rebind()

which also works fine in all other grids of my websolution.

are there any ideas or known issues?
How is the grid able to loose its items?

Also i watched the RadGridUser_NeedDatasource eventmethod, which gets called correctly befor the grid sets the Items.Edit property.

thx Mario
Mario
Top achievements
Rank 2
 answered on 16 Jul 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?