Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
146 views

 

 

Hi.....

  How To Compare Two Excell File in RadGrid Any Option Is There using Teleriks RadGrid?




Thanks & Regards
Karthik

Karthikeyan
Top achievements
Rank 1
 asked on 06 Nov 2009
1 answer
149 views
Every time my code executes the selected index changed event for a radcombo box, all other controls on my page become disables temporarily. If I try to type in any of the controls on my page rigth after the selected index changed event, nothing happens until i click anywhere on the form and then back on the control. Below is my selected index changed event code:
 

if

 

(e.Value != string.Empty)

 

{

    txtItemDescription.Text =

 

string.Empty;  

 

 

    hdnItemNumber.Value = e.Value;

 

 

 

    if (e.Value != string.Empty) 

    {

 

 

        foreach (DataRow dr in GetItem(e.Value.Trim()).Rows) 

        {

            txtItemDescription.Text = dr[

 

"Description"].ToString(); 

 

 

 

 

            break

        }

    }

}

Here is my ASP.NET code:

 

 

 

 

 

<

 

table border="0" cellpadding="2">

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<asp:HiddenField ID="hdnItemMode" runat="server" />

 

 

 

 

 

Item Number:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<telerik:RadComboBox runat="server" ID="rcbItemNumber" AllowCustomText="True" EnableItemCaching="True"

 

 

 

 

 

 

EnableLoadOnDemand="True" EnableVirtualScrolling="True" OnSelectedIndexChanged="rcbItemNumber2_SelectedIndexChanged"

 

 

 

 

 

 

DataTextField="ItemNumber" DataValueField="ItemNumber" OnItemsRequested="rcbItemNumber_ItemsRequested"

 

 

 

 

 

 

MaxHeight="180px" CausesValidation="false" ShowMoreResultsBox="True" ShowWhileLoading="False"

 

 

 

 

 

 

AutoPostBack="True">

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

<asp:HiddenField ID="hdnItemNumber" runat="server" Value='<%# Bind("ItemNumber") %>' />

 

 

 

 

 

 

<asp:Label ID="lblItemsFound" runat="server" ForeColor="Red"></asp:Label>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

Description:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="top">

 

 

 

 

 

 

<asp:TextBox class="textbox" ID="txtItemDescription" Width="250px" Text='<%# Bind( "ItemDescription") %>'

 

 

 

 

 

 

TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

< tr>

 

<td>

 

 

 

 

 

Qty:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td>

 

 

 

 

 

 

<asp:TextBox class="textbox" ID="txtQty" Width="150px" runat="server"></asp:TextBox>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td>

 

 

 

 

 

Price:

&nbsp;

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td valign="middle">

 

 

 

 

 

 

<asp:TextBox ID="txtPrice" runat="server" class="textbox" Width="150px"></asp:TextBox>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

</table>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Yana
Telerik team
 answered on 06 Nov 2009
2 answers
325 views
Hi,
     I am using .Net 3.5 version.I am using RadMenuControl, for every click on menu items it was loading usercontrols in the default.aspx, In Default.aspx  i am placing placeholder in that place holder loading ascx controls.I am placing asp update panel for that place holder.
                                    Default.aspx
                                    <asp:Updatepanel > 
                                                <asp:PlaceHolder> 
                                           control1.ascx
                                            Control2.ascx
                                            Control3.ascx
                                    </asp:PlaceHolder>
                                    </asp:updatePanel>
   I am able to load the controls,but the script was always loading first control.when i view the viewsource it was always showing first page(Control1.ascx). If i remove the asp update panel it was working.My requirement is loading controls with partial post back.
mathieu cupryk
Top achievements
Rank 1
 answered on 06 Nov 2009
2 answers
92 views
Hi

I am currently in the process of evaluating the Telerik Editor control for use in a web application which needs to run on multiple web browsers on both PC and Mac.  To test the control we created a number of simple tests which were performed on each of the target platforms.

I have attached a document which lists these tests and the issues which we encountered.  Can someone comment on these issues and whether or not there are any workarounds or plans to fix the problems in any up-coming releases (with release dates if possible) ?

Thanks

Steve
Steve
Top achievements
Rank 1
 answered on 06 Nov 2009
1 answer
248 views
Hello,
I have a need to seriaize data from a RadGrid's data into XML for storage into a database field and am having trouble determining how to do this. 

Example: Imagine that you have classes for entities like People, Places, etc. that all have different types and numbers of properties and you want to serialize them to a common XML format that is "original class agnostic" and is basically just a generic representation of a collection in XML format.  Basically I have a scenario where I read data from a set of tables to populate a RadGrid with dynamically generated columns (the columns are dependent on which table the data is loaded from), then the user can add new rows and edit the existing data, then I need to save all the data that is currently in the RadGrid including the order of the rows/items into 1 field of data (e.g. one XML string that is saved to a DB field)

Using the following data as an example:
[First Name]     [Last Name]     [Age]
John                 Smith               34
Jane                 Smith               35

[Address]          [City]          [State]          [Postal Code]
123 Help St.       Chicago      IL                 60652

How could I use the RadGrid's API to serialize both types data (Person and Address) in the same way so the items are generically stored in XML as objects that can be deserialized into RadGrid items/rows and column values again later?
Vlad
Telerik team
 answered on 06 Nov 2009
1 answer
154 views
I have a radlistbox on a page and when the page loads I get this javascript error:

Sys.WebForms.PageRequestManager is null or not an object


Here is the page code:

<

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

<

 

telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">

 

Player Name:

&nbsp;<telerik:RadTextBox ID="radtxtAddPlayer" MaxLength="110" runat="server" /><asp:Button ID="btnAddPlayer" OnClick="btnAddPlayer_Click" Text="Add Player" runat="server" />

 

<

 

telerik:RadListBox ID="radlstPlayerPosition"

 

 

runat="server" height="300px" width="150px"

 

 

DataTextField="PlayerName" DataValueField="nPlayerID" AllowDelete="true"

 

 

AllowReorder="true" AllowTransfer="false" AutoPostBack="True">

 

 

</telerik:RadListBox>

 

 

 

 

</

 

telerik:RadAjaxPanel>

Any ideas why I would get this error?   adding a player works even with the error there???

 

Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
3 answers
191 views
Hello,

I have a RadGrid:

<tel:RadGrid ID="MG" runat="server">
    <MasterTableView DataKeyNames="Key" AutoGenerateColumns="false"
        Width="450px">
        <Columns>
            <tel:GridTemplateColumn HeaderText="Subject">
                <ItemTemplate>
                    <a href='<%# Url.Action("Select", "Messages", new { message = DataBinder.Eval(Container.DataItem, "Key") }) %>'><%# Eval("Subject") %></a>
                </ItemTemplate>
            </tel:GridTemplateColumn>
            <tel:GridBoundColumn HeaderText="Subject" DataField="Subject" />
            <tel:GridBoundColumn HeaderText="Sent" DataField="CreatedDate" DataFormatString="{0:MM/dd/yyyy}" />
            <tel:GridBoundColumn HeaderText="Last Reply" DataField="LastReply" />
            <tel:GridBoundColumn HeaderText="Reply Date" DataField="ReplyDate" />
        </Columns>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="true">
        <ClientEvents OnRowClick="MG_RowClick" />
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</tel:RadGrid>

The MG_RowClick event never fires in my MVC view.  The script is in the same place as my MVC view...   SelectedIndexChanged doesn't fire either.

How do I get that to work?

Thanks.
Georgi Krustev
Telerik team
 answered on 06 Nov 2009
1 answer
128 views
Hello,

I have a grid setup with multiple groups. The groups are year, month and day. By default, all groups should be closed except the one of todays date, that one should be expanded.

I've got the code to retrieve the GridGroupHeaderItem object for the group which matches todays date (year-month-day), and I can expand that. But I need all of the above groups (year, month) to be expanded as well. What is a good way of traversing up the group hierarchy to expand all groups above? I would like to make this function recursive so I can use it again some other time, so it ideally shouldn't be fixed to a number of parent levels.
Mira
Telerik team
 answered on 06 Nov 2009
9 answers
177 views
Hi Folks,

Is it me or should this be simple? I just want to add a progressarea like in the Telerik examples. When I first added it to my project I got the error about it not being registered in the config file, so I put these lines in:

<httpHandlers> 
         
        <add path="Telerik.RadUploadProgressHandler.ashx" validate="false" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler"/> 
         
      </httpHandlers> 
      <httpModules> 
         
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> 
      </httpModules> 

Now it doesn't throw any error but doesn't actually do anything when I upload a document! Is there a step-by-step guide of how to add a progressarea properly?

Thanks,
IW
Veselin Vasilev
Telerik team
 answered on 06 Nov 2009
1 answer
196 views
Hi,

I just started developing using RadControls for ASP.NET AJAX since last week and I'm stuck with RadTextBox column inside a RadGrid....

I have a RadGrid with parts that look like this:
//------------------------------------------------------------------------
<telerik:RadGrid ID="RadGrid1" .......>
....
<MasterTableView....>
<Columns>
<telerik:GridTemplateColumn UniqueName="D1">
<EditItemTemplate>
<telerik:RadTextBox ID="tb_D1" runat="server" ShowButton="true"...>
</telerik:RadTextBox>
</EditItemTemplate>

....
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
//------------------------------------------------------------------------

I need to either do processing at RadTextBoxButton_OnClick() at server side

OR

pass an integer to a RadWindow form to let user enter a String input and then pass the result back to this grid page for processing.



<buttontemplate> doesn't work for this RadTextBox column inside the grid... so how do I find the button ID of the RadTextBox's button??
and with <buttontemplate> not working, I can't change the appearance of this button right??



Any help will be greatly appreciated.


Thanks
Ryan
Princy
Top achievements
Rank 2
 answered on 06 Nov 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?