Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hi,

Let say I have few items in my radcombobox
Item1
Item2 ---> Selected
Item3

New Input value: Item 3
On Submit -- Must select Item 3.. 
But Item2 remain selected

foreach

 

(RadComboBoxItem item in rdCboStaff.Items)

 

{

 

    if (newvalue == item.Value)

 

        item.Selected =

true;

 

}

What is missing here?

Thanks
Mihir.

Princy
Top achievements
Rank 2
 answered on 07 Jun 2010
1 answer
448 views
I'd like to programmatically change the radgrid column header (depending on user culture). In my database I have the translation of words to use for each column uniquename.
To do the translation I use the radgrid_columncreated event.

    protected void RadGridTraduzione_ColumnCreated(object sender, GridColumnCreatedEventArgs e)  
    {  
        string c = e.Column.UniqueName;  
 
        GridColumn boundColumn = e.Column as GridColumn;   
 
        if (boundColumn.UniqueName == "Maschera")  
        {  
            switch (((SessionInformation)Session["sessionData"]).IdCultura)  
            {  
                case 1:  
                    //boundColumn.HeaderText = ...;  
                    break;  
                case 2:  
                    //boundColumn.HeaderText = ...;  
                    break;  
                case 3:  
                    break;  
                case 4:  
                    break;  
            }  
        }  
    } 

I have the problem that e.Column.UniqueName is "ExpandColumn" for all my bound data columns, how can I access the .aspx specified UniqueName?
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2010
3 answers
319 views
Hello,

I have a RadListBox which has a number of CheckBoxes and other controls in an ItemTemplate. Since migrating from 2009 Q3 to 2010 Q1, I've realized that the state of the CheckBoxes is no longer being maintained on PostBack.

Initially I created a small separate project to try and isolate the problem, but realised when I switch back to 2009 Q3, then the state is being maintained as expected.

Is this a known issue? Is there a work around?

Thanks,

David
Genady Sergeev
Telerik team
 answered on 07 Jun 2010
1 answer
232 views
Hi all;
I'm trying to do a charcter counter on the RadEditor control, right now the one we have does allow you to type more the the specified maxlength. once you try to post the data then it pops up the message.

Is there a way to stop user typing more then the max length? also when user tryo to paste more data is there a way to tell him that its over the limit?

Thanks
Roomi
Princy
Top achievements
Rank 2
 answered on 07 Jun 2010
3 answers
131 views
Hi All,

I need to bind grid with a one more field like FileName and Size. Is it possible ?

I need to add a field with description name which is a provided by database table field and i want to add this field with Filename and Size.

I am using  DBContentProvider : FileBrowserContentProvider type provider.

Could you please help me ?

Thanks a lot in advance.

Fiko
Telerik team
 answered on 07 Jun 2010
1 answer
173 views
Does anyone know of a way to sort the treeview nodes...besides sorting them before returning them from the provider.
Dobromir
Telerik team
 answered on 07 Jun 2010
1 answer
141 views
Hello,

I have been trying to find something about how we can export some string data to a pdf file but not able to find any thing,

I am using RadControls in my application and I wonder if is there any option available to export some string base data to a pdf file.

I figured out Telerik.Pdf.PdfDocument, but I dont know how it works and how i can use this to create pdf file, even not sure it it is the class I am looking for.

Please help me, If you have some coding hints that would be greate but not required.
Daniel
Telerik team
 answered on 07 Jun 2010
1 answer
73 views
Hi: I am attempting to follow the example exactly as listed on: http://demos.telerik.com/aspnet-ajax/grid/examples/styles/selectedrowstyle/defaultcs.aspx

I have a RadGrid with the default theme. For testing I changed it to Web20 to match the example exactly. I want to set the selected row style to have no background image but a background color of dark grey.

My markup looks like:

 <telerik:RadMenu runat="server" ID="NotificationRadMenu" Skin="Sitefinity"  EnableShadows="true" DefaultGroupSettings-OffsetX="-210">  
            <Items> 
                <telerik:RadMenuItem Visible="false" Value="label" Enabled="false"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Value="TemplateHeader">  
                    <ItemTemplate> 
                        <asp:Label ID='AlertNoticeNumber' CssClass='AlertNoticeNumber' runat="server" Text="Label" Visible="false"></asp:Label> 
                    </ItemTemplate> 
                    <Items>                          
                        <telerik:RadMenuItem CssClass="AlertMenuItem" Value="TemplateColumn">  
                            <ItemTemplate> 
 
                            <div class="AlertMenuItemContainer">  
                            <Telerik:RadGrid RegisterWithScriptManager="true" ID="StudentCheckListRadGrid" AutoGenerateColumns="false" runat="server" AllowSorting="true" 
                              AllowPaging="false" ShowHeader="false" PageSize="10" Width="100%" BorderWidth="0" ItemStyle-BackColor="#E8E8E8" AlternatingItemStyle-BackColor="White" 
                              ClientSettings-EnableRowHoverStyle="false" OnSelectedIndexChanged="StudentCheckListRadGrid_SelectedIndexChanged" 
                              ClientSettings-EnablePostBackOnRowClick="true" ClientSettings-Selecting-AllowRowSelect="true" Skin="Web20">   
                                <MasterTableView AllowMultiColumnSorting="true" AutoGenerateColumns="false" ForeColor="#4B4B4B" Font-Names="Tahoma,Arial,Verdana" Font-Size="11px">  
                                <Columns> 
                                    <Telerik:GridBoundColumn DataField="TaskNameCheckList" HeaderText="TaskNameCheckList"></Telerik:GridBoundColumn> 
                                    <Telerik:GridBoundColumn Visible="false" DataField="TaskAssociatedUserControlCheckList" HeaderText="TaskAssociatedUserControlCheckList"></Telerik:GridBoundColumn> 
                                </Columns> 
                                </MasterTableView>    
 
                                </telerik:RadGrid> 

I then created a Css entry

tr.SelectedRow_Web20 td  
{  
     background-color: red;  
     background-image: none;  
     padding-right: 17px;  

The row style DOES NOT CHANGE when selected. I also noticed that when I use the <SelectedItemStyle BackColor="red" /> it works okay, but when I tried <SelectedItemStyle CssClass="RedClass" /> it does not import the styles. This method would work okay if it would allow me to remove the background image. Thanks!
Mira
Telerik team
 answered on 07 Jun 2010
1 answer
98 views
Hi,

you can raise it on demo page of radscheduler with entitydatasource,  ( http://demos.telerik.com/aspnet-ajax/scheduler/examples/entitydatasource/defaultcs.aspx )

- Create a new appointment with recurrence
- Try to delete only one occurrence.

Is there a knowed solution ?

Thanks,
@loys
T. Tsonev
Telerik team
 answered on 07 Jun 2010
3 answers
144 views
I've developed an application with telerik controls. My simple form having only two text boxes and a radgrid with only 2 columns take 8sec to load and on each post back request this time increases. even if i only refresh the page again and again its loading time increases.
i have some very large forms which have a no of controls with 2 or 3 grids and this issue become so worst there
while we see demo of Telerik its speed is good i dnt know what i am missing
i m using shared hosting application is running with good speed locally but have very slow performance on shared or dedicated host. i check it on both host
i think i have some thing missing
I've added the radScriptManager  to the page.
I have set debug mode=false in web.config 
but ..does not seem to help.
Please help me for performance issue as soon as possible
Pavlina
Telerik team
 answered on 07 Jun 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?