Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
105 views

Our team have already bought the RadControls for ASPNET AJAX .

I read the FAQ, 'the Telerik Developer License works WITHOUT license keys'.

Is this means If I have the licensed account, I can download the setup files anytime anywhere and run it on any server any domain?

How can I check if my setup files are copied by others or used on orther domains?
Airad
Top achievements
Rank 1
 answered on 03 Sep 2009
2 answers
219 views

I am using Rad Grid and one of its columns is a template column having RadNumeric Textbox of Currency type in it.
 
By default, RadGrid is disabled unless an external button is clicked to enable it. its working perfectly fine. But when that button enables the grid, all functions of grid works perfect but this RadNumeric Textbox is still disabled. If I use simple Textbox then that works perfectly fine. Moreover after simple postback/callback (like a sort or any other event that calls 
NeedDataSource event) rectify the problem and after that RadTextbox works perfectly fine. I am giving a short peek of grid structure. Please have a look and guide where I am doing wrong.

<telerik:RadGrid ID="uxProposals" Width="97%" AllowPaging="True" runat="server" AutoGenerateColumns="false" OnNeedDataSource="uxProposals_NeedDataSource" AllowSorting="true" Skin="Vista" GridLines="None" OnItemDataBound="uxProposals_ItemDataBound">

 

<MasterTableView Width="100%" AllowMultiColumnSorting="false">

   <Columns>

       <telerik:GridBoundColumn HeaderText="ProposalID" Visible="false"  DataField="ProposalID" />

<telerik:GridTemplateColumn HeaderText="Award<br/>Amount" UniqueName="TemplateColumn" ItemStyle-Width="25%" InitializeTemplatesFirst="false">

       <ItemTemplate>

           <table cellspacing="0" width="100%" style="border-style: none">

               <tr style="border-style: none">

                    <td style="border-style: none">

                        <telerik:RadNumericTextBox ID="uxAwardAmount" runat="server" MaxValue="99999999.99" Type="Currency" Skin="Vista"></telerik:RadNumericTextBox>

                        <asp:TextBox ID="uxAwardAmount_tochkProb" runat="server"></asp:TextBox>

                    </td>

               </tr>

            </table>

        </ItemTemplate>

</telerik:GridTemplateColumn>

    </Columns>

</MasterTableView>

<HeaderContextMenu Skin="Vista">

<CollapseAnimation Duration="200" Type="OutQuint" />

</HeaderContextMenu>

<ExportSettings ExportOnlyData="False" FileName="ReviewerAssignmentStatus" OpenInNewWindow="true" IgnorePaging="True"></ExportSettings>

<PagerStyle Mode="NextPrevAndNumeric" />

<SortingSettings SortedBackColor="Azure" />

<HeaderStyle Font-Bold="True" HorizontalAlign="Center" />

<FilterMenu EnableTheming="True">

<CollapseAnimation Duration="200" Type="OutQuint" />

</FilterMenu>

</telerik:RadGrid>

Himanshu Kumar
Top achievements
Rank 1
 answered on 03 Sep 2009
5 answers
704 views
Hi,
I have a form with a link. Clicking on the link, am opening a radwindow from the code behind( have to go with code behind since i have to do extra checkes before opening the window) as

Radwindow1.VisibleOnPageLoad =

true;

 

Radwindow1.NavigateUrl = url;


The radwindow popup page has a close (X) button, OK button, and a grid with a column with link.
When i click on Ok button and Links on the grid, am calling a javascript function which will close and then reload the parent page using the querystrings from the popup window.
Now when i click the close (X) button also, i need to close the window and reload the parent page but without any changes to the querystring values. I dont want to use __dopostback() coz there are other issues if i go with that method
I tried the onclientclose event, but that will be fired on all the 3 above scenarios (Close (X) button, OK button and Link click)..
so my question is, is there a way i can identify whether i had clicked the Close (X) button to close the window. So that i can check for this in my OnClientClose function and do what i require?

Any help is greatly appreciated.

Thanks

Sujith
VS
Top achievements
Rank 1
 answered on 02 Sep 2009
2 answers
90 views
Hi,

I just modified an already working RadCalendar web usercontrol from handling one Calendar instance on the UI to many via a ListView.
This brings VS2008 to almost a standstill, and VS renders the ListView with several ListItem lines in design view. Is there a lighter way of implementing the same feature.

My scenario is: Absence management.
I have an employee, and need to bring up a LIST ITEM for each of his employments. Eash LIST ITEM has a multiselect RadCalendar with special day rendering et al.

Any suggestions?
Axel
Top achievements
Rank 2
 answered on 02 Sep 2009
4 answers
418 views
Hello,

I am trying to change the color of a single data bound item within a RadListBox control, but I am not exactly sure when/where I should do this.

I tried something along these lines, but I am not getting the text Color to change.
protected void listBoxLocations_ItemDataBound(object sender, RadListBoxItemEventArgs e) 
        { 
            if (attribute) 
                e.Item.ForeColor = System.Drawing.Color.Gray; 
        } 

Does anyone know what I should do differently? (pre-render, different item attribute etc?)
Cory Hudson
Top achievements
Rank 2
 answered on 02 Sep 2009
2 answers
110 views
Hello Sir ,

 Is it possible to load the list in Radgrid Item by column If my grid contains 3 column
one Emp Name EmpNo Marks

i want
EmpName        EmpNo         Marks
Rahul               1                       45  
xyz                     7                     34  
pqr                   3                       232
skks               4                          34

and i bind this data to radgrid using databind through codebehined. And i want to show the drop down list to every column but in column 3rd Marks columns that time marks is 34 repteted two times that time it will added automatically added once time. 

 I dont want to add the Filter template option ,, Is any thing is happen with defalut filter textbox, when it focus out it will drop the list automatically  load the list of current column

Kindley please help how to achive this functionality ?


M
Top achievements
Rank 1
 answered on 02 Sep 2009
1 answer
95 views
Hi,

Had a problem with the exporting data of the DetailTable.
Found the solution on one of the forums.

Added those lines:
myGrid1.MasterTableView.HierarchyDefaultExpanded = true;
myGrid.Rebind();

Thank you very much.
Daniel
Telerik team
 answered on 02 Sep 2009
1 answer
127 views
Hi,
I am trying to access a RadEditor inside a FormTemplate.  when I examine the content property of the RadEditor, it is spaces.  Please let me know what I am doing wrong.

Thanks!

Suresh

vb Code Behind:

 

Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs)

 

 

Dim s As String

 

s =

""

 

 

For Each item As GridEditableItem In RadGridEmpData.MasterTableView.GetItems(GridItemType.EditFormItem)

 

 

If item.IsInEditMode Then

 

 

Dim objRadEditor As RadEditor

 

objRadEditor =

CType(item.FindControl("RadEditorNotes"), RadEditor)

 

s = objRadEditor.Content

 

 

End If

 

 

Next

 

 

End Sub

 



ASPX Code:

 

<ProgressTemplate>

 

 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

 

 

<asp:Image ID="ImageSearch" runat="server" ImageAlign="AbsMiddle" ImageUrl="Images/indicator_mozilla_blu.gif" />

 

Processing...

 

</ProgressTemplate>

 

 

</asp:UpdateProgress>

 

 

&nbsp;<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" Visible="true" runat="server">

 

 

<ContentTemplate>

 

 

<telerik:RadGrid ID="RadGridEmpData" runat="server" Width="800px" AllowPaging="True"

 

 

AutoGenerateColumns="False"

 

 

ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True"

 

 

GridLines="None" Height="200px" ShowGroupPanel="True" AllowFilteringByColumn="True" >

 

 

<ClientSettings AllowDragToGroup="True">

 

 

<Scrolling FrozenColumnsCount="4"/>

 

 

</ClientSettings>

 

 

<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" Height="200px" >

 

 

<columns>

 

 

<telerik:GridEditCommandColumn EditImageUrl="IMAGES/Editor.gif"></telerik:GridEditCommandColumn>

 

 

<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="EmployeeNo" DataField="EmployeeNo" HeaderText="Employee No" UniqueName="EmployeeNo">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="LinkButtonEmployeeNo" runat="server" Text='<%#Eval("EmployeeNo")%>'></asp:LinkButton>

 

<%

--<asp:LinkButton ID="LinkButton1" runat="server"><%#Eval("EmployeeNo")%></asp:LinkButton>--%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False"

 

 

DataField="ProposalVersionID"

 

 

HeaderText="Proposal Version"

 

 

SortExpression="ProposalVersionID"

 

 

UniqueName="ProposalVersionID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Site" HeaderText="Site" SortExpression="Site" UniqueName="Site"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="EmployeeName" HeaderText="Employee Name" SortExpression="EmployeeName" UniqueName="EmployeeName"><ItemStyle Width="250px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="OriginalCC" HeaderText="OriginalCC" SortExpression="OriginalCC" UniqueName="OriginalCC"><ItemStyle Width="150px" /></telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn DataField="LevelDesc" HeaderText="LevelDesc" UniqueName="TemplateColumn">

 

 

<ItemTemplate>

 

<%

# Eval("LevelDesc") %>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<custom:MyCustomFilteringColumn DataField="LevelDesc" FilterControlWidth="180px" HeaderText="Custom TemplateColumn LevelDesc" UniqueName="TemplateColumn1">

 

 

<headerstyle width="25%" />

 

 

<itemtemplate >

 

<%

# DataBinder.Eval(Container.DataItem, "LevelDesc") %>

 

 

</

 

itemtemplate>

 

 

</custom:MyCustomFilteringColumn>

 

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="CostRate" DataType="System.Decimal" HeaderText="CostRate" SortExpression="CostRate" UniqueName="CostRate"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="AssessmentDate" DataType="System.DateTime" HeaderText="AssessmentDate" SortExpression="AssessmentDate" UniqueName="AssessmentDate"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="CostRate" DataType="System.Decimal" HeaderText="CostRate" SortExpression="CostRate" UniqueName="CostRate"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="BurdenRate" DataType="System.Decimal" HeaderText="BurdenRate" SortExpression="BurdenRate" UniqueName="BurdenRate"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="LaborSchedule" HeaderText="LaborSchedule" SortExpression="LaborSchedule" UniqueName="LaborSchedule"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="LaborCategoryCode" HeaderText="LaborCategoryCode" SortExpression="LaborCategoryCode" UniqueName="LaborCategoryCode"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="ChangedUserId" HeaderText="ChangedUserId" SortExpression="ChangedUserId" UniqueName="ChangedUserId"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="EnteredBy" HeaderText="EnteredBy" SortExpression="EnteredBy" UniqueName="EnteredBy"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="Notes" HeaderText="Notes" SortExpression="Notes" UniqueName="Notes"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="Education" HeaderText="Education" SortExpression="Education" UniqueName="Education"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn AllowFiltering="False" DataField="Experience" HeaderText="Experience" SortExpression="Experience" UniqueName="Experience"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

</columns>

 

 

<EditFormSettings EditFormType="Template" CaptionDataField="EmployeeNo" CaptionFormatString="Edit Employee Number: {0}" >

 

 

<FormTemplate >

 

 

<table id="Table2" cellspacing="2" cellpadding="1" width="50%" border="1" rules="none"

 

 

style="border-collapse: collapse; background: white;">

 

 

<tr class="EditFormHeader">

 

 

<td colspan="2" style="font-size: small">

 

 

<b> </b></td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2">

 

 

<b>Employee Info:</b></td>

 

 

</tr>

 

 

<tr>

 

 

<td style="vertical-align: top; height: 248px; text-align: left">

 

 

<table id="Table6" cellspacing="1" cellpadding="1" width="200" border="0" class="module">

 

 

<tr>

 

 

<td>

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Employee No:

</td>

 

 

<td>

 

 

<asp:Label ID="LabelEmployeeNo" runat="server" Text='<%# Bind( "EmployeeNo" ) %>'>

 

 

</asp:Label></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Employee Name:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBoxEmployeeName" runat="server" Text='<%# Bind( "EmployeeName") %>' tabindex="1"></asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

CC:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind( "OriginalCC") %>' TabIndex="2">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Site:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind( "Site") %>' TabIndex="3">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Education:

</td>

 

 

<td>

 

 

<asp:Label ID="LabelEducation" Text='<%# Bind( "LevelDesc") %>' runat="server"></asp:Label></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Experience:

</td>

 

 

<td>

 

 

<asp:Label ID="LabelExperience" Text='<%# Bind( "BurdenRate") %>' runat="server"></asp:Label></td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td style="height: 248px; vertical-align: top; text-align: left;">

 

 

<table id="Table7" cellspacing="1" cellpadding="1" width="250" border="0" class="module">

 

 

<tr>

 

 

<td style="width: 600px">

 

Notes:

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td >

 

 

<telerik:RadEditor ID="RadEditorNotes" runat="server" Height="411px" Width="333px">

 

 

<Content>

 

</

 

Content>

 

 

</telerik:RadEditor>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td align="right" colspan="1" style="vertical-align: top; text-align: left">

 

 

<asp:Button ID="btnUpdate" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'

 

 

runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' BackColor="AliceBlue" OnClick="btnUpdate_Click">

 

 

</asp:Button></td>

 

 

<td align="right" colspan="2" style="vertical-align: top; text-align: left">

 

<

 

asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

 

CommandName

 

="Cancel" BackColor="AliceBlue"></asp:Button>

 

 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</FormTemplate>

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

</EditColumn>

 

 

<PopUpSettings Modal="True" />

 

 

<FormMainTableStyle Height="200px" Width="400px" />

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

 

Daniel
Telerik team
 answered on 02 Sep 2009
1 answer
106 views
Hi

How to set the focus of a text box of usercontrol which is using in on edit  item or adding  new item to grid?

I tried a solution given in link http://www.telerik.com/help/aspnet-ajax/grdsetfocusontextboxesineditcontrol.html but it's not wroking for me. when i trying to run application, showing the  that "htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Daniel
Telerik team
 answered on 02 Sep 2009
0 answers
64 views
Telerik -

I have a question regarding the TreeView / First Look Live Demo for the 2009 Q1 release of RadControls. When dragging a travel package from TreeView1 to TreeView2, the TreeNode is moved to the desired TreeView and is properly shown. However, if you drag a TreeNode from TreeView2 and place it back into TreeView1 (removing it from your favorites), the node disappears until you cause an Ajax request. Another thing I noticed is that if you try to drag a package from TreeView2 to the PriceChecker, the same thing occurs. PriceChecker does not reflect the package price unless an Ajax request occurs. The same goes for dragging from TreeView2 to the RadGrid, since there is no Ajax request fired from TreeView2 the RadGrid does not update until an Ajax Request is fired. Try dragging over multiple items from TreeView2 and placing them in the RadGrid and then move a TreeNode from TreeView1 to cause an Ajax request. All of the TreeNodes that were placed in the RadGrid from TreeView2 now appear - causing undesired results.

Wouldn't it be best to ensure that TreeNode movement from TreeView2 causes an Ajax request to update the other controls, since the drag and drop functionality appears to be there for TreeView2? IMO it would better highlight the capabilities of the controls involved.

Casey
Casey
Top achievements
Rank 1
 asked on 02 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?