Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
216 views

Folks,

Environment Radgrid for Asp.net Ajax 2010_2_826, VS 2008 SP1.

In my Radgrid I have 3 columns. Salary,  ExperienceDifferential and GrossSalary (CalculatedColumn).

I would like to have that CalculatedColumn be populated with the sum of columns Salary and ExperienceDifferential whether these 2 columns are null or not. What I noticed if ExperienceDifferential is null, the CalculatedColumn does not populate, but if ExperienceDifferential is not null CalculatedColumn does populate. Question is in order for CalculatedColumn to work, does other related columns must be not null?

Below is my column declarations and attached is the result set.

Thanks

GC_0620
___________________

<telerik:GridTemplateColumn DataField="Salary" DataType="System.Decimal" HeaderText="Salary"
                  SortExpression="Salary" UniqueName="Salary">
                  <ItemTemplate>
                      <asp:Label ID="SalaryLabel" runat="server" Text='<%# Bind( "Salary","{0:N2}") %>'></asp:Label>
                  </ItemTemplate>
              </telerik:GridTemplateColumn>

              <telerik:GridBoundColumn DataField="ExperienceDifferential" DataType="System.Decimal"
                  DataFormatString="{0:N2}" HeaderText="Experience Differential" SortExpression="ExperienceDifferential"
                  UniqueName="ExperienceDifferential">
              </telerik:GridBoundColumn>

              <telerik:GridCalculatedColumn DataType="System.Decimal" DataFormatString="{0:N2}"
                  DataFields="Salary,ExperienceDifferential" Expression="{0}+ {1}" HeaderText="Gross Salary"
                  UniqueName="GrossSalary" Aggregate="Sum">
              </telerik:GridCalculatedColumn>


gc_0620
Top achievements
Rank 1
 answered on 06 Oct 2010
2 answers
93 views

In my button Save event, I have to ask the user if they have something else to do before they proceed with the save. The below js seems to execute, but doesn't return back to the event (and proceed) if I choose Cancel and I don't get my screen back if I answer OK. Am I doing something incorrect with the function?

Here is my server side code inside the Save button event:

<code>

if (tsPatientDemographics.SelectedTab.Text == "Pri Ins")
            {
                String s = "Sec_Ins()";
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Secondary Insurance?", s, true);
            }

</code>

Here is my js code:

<code>

function Sec_Ins() {

    if (confirm("Is there Secondary or Tertiary Insurance information available?") == true) {
        selectSecTab();
        return false;
    }
    else
        return true;
}

function selectSecTab() {
    var tabStrip = $find("<%= tsPatientDemographics.ClientID %>");
    var tab = tabStrip.findTabByText("Sec Ins");
    tab.select();
}

</code>

Bill
Top achievements
Rank 2
 answered on 06 Oct 2010
3 answers
361 views
I have a column that will show dollar amounts in the millions.  I want the data to display with comma separators.  The underlying data is stored as an integer ( although this is not cast in stone and can be made to be decimal if need be ).  If I use a GridMaskedColumn, I get the thousands separators, but it gives an error on the input type when I try to save it.  I'm using the autogenerated edit forms for this.  The mask is "###,###,###".  So I guess I need to get the data and convert it back to integer to save it.  Where do I go to cast this back to an integer?  Thanks.
Marin
Telerik team
 answered on 06 Oct 2010
3 answers
143 views
hi,

i have a task regarding to radgrid itemtemplate

i have normal rad grid showing data with ability to edit, update, cancel oporations inside formtemplated HTML table

I have 2 imageButtons btnEdit, btnView (wich i have problem with)

these 2 oporational buttons inside itemtemplated column 
the problem is that both buttons open the html table formTemplate inside the grid wich has 2 image buttons for save and cancel

i have to hide update imageButton inside the table in case of preesing View image button and to show it again in case of pressing Edit

here is HTML code for templateColumn

<

 

telerik:GridTemplateColumn AllowFiltering="False"

 

 

 

 

 

UniqueName="DeleteColum">

 

 

<HeaderTemplate>

 

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<table width="100%">

 

 

<tr align="center">

 

 

<td>

 

 

<asp:ImageButton ID="btnEdit" runat="server" CausesValidation="False"

 

 

CommandName="Edit" ImageUrl="~/RadControls/Grid/Skins/Default/Edit1.gif"

 

 

ToolTip="Edit" />

 

 

</td>

 

 

<td>

 

 

<asp:ImageButton ID="btnView" runat="server" CausesValidation="False" Visible="true"

 

 

CommandName="View" ImageUrl="~/RadControls/Grid/Skins/Default/view.gif"

 

 

ToolTip="View" />

 

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 


please note y=that the event

rgActions_ItemDataBound

doesnt fire when user press on btnView

changing the attribute CommandName="View"  to CommandName="Edit" enable this action to fire

any Idea,

regards
Marin
Telerik team
 answered on 06 Oct 2010
1 answer
72 views
The showcase page is great and shows how you can do very clever things decllaratively but I always end up using a not so clever way but easier to understand way...

What would be nice is a collection of demos that am done in a less clever way... I was looking for a extremely easy sample that shows a master grid and detail grid but all the examples I found were doing that and more..  

Does that make any sense?


Or a good example app that use things in  a more understandable beginner sort of style.

Vasil
Telerik team
 answered on 06 Oct 2010
4 answers
94 views
Hi,
We are trying 'RadControls for Asp.Net Ajax'.
Our project architecture is mentioned below and all layers are on different servers.
- Application Server
- WebService(s) Server
- Database Server
Application/ Presentation layer is communicating with the Webservices and Webservices/ Webmethods then communicating with the Database via tiered architecture. We will be dealing with lakhs of records in various modules/ sections of the application. Our worry is, how teleric grid will be handling such a huge data for Filtering/ Sorting/ Paging etc.
Can you please provide suggestions/ details considering above scenario?

Your help will be really appreciate.
Daniel
Telerik team
 answered on 06 Oct 2010
2 answers
119 views
Hi all!

I'm using Filter for my RadGrid. And I would like to hide it in the Edit mode.
Using AllowFilteringByColumn is not the good idea. In some cases, I still use the Filter, just want to hide it
Could anyone help me?

Thanks!

Andy.
Andy
Top achievements
Rank 1
 answered on 06 Oct 2010
6 answers
159 views
hi telerik,

      i am using asyncUpload control to upload images
after selected my image ,the above progress is rotating continuously i am not able to find what happening in behind
the on file uploaded event also not fiering

<

 

telerik:RadAsyncUpload runat="server"  ID="RadAsyncUpload1" OnFileUploaded="RadAsyncUpload1_FileUploaded">

 

 

</telerik:RadAsyncUpload>

  

 

Genady Sergeev
Telerik team
 answered on 06 Oct 2010
12 answers
421 views
Hi
Is there a way to enable date range selection in the calendar?
when the user clicks on 2 dates I want to select all dates between the 2 dates selected.  I can handle it in the ondateselected but that causes a calls to the dateselected handler as each date is selected (the remove_dateselected() method does not seem to remove the handler)

thanks

Jean-Pascal van der Endt
Top achievements
Rank 1
 answered on 06 Oct 2010
1 answer
78 views
Is there a way to set the datasource of a radgrid equal to its current data in the loaded radgrid for when the needdatasource event fires for sorting purposes?  I am trying to avoid having to call the sql server every time a sort is requested.  I am working in vb.  Thanks.
Pavlina
Telerik team
 answered on 06 Oct 2010
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
Andrey
Top achievements
Rank 1
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
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?