Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
276 views
How do I add text to the generated text boxes for this column. The check boxes show up fine and work as expected, I just want text next to them. This includes the header. I set the header text property but that doesn't seem to do anything.

Here is the definition for the column.

                        <telerik:GridClientSelectColumn DataTextField="Id" HeaderText="Select All"  
                            HeaderAbbr="Select All" HeaderButtonType="TextButton"  
                            HeaderTooltip="Select/Deselect All" Text="Select" /> 
 

Don
Don
Top achievements
Rank 1
 answered on 19 Mar 2010
1 answer
83 views
Hello experts,

I am new to telerik controls. I am currently architecting the web application that has a very fat page(450kb)  Lots of controls and editor controls on one page. For modularilty and ease of maintainence i have divided the page into user controls.

There are two approach i am considering at this moment


Tabs (Around 7 tabs)  with a preview in popup/pane
Pros: User Control loaded dynamically on each page click. So consistent performance for each tab
Cons:
  • Previewing is an issue. Since there are lot of controls in each user control i cannot display preview pane. It has to be popup and it is not good user experience.
  • Data management. The POCO object should be state managed to move around each tab.

    OR
    All the controls on one page in seperate ajax panels and will load independently of each other.

Please share your experience or suggestions for best design alternatives with excellent performance.  The application will one over secured socked layer and middle tier is loosely coupled with the front end.

Any sample application is greatly appreciated.

Regards
Mac

Iana Tsolova
Telerik team
 answered on 19 Mar 2010
2 answers
403 views
Hello,

How can i enable / disable combobox using javascript ?

Prayag
Kalina
Telerik team
 answered on 19 Mar 2010
2 answers
1.6K+ views
Hello,

How I can clear combobox items using javascript ?

Prayag
Kalina
Telerik team
 answered on 19 Mar 2010
1 answer
77 views
Hi,
i wanted to Disable Scheduler control in some cases with setting property  radScheduler.Enabled = false.
It works fine in the IE, but not in the FF.

Is there some hack how could I solve this problem?
thanks a lot for the answers.
Peter
Telerik team
 answered on 19 Mar 2010
3 answers
132 views
How can i request a value from a row serverside on a imagebutton click event ?

<telerik:GridTemplateColumn UniqueName="ArtID" DataField="ID" InitializeTemplatesFirst="false" ItemStyle-Width="20px" AllowFiltering="False"
                    <ItemTemplate> 
 
                        <a href="write_articletomodule.aspx?ArtID=<%#Eval("ID")%>&ModID=<%#request("ModID")%>&CatID=<%#request("CatID") %>&action=add"><img src="/admin/images/contextmenus/add.png" alt="Add" /></a> 
   
                     </ItemTemplate> 
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" /> 
                </telerik:GridTemplateColumn>   

Now i have a html redirect to a page.
But i want to send these values to serverside on this page.

Anyone have an idea ?
Veli
Telerik team
 answered on 19 Mar 2010
4 answers
248 views
I have a customer that is looking for a custom aggregate in the footer using a GridCalculatedColumn.  As you can see from the attached image I am trying to take the following cells

(0.0732 * 61997914 / 111,335,022) = 0.0408
(0.0681 * 28971917 / 111,335,022) = 0.0177
(0.0719 * 20365191 / 111,335,022) = 0.0132
                                                            -----------
                                                            0.0716

How can I access the 111,335,022 if it is in the footer of a grouped column while performing this calculation at runtime and come up with the 0.0716 instead of the 0.0711 which is a straight average?

Is it possible to get these values in the ItemDataBound, if so I would have to distinguish them by the grouped columns.
Mike
Top achievements
Rank 1
 answered on 19 Mar 2010
6 answers
263 views
Hi!
We currently use telerik RadEditor.
We having problem with target =" " problem in image maps.
When we use image maps and use target = blank it works fine and the html is set.
Problem is when we hit published the html code removes.

Before published:
<map id="rade_img_map_1250067357261" NAME="rade_img_map_1250067357261">
<area shape="rect" coords="101,70,164,114" href="http://www.test.no" shape="RECT" target="_blank" coords="101,70,164,114" /></map>
After published:
<map id="rade_img_map_1250067357261" name="rade_img_map_1250067357261">
<area shape="rect" coords="101,70,164,114" href="http://www.test.no" shape="RECT" coords="101,70,164,114" /></map>

as you see the html code: target="_blank" is missing.
The target works fine when we only use telerik RadEditor to create links etc.
The problem is only when we use image map.

Patrick Maeschli
Top achievements
Rank 1
 answered on 19 Mar 2010
1 answer
88 views
I managed it to hides Add New Record button but only the one at the top. The other one at the bottom remains visible :(
if (e.Item is GridCommandItem) 
                    { 
                        GridCommandItem cmdItem = (GridCommandItem)RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0]; 
                        ((LinkButton)cmdItem.FindControl("InitInsertButton")).Visible = false
                    } 

Also how do i hide the delete button? I tried the next but it didn't work properly.

if (e.Item is GridDataItem) 
                    { 
                        GridDataItem item = (GridDataItem)e.Item; 
                        LinkButton editButton = (LinkButton)item.FindControl("EditButton"); 
                        editButton.Visible = false
                        //LinkButton deleteButton = (LinkButton)item.FindControl("DeleteButton"); 
                        //deleteButton.Visible = false; 
                    } 

the Edit button gets hidden but the delete throws an exception "Object reference not set to an instance of an object".


Shinu
Top achievements
Rank 2
 answered on 19 Mar 2010
2 answers
112 views
Hi Telerik !

I have been using the latest RadGrid Control within my application.

I have a RadGrid in which I have a 7 columns :-

Out of which , 3 columns are GRID TEMPLATE COLUMN & all the remaing are BOUND COLUMNS

I have applied the FILTERS on to two of the GRID TEMPLATE COLUMNS , while the remaing one is for the ACTION purpose(which basically consist of the edit/delete button).

Lets say :-

Two GridTemplate Columns are :-

FILE NAME :- Iam getting the file name displayed in the column

FILE PATH:- Iam getting the full file path displayed in the column.


Also:;

I have implemented the RADTOOL tip on to both the GRIDTEMPLATE COLUMNS, so that in case my file name or file path is too long , I can see its name as an TOOL TIP.

Now since, FILTER is also implementd on to these two COLUMNS, so when I try to filter the FILE NAME & FILE PATH , Iam getting the below mentioned error :-

is neither a DataColumn nor a DataRelation for table DefaultView.

Please help how to filter these two columns ?


Below is the detailed code :-

 <Columns> 
                            <telerik:GridTemplateColumn HeaderText="File Name" UniqueName="File_Name" SortExpression="File_Name"
                                <ItemTemplate> 
                                    <asp:Label ID="AllFileNameLabel" runat="server" Text='<%# ( Eval("File_Name").ToString().Length > 20)? string.Concat(Eval("File_Name").ToString().Substring(0, 20), "...") : Eval("File_Name") %>'></asp:Label> 
                                    <telerik:RadToolTip ID="AllFileNameRadToolTip" TargetControlID='<%# ( Eval("File_Name").ToString().Length > 20)? "AllFileNameLabel" : "" %>' 
                                        Width="400px" Height="250px" Text='<%# Eval("File_Name") %>' ManualClose="false" 
                                        ContentScrolling="Y" runat="server"
                                    </telerik:RadToolTip> 
                                </ItemTemplate> 
                                <HeaderStyle HorizontalAlign="Center" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="File Path" UniqueName="File_Path" SortExpression="File_Path"
                                <ItemTemplate> 
                                    <asp:Label ID="AllFilePathLabel" runat="server" Text='<%# ( Eval("File_Path").ToString().Length > 20)? string.Concat(Eval("File_Path").ToString().Substring(0, 20), "...") : Eval("File_Path") %>'></asp:Label> 
                                    <telerik:RadToolTip ID="AllFilePathRadToolTip" TargetControlID='<%# ( Eval("File_Path").ToString().Length > 20)? "AllFilePathLabel" : "" %>' 
                                        Width="400px" Height="250px" Text='<%# Eval("File_Path") %>' ManualClose="false" 
                                        ContentScrolling="Y" runat="server"
                                    </telerik:RadToolTip> 
                                </ItemTemplate> 
                                <HeaderStyle HorizontalAlign="Center" /> 
                            </telerik:GridTemplateColumn> 


Ajay
Ajay
Top achievements
Rank 2
 answered on 19 Mar 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?