Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
259 views
New to Rad

Is there a way to show progress indicator when uploading using the fileexplorer upload option?

thanks
John Dutchak
Top achievements
Rank 1
 answered on 02 Sep 2009
7 answers
374 views
Hi,

I have developed my application using trial verstion, My company bought the license for the telerik suit.
What are the tags I need to add to my web.config file to make sure controls are reigstered?
How will you sending the product Key (will this be shipped in a mail along with order ? or with download pack of controls).

Thanks inadvance. 

Thank you,
Sreedhar
Vlad
Telerik team
 answered on 02 Sep 2009
4 answers
264 views
Hi,

Since I modified my needdatasourceevent to

 

protected void rgMissingJourneys_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

 

DataTable gridDataTable = GetData();

 

rgMissingJourneys.DataSource = gridDataTable.Select(

"update_ind = 0");

 

}


my grid started behaving strangely or sort/filter operations. Sometimes it does not show up any record, and sometimes it comes up with an error message of "Index 10 is either negative or above rows count". I am using RadControls v 2009.1.402.20.

Any help?

Regards,
Saurabh
Veli
Telerik team
 answered on 02 Sep 2009
2 answers
51 views

Hi,
After click on 'Save' button in my screen, I will need to clear the content in the 2 textboxes.
But once I did that, the 2 textboxes looks abit different.
I really don't know how come the 2 textboxes will have a big gap after I cleat the content.
Please help.

Here is the print screen - Before Image and After Image.

Here is the code.
ASPX
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" >
</telerik:RadAjaxLoadingPanel>

 

 

 

 

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableEmbeddedScripts="true" LoadingPanelID="RadAjaxLoadingPanel1">

 

 

<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="btnSave">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="txtCardGroupName" />

 

 

<telerik:AjaxUpdatedControl ControlID="lblCardGroupName" />

 

 

<telerik:AjaxUpdatedControl ControlID="txtCardGroupNumber" />

 

 

<telerik:AjaxUpdatedControl ControlID="lblCardGroupNumber" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

</telerik:RadAjaxPanel>

 

CS
txtCardGroupNumber.Text = string.Empty;

 

 

 

txtCardGroupName.Text =

string.Empty;

 

 

 

 

 

Wai Loon Ho
Top achievements
Rank 1
 answered on 02 Sep 2009
1 answer
64 views
We have a grid in which we have some columns with textbox or checkbox controls.

In the radGrid.ItemCreated Event we add handlers for the "TextChanged" and "CheckChanged" events of these controls pointing to a custom written ItemChanged sub routine which processes the data changes.

A problem we've recently discovered is that if the client sorts multiple columns without waiting for the sort to complete these events appear to fire causing unintended data changes.  The user hasn't actually changed the text or the checkbox, yet the event fires.

Can anyone advise why this might be happening?  I'm happy to provide more specific information but I'm not really sure where to begin.  It seems as though perhaps the controls on the page don't get disposed between sorts but their data is updated which perhaps is what causes the event to fire but really I have no idea.

Thanks!
Justin Heath
Top achievements
Rank 2
 answered on 01 Sep 2009
2 answers
80 views
Hi,

I am trying to access a dropdown call "DropdownlistOuter" so I can attach a data source to it AFTER a row is put in edit mode. 
How do I get a handle to this control at run time when the Edit link is pressed.

Thanks!

Suresh

Here is the relevant aspx script.

 

<telerik:RadGrid ID="RadGridEmpData" runat="server" Width="800px" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" Height="200px" PageSize="2" ShowGroupPanel="True" >

 

 

<ClientSettings AllowDragToGroup="True">

 

 

<Scrolling FrozenColumnsCount="4"/>

 

 

</ClientSettings>

 

 

<MasterTableView>

 

 

<columns>

 

 

<telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>

 

 

<telerik:GridImageColumn ImageUrl="IMAGES/add_icon.gif" ImageHeight="" ImageWidth="" UniqueName="column" ></telerik:GridImageColumn>

 

 

<telerik:GridBoundColumn

 

 

DataField="EmployeeNo"

 

 

DataType="System.DateTime"

 

 

HeaderText="Employee No"

 

 

SortExpression="EmployeeNo"

 

 

UniqueName="EmployeeNo">

 

 

<ItemStyle Width="120px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn SortExpression="EmployeeNo" DataField="EmployeeNo" HeaderText="EmployeeNo" UniqueName="TemplateColumn">

 

 

<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:GridTemplateColumn SortExpression="Site" DataField="Site" HeaderText="Site" UniqueName="Site">

 

 

<ItemTemplate>

 

 

&nbsp;<asp:DropDownList ID="DropDownList1" runat="server">

 

 

</asp:DropDownList>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn SortExpression="EmployeeName" DataField="EmployeeName" HeaderText="EmployeeName" UniqueName="EmployeeName">

 

 

<ItemTemplate>

 

 

&nbsp;<asp:textbox ID="TextBoxEmployeeName" runat="server">

 

 

</asp:textbox>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="EmployeeNo" DataType="System.Int64" HeaderText="Employee No" SortExpression="EmployeeNo" UniqueName="EmployeeNo"><ItemStyle Width="120px" /></telerik:GridBoundColumn>

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

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

 

 

</columns>

 

 

<EditFormSettings EditFormType="Template" >

 

 

<FormTemplate >

 

 

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

 

 

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

 

 

<tr class="EditFormHeader">

 

 

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

 

 

<b>Employee Details</b></td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2">

 

 

<b>Company Info:</b></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

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

 

 

<tr>

 

 

<td>

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Country:

</td>

 

 

<td>

 

 

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

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

City:

</td>

 

 

<td>

 

 

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

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Region:

</td>

 

 

<td>

 

 

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

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Home Phone:

</td>

 

 

<td>

 

 

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

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Birth Date:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind( "EmployeeNo") %>' TabIndex="4">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Title Of Courtesy

</td>

 

 

<td>

 

<%

-- <asp:DropDownList ID="DDLTOC" runat="server" SelectedValue='<%# Bind("EmployeeNo") %>'

 

DataSource='<%# (New string() { "Dr.", "Mr.", "Mrs.", "Ms." }) %>' TabIndex="7"

AppendDataBoundItems="True">

<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>

</asp:DropDownList>--

 

%></td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td>

 

 

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

 

 

<tr>

 

 

<td>

 

Notes:

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<asp:TextBox ID="TextBox1" Text='<%# Bind( "EmployeeNo") %>' runat="server" TextMode="MultiLine"

 

 

Rows="5" Columns="40" TabIndex="5">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Address:

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<asp:TextBox ID="TextBox6" Text='<%# Bind( "EmployeeNo") %>' runat="server" TextMode="MultiLine"

 

 

Rows="2" Columns="40" TabIndex="6">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td colspan="2">

 

 

<b>Personal Info:</b></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

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

 

 

<tr>

 

 

<td>

 

FirstName:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBox2" Text='<%# Bind( "EmployeeNo") %>' runat="server" TabIndex="8">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Last Name:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBox3" Text='<%# Bind( "EmployeeNo") %>' runat="server" TabIndex="9">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Hire Date:

</td>

 

 

<td>

 

 

<asp:TextBox ID="Textbox5" Text='<%# Bind( "EmployeeNo") %>' runat="server" TabIndex="10">

 

 

</asp:TextBox></td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Title:

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBox4" Text='<%# Bind( "EmployeeNo") %>' runat="server" TabIndex="11">

 

 

</asp:TextBox></td>

 

 

<td>

 

 

<asp:DropDownList Enabled="true" ID="DropDownListOuter" runat="server">

 

 

</asp:DropDownList>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td align="right" colspan="2">

 

 

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

 

 

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

 

 

</asp:Button>&nbsp;

 

<

 

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

 

CommandName

 

="Cancel"></asp:Button></td>

 

 

</tr>

 

 

</table>

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

Suresh Mishra
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
60 views

my from is below.    on submit i would like to gather all the values from checkbox1
it comes from a database.    the idea is to  get all the items that the user keeps checked.





<

 

telerik:RadGrid ID="RadGrid1" runat="server"

 

 

DataSourceID="SqlDataSource1" GridLines="None" Skin="Sunset">

 

 

<MasterTableView autogeneratecolumns="False"

 

 

datasourceid="SqlDataSource1">

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText=""

 

 

UniqueName="TemplateEditColumn">

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="CheckBox1" runat="server" Checked="True"></asp:CheckBox>

 

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="item" HeaderText="Accessories"

 

 

SortExpression="item" UniqueName="item">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="description" HeaderText="Description"

 

 

SortExpression="description" UniqueName="description">

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"

 

 

Wrap="True" />

 

 

</telerik:RadGrid>

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:wmConnectionString %>"

 

 

SelectCommand="wmUMEquipTableBySerial" SelectCommandType="StoredProcedure">

 

 

<SelectParameters>

 

 

<asp:QueryStringParameter DefaultValue="" Name="serial" QueryStringField="ID"

 

 

Type="String" />

 

 

</SelectParameters>

 

 

</asp:SqlDataSource>

 

 

<br />

 

Other options that you have installed

<br />

 

 

&nbsp;<asp:TextBox ID="TextBox1" runat="server" Width="610px" Height="122px"

 

 

TextMode="MultiLine"></asp:TextBox><br /><br />

 

 

<asp:CheckBox ID="CheckBox2" runat="server"

 

 

Text="Send me information about my trade-in options" /><br />

 

 

<asp:CheckBox ID="CheckBox3" runat="server"

 

 

Text="Send me information about consigning my mill on this website" /><br /><br />

 

 

<asp:Button ID="Button1" runat="server" Text="Submit" />&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />

 

giani
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
114 views
Hi,
I've noticed that TextChanged event is fired server side if I change modes (from Design to HTML) and do nothing else.
This gives the impression that there has been change to the content, but there hasn't.
Is there any way to address this?

Thanks!!


VF
Top achievements
Rank 1
 answered on 01 Sep 2009
1 answer
133 views
Hi,

I have a page with a single vertical splitter separating two RadPane's. The left hand pane has these settings:

<telerik:RadPane ID="LeftPane" runat="server" Width="250"

The Splitter has these settings:

<telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" /> 

The right Pane has these settings:

 <telerik:RadPane ID="ContentPane" runat="server" > 

At the moment, the left pane houses a TreeView menu, sometimes the width of the menu exceeds the default 250px width setting of the pane, causing a horizontal scrollbar to appear, as can be seen in the following screenshot:

View Splitter Screenshot

What i'd prefer would be is if the splitter could increase in width to accommodate the full width of the treeview, an auto re-size if you will. I have tried removing the left RadPanes width setting, but this results in the starting width being 50% of the screen, which is far to wide.

Does anyone know if this is possible, either as an available setting or through CSS?

Thanx in advance.
Mr. Plinko
Top achievements
Rank 1
 answered on 01 Sep 2009
4 answers
152 views
Hi,

I have a very basic setup.

A very simple grid within a usercontrol.
I get a "Failed to load viewstate" error on every possible postback: paging, sorting, changing the pagesize...

I can't see any reasson for this, as I'm using grids in other usercontrols within the same project without any such problems.
I'm using Q1 2009 by the way.

I've tried disabling the viewstate in both the grid and the usercontrol, with no luck. If I disable the viewstate in the page the error goes away but I actually need that viewstate for other parts of the page.

Any thoughts on a solution?

Regards,
-DJ-

Pavlina
Telerik team
 answered on 01 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?