Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
257 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
273 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
96 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
130 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
5 answers
182 views
Hello,

ist it possible to use the RadEditor (i'm currently testing the light version) with the Infopath Formservices on a Sharepoint Server ?

Thanks for any help.
Stanimir
Telerik team
 answered on 19 Mar 2010
5 answers
302 views
Hi,

I want to know wether we can use the MOSS Telerik Editor as Default Editor for the wss site.

Thanks,
Srinivas
Stanimir
Telerik team
 answered on 19 Mar 2010
1 answer
147 views
We want  to schedule appointment using Rad scheduler on user basis and save it in a database . When a appointment date and time is reached we want to send a email to user  reminding the appointment .

  We want a system to run and keep on sending email for every appointment on recurring basis . 

How can this be done . Can you please send me a example .


Peter
Telerik team
 answered on 19 Mar 2010
1 answer
88 views
Hi ,

This is shanker,  I am doing one project . I am using two datepickers in radgrid control it,s fine .But I am face one error that is when i click add new record and edit button that datepickers control working only one by vise versa.How to solve that please replay of that solution  .


this is my 
 <telerik:GridDateTimeColumn DataField="start_time" HeaderText="Start Time" SortExpression="start_time" 
                        UniqueName="start_time" DataFormatString="{0:t}" PickerType="TimePicker" 
                        DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    
                    <telerik:GridDateTimeColumn DataField="end_time" HeaderText="End Time" SortExpression="end_time" 
                        UniqueName="end_time" DataFormatString="{0:t}" PickerType="TimePicker" 
                         DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    

how to solve that 

thanks regards 
shanker.B
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
1 answer
158 views
I have the following tabstring
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" OnTabClick="LoadUserControl" 
    Skin="MySkin" EnableEmbeddedSkins="false">  
    <Tabs> 
        <telerik:RadTab Text="Hello World" Value="0" width="90px">  
        </telerik:RadTab> 
    </Tabs> 
</telerik:RadTabStrip> 

If I render this to the screen, the 'Hello World' tab seems to maintain padding on the left hand side.  How do I remove this default left padding to just 0?

J
Yana
Telerik team
 answered on 19 Mar 2010
3 answers
66 views

In my requirement I have to take input from user for exception dates. so I defined it as custom attribute. but problem is that it is displaying below subject. I need to place it after Recurrence panel as it is exception dates of that particular recurred series. I am using inbuilt advance insert template. so how can I achieve it ? I am using asp.net ajax scheduler.
Peter
Telerik team
 answered on 19 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?