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

I'm trying to call some javascript which returns true/false depending if it passes a test.  I want my page to post back when a button is clicked but it isn't posting back if I set the update control or if I return true/false in my javascript.  here is sample of my code.

This is a user control which is part of page which has other user controls.

 

<

 

script type="text/javascript">

 

 

 

 

 

function ValidateWithRegEx()

 

 

 {

 

var myRegxp =/^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.pdf|.PDF|.doc|.DOC|.xls|.XLS|.jpeg|.JPEG|.gif|.GIF|.tiff|.TIFF|.jpg|.JPG|.fla|.FLA|.avi|.AVI|.mov|.MOV|.wma|.WMA|.wmv|.WMV|.docx|.DOCX|.xlsx|.XLSX|.vsd|.VSD|.txt|.TXT)/;

 

 

 

 

 

var fileUploaderValue = document.getElementById("ctl00_cphCenterPane_UxAttachments1_FIPSFileUploader").value;

 

 

 

if( myRegxp.test(fileUploaderValue) )

{

 

return true;

}

 

else

 

 

{

 

alert(

'File trying to upload is invalid');
 
return false;

 

 

 }

}

 

 

 

 

</

 

script>

 

 

 

 

 

 

<

 

table runat="server" id="masterTable">

 

 

 

<tr>

 

<td style="width: 453px">

 

<asp:FileUpload ID="FIPSFileUploader" runat="server" Width="446px" /></td>

 

</tr>

 

<tr>

 

<td style="width: 453px">

 

<asp:Button ID="UploadFileButton" runat="server" Text="Upload File" OnClientClick="return ValidateWithRegEx();" OnClick="UploadFileButton_Click" />&nbsp;

 

 

 

 

<asp:Label ID="lblError" runat="server" ForeColor="Red" Width="422px"></asp:Label></td>

 

</tr>

 

 

</

 

table>

 

 

<

 

telerik:RadAjaxManagerProxy ID="AjaxManagerProxy" runat="server">

 

 

 

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="UploadFileButton">

 

 

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="AttachmentsRadGrid" LoadingPanelID="UploadingPanel" />

 

 

 

 

</UpdatedControls>

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

</

 

telerik:RadAjaxManagerProxy>

 

 

 

 

&nbsp;

 

 

 

 

 

 

<br />

 

 

<

 

telerik:RadAjaxLoadingPanel ID="UploadingPanel" runat="server" Height="75px" Width="75px" InitialDelayTime="1">

 

 

 

 

 

<img alt="Loading..." src="../Images/animated_loading.gif" style="border-right: 0px;border-top: 0px; border-left: 0px; border-bottom:0px"/>

 

 

</

 

telerik:RadAjaxLoadingPanel>

 

 

 

<

 

telerik:RadGrid ID="AttachmentsRadGrid" runat="server" AutoGenerateColumns="False" GridLines="None" Skin="Forest">

 

 

 

 

 

<MasterTableView Caption="&lt;b&gt;Attachments&lt;/b&gt;" CellSpacing="-1">

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="InspectionAttachmentId" ReadOnly="True" UniqueName="InspectionAttachmentId" Visible="False">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FileLocation" UniqueName="FileLocation" Visible="False">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="FileName" HeaderText="File Name" UniqueName="FileName">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Description" HeaderText="Description" UniqueName="Description">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Created Date" UniqueName="CreatedDate">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="ModifiedDate" HeaderText="Modified Date" UniqueName="ModifiedDate">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridEditCommandColumn>

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridButtonColumn CommandArgument="Delete" CommandName="Delete" Text="Remove" UniqueName="column">

 

 

 

</telerik:GridButtonColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings>

 

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

 

</EditColumn>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

</

 

telerik:RadGrid>

 

 

 

Mira
Telerik team
 answered on 24 Sep 2009
1 answer
108 views
Hi,

I'm trying out a grid with about 50 rows, with scrolling and no paging.  The grid displays 15 rows and user has to scroll vertically to see the rest.

When the grid first displays, it naturally goes to the top of the grid displaying rows 1 through 15.  Say if depending on some other action from the user, I need to have to grid "position" itself so that row 45 is visible.  In other words, somehow scroll the grid in code so that when the grid first displays, row 45 is visible immediately without user having to scroll to it.  What's the best way to achive this?

Thanks.

Barry
Princy
Top achievements
Rank 2
 answered on 24 Sep 2009
1 answer
105 views
Why is class="ApplyClass" being applied to every link we embed in the editor?
Rumen
Telerik team
 answered on 24 Sep 2009
1 answer
122 views
Hi,

http://www.atlantictoyotany.com/new-cars-compare.aspx

When you select vehicles to compare, the menu tabs dissappear.
This happens in IE when you compare all 4 vehicles.

Here, Menu and Vehicle compare are two different user control on Master page.
for Vehicle compare : 

<asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <ContentTemplate>
        <table width="100%" id="divVehicleInfo" runat="server" visible="false">
            <tr>
                <td align="center">
                    <asp:Button ID="btnRemove" runat="server" Text="Remove" OnClick="btnRemove_Click" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table width="245px" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center">
                                <div style="text-align: center">
                                    <asp:Image ID="imgInfo" CssClass="imgInfo" runat="server" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="LabelsValProp">
                                <asp:Label ID="lblInfoYearMakeModelValue" CssClass="lblInfoYearValue" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr style="height: 28px;">
                            <td class="LabelsValProp">
                                <asp:Label ID="lblInfoTrimValue" CssClass="lblInfoTrimValue" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr class="LabelsValProp">
                            <td>
                                <asp:Label ID="lblInfoPrice" CssClass="lblInfoPrice" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr class="LabelsValProp">
                            <td>
                                <asp:Label ID="lblInfoSpecialPrice" CssClass="lblInfoSpecialPrice" runat="server"
                                    Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="100%" align="center">
                                <div id="divMPG" runat="server">
                                    <table width="70%" cellspacing="0" cellpadding="0">
                                        <tr class="divMPG">
                                            <td>
                                                <asp:Label ID="lblCityMPG" runat="server"></asp:Label>
                                            </td>
                                            <td>
                                                <br />
                                                <asp:Image ID="imgMPG" runat="server" ImageUrl="~/Images/gaspump.gif" Width="24"
                                                    Height="35" />
                                            </td>
                                            <td>
                                                <asp:Label ID="lblHighwayMPG" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="LabelsValProp">
                                <br />
                                <asp:Label ID="lblInfoEngineValue" CssClass="lblInfoEngineValue" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="LabelsValProp">
                                <asp:Label ID="lblInfoTransValue" CssClass="lblInfoTransValue" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:ImageButton ID="btnMoreInfo" runat="server" CssClass="btnMoreInfo" ImageUrl="~/Images/Inventory/SmallButtons/btn_moreinfo_off.gif"
                        OnClick="btnMoreInfo_Click" onmouseover="this.src = 'Images/Inventory/SmallButtons/btn_moreinfo_on.gif'"
                        onmouseout="this.src = 'Images/Inventory/SmallButtons/btn_moreinfo_off.gif'" /><br />
                    <asp:ImageButton ID="btnMakeOffer" runat="server" CssClass="btnMoreInfo" ImageUrl="~/Images/Inventory/SmallButtons/btn_makeoffer_off.gif"
                        OnClick="btnMakeOffer_Click" onmouseover="this.src = 'Images/Inventory/SmallButtons/btn_makeoffer_on.gif'"
                        onmouseout="this.src = 'Images/Inventory/SmallButtons/btn_makeoffer_off.gif'" /><br />
                    <asp:ImageButton ID="btnTestDrive" runat="server" CssClass="btnMoreInfo" ImageUrl="~/Images/Inventory/SmallButtons/btn_testdrive_off.gif"
                        OnClick="btnTestDrive_Click" onmouseover="this.src = 'Images/Inventory/SmallButtons/btn_testdrive_on.gif'"
                        onmouseout="this.src = 'Images/Inventory/SmallButtons/btn_testdrive_off.gif'" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr id="divOtherOptions" runat="server">
                <td>
                    <fieldset>
                        <legend>Vehicle Info</legend>
                        <div id="divAllOtherOptions" runat="server">
                        </div>
                    </fieldset>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
    <ContentTemplate>
        <table id="divShowCompareAnother" runat="server" visible="false">
            <tr>
                <td valign="top">
                    <asp:Label ID="Label1" runat="server" Text="Compare Another"></asp:Label><br />
                    <asp:DropDownList ID="ddlYear" CssClass="ddlYear" runat="server" AutoPostBack="true"
                        OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlMake" CssClass="ddlMake" runat="server" AutoPostBack="true"
                        OnSelectedIndexChanged="ddlMake_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlModel" CssClass="ddlModel" runat="server" Width="200px"
                        AutoPostBack="true" OnSelectedIndexChanged="ddlModel_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlTrim" CssClass="ddlTrim" runat="server" Width="200px" AutoPostBack="true"
                        OnSelectedIndexChanged="ddlTrim_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br />
                    <asp:Button ID="btnCompare" runat="server" Text="Compare" OnClick="btnCompare_Click" /><br />
                    <asp:Label ID="lblNoVehicleFound" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>

This is the code for Vehicle User control. If I dont Use this AJAX (update panel) at that time It works fine. But with AJAx it's not working.

Can you please help me in that ?

Thanks
Dipsa.






Kamen Bundev
Telerik team
 answered on 24 Sep 2009
1 answer
140 views

Are there known problems of a RadListBox with transfer turned on working when in a RadXMLHttpPanel?  Outside of the panel the transfer (Telerik's example) works fine, but, when I place it in a working RadXMLHttpPanel, it looses it's transfer functionality?

Note: The RadXMLHttpPanel that I'm putting the listbox control in works fine and is updating my controls asynch. It's the listbox transfer functionality that is not working.

Any ideas? I really need the list transfer functionality, I could use a JQuery one, but prefer to stick to the Telerik control.
Below is code example with html and javascript. Thanks much in advance...chris

***** Javascript ********

 

function

 

SecurityRowClick(sender, eventArgs)

 

{

 

 

 

 

try

 

 

{

 

 

 

 

 

var userId = eventArgs.getDataKeyValue(userIdFieldName);

 

 

 

 

 

var xmlPanel = $find(userDetailsXMLPanelClientId);

 

xmlPanel

.set_value(userId);

 

 

 

 

 

}

 

 

catch (e)

 

 

{

 

 

 

 

alert

(e.message);

 

 

 

 

 

}

 

}

 

 



******** HTML ***********

 

<

 

telerik:RadXmlHttpPanel

 

 

ID="ui_UserDetailsXMLPanel"

 

 

runat="server"

 

 

OnServiceRequest="UserXmlPanelBind"

 

 

OnClientResponseEnded="UserDetailsBound">

 

 

 

 

 

 

<div id="UserDetails">

 

 

<!-- command icons start -->

 

 

 

 

 

<div style="padding-top: 10px;">

 

 

 

 

 

<!-- edit icon start -->

 

 

 

 

 

<div id="EditUserAccount_Cmd" style="clear: both; width: 735px;">

 

 

 

 

 

<div id="UserRemove" onclick="DeleteUser()" style="float: right;">delete</div>

 

 

 

 

 

<div style="float: left; width: 15px; float: right;">&nbsp;</div>

 

 

 

 

 

<div id="UserEdit" onclick="EditUser()" style="float: right;">edit</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- edit icon end -->

 

 

 

 

 

 

<!-- save / cancel icon start -->

 

 

 

 

 

<div id="SaveUserAccount_Cmd" style="clear: both; width: 730px;">

 

 

 

 

 

<div id="Stop" onclick="CancelUpdate()" style="float: right;">cancel</div>

 

 

 

 

 

<div style="float: left; width: 15px; float: right;">&nbsp;</div>

 

 

 

 

 

<div id="Save" onclick="UpdateUser()" style="float: right;">update</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- save / cancel icon end -->

 

 

 

 

 

</div>

 

 

 

 

 

<!-- command icons end -->

 

 

 

 

 

 

<!-- user info start -->

 

 

 

 

 

<div style="clear: both;">

 

 

 

<!-- user details start -->

 

 

 

 

 

<div style="float: left; width: 360px;">

 

 

 

 

 

 

<div class="section_header">

 

 

 

 

User Details

 

</div>

 

 

 

 

 

 

<!-- full name start -->

 

 

<div id="FullName">

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Name

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<span id="ui_Name_valueContainer">

 

 

 

 

 

<div id="ui_Name_value" runat="server"></div>

 

 

 

 

 

</span>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- full end -->

 

 

 

 

 

 

<!-- name details start -->

 

 

 

 

 

<div id="ui_NameDetails" runat="server">

 

 

 

<!-- first name start -->

 

 

 

 

 

<div class="form_title_data_container" style="padding-bottom: 5px;">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

First Name

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_FirstName_value" runat="server"></div>

 

 

 

 

 

<input id="ui_FirstName_edit" type="text" class="textbox" runat="server" />

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- first name end -->

 

 

 

 

 

 

<!-- middle initial start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Middle Initial

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_MiddleInitial_value" runat="server"></div>

 

 

 

 

 

<input id="ui_MiddleInitial_edit" type="text" class="textbox" runat="server" />

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- middle initial end -->

 

 

 

 

 

 

<!-- last name start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Last Name

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_LastName_value" runat="server"></div>

 

 

 

 

 

<input id="ui_LastName_edit" type="text" class="textbox" runat="server"/>

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- last name end -->

 

 

 

 

 

</div>

 

 

 

 

 

<!-- name details end -->

 

 

 

 

 

 

<!-- email start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Email

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_Email_value" runat="server"></div>

 

 

 

 

 

<input id="ui_Email_edit" type="text" class="textbox" runat="server"/>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- email end -->

 

 

 

 

 

 

<!-- username start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Username:

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_Username_value" runat="server"></div>

 

 

 

 

 

<input id="ui_Username_edit" type="text" class="textbox" runat="server" />

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- username end -->

 

 

 

 

 

 

<!-- password start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Password

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_Password_value" runat="server"></div>

 

 

 

 

 

<input name="ui_Password_edit" id="ui_Password_edit" type="text" class="textbox" runat="server" />

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- password end -->

 

 

 

 

 

 

<!-- account enabled start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Account Enabled

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_Status_value" runat="server"></div>

 

 

 

 

 

<asp:DropDownList runat="server" ID="ui_Status_edit" CssClass="textbox">

 

 

 

 

 

<asp:ListItem Text="Enabled" Value="false"></asp:ListItem>

 

 

 

 

 

<asp:ListItem Text="Disabled" Value="true"></asp:ListItem>

 

 

 

 

 

</asp:DropDownList>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- account enabled end -->

 

 

 

 

 

 

<!-- last login start -->

 

 

 

 

 

<div class="form_title_data_container">

 

 

 

 

 

<div class="form_field_title">

 

 

 

 

Last Login

 

</div>

 

 

 

 

 

<div style="float: left;">

 

 

 

 

 

<div id="ui_LastLogin_value" runat="server"></div>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

<!-- last login end -->

 

 

 

 

 

</div>

 

 

 

 

 

<!-- user details end -->

 

 

 

 

 

 

<!-- margin start -->

 

 

 

 

 

<div style="float: left; width: 20px;">

 

 

 

 

 

&nbsp;

 

 

 

 

 

</div>

 

 

 

 

 

<!-- margin end -->

 

 

 

 

 

 

<!-- roles start -->

 

 

<div style="float: left; width: 360px;">

 

 

 

 

 

<div class="section_header">

 

 

 

 

Roles

 

</div>

 

 

 

 

 

<telerik:RadListBox runat="server" ID="RadListBoxSource" Height="200px" Width="150px"

 

 

 

 

 

AllowTransfer="true" TransferToID="RadListBoxDestination">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadListBoxItem Text="Argentina" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Australia" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Brazil" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Canada" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Chile" />

 

 

 

 

 

<telerik:RadListBoxItem Text="China" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Egypt" />

 

 

 

 

 

<telerik:RadListBoxItem Text="England" />

 

 

 

 

 

<telerik:RadListBoxItem Text="France" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Germany" />

 

 

 

 

 

<telerik:RadListBoxItem Text="India" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Indonesia" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Kenya" />

 

 

 

 

 

<telerik:RadListBoxItem Text="Mexico" />

 

 

 

 

 

<telerik:RadListBoxItem Text="New Zealand" />

 

 

 

 

 

<telerik:RadListBoxItem Text="South Africa" />

 

 

 

 

 

<telerik:RadListBoxItem Text="USA" />

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadListBox>

 

 

 

 

 

<telerik:RadListBox runat="server" ID="RadListBoxDestination" Height="200px" Width="150px" />

 

 

 

 

 

</div>

 

 

 

 

 

<!-- roles end -->

 

 

 

 

 

 

</div>

 

 

 

 

 

<!-- user info end -->

 

 

 

 

 

 

</div>

 

 

</telerik:RadXmlHttpPanel>

 

Lini
Telerik team
 answered on 24 Sep 2009
1 answer
186 views

HI,

1. I would like to refreshthe scheduler by Button click event

2. I am able to get the appointmentsfrom the database  and bind to scheduler.

3. I got the java scrip error“ Sys.InvalidOperationException: A control is already associatedwith the element”.

4. I tried without updatepanel there is no issue its working fine

5. Any idea let me know.

Thanks

Sabarish
Veselin Vasilev
Telerik team
 answered on 24 Sep 2009
3 answers
182 views
I have created a hierarchical grid with one sublevel. I want all the child tables visible from start so I've set the

HierarchyDefaultExpanded = true.

When I do this, all the items are expanded but the child tables are empty. Not even the "No child records to display" is there, it's just plain empty.

If I remove the HierarchyDefaultExpanded = true it works as expected, I can manually expand each item of the mastertable, and the child records will display.

Does anyone know what more steps I have to take to have all subtables displayed with data on page load?

 

Dan Pettersson
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
311 views
I have a small application using the radgrid that has work perfectly. I have re-published the application and now certain pages do not work. I re-created a page and found the exact line that is causing the error.

The error I am receiving is:

 

Server Error in '/necaadmin' Application.

Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileNotFoundException: Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.]
   System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Security.Util.XMLUtil.GetClassFromElement(SecurityElement el, Boolean ignoreTypeLoadFailures) +119
   System.Security.Util.XMLUtil.CreatePermission(SecurityElement el, PermissionState permState, Boolean ignoreTypeLoadFailures) +1434
   System.Security.SecurityElement.ToPermission(Boolean ignoreTypeLoadFailures) +23
   System.Security.PermissionSet.CreatePerm(Object obj, Boolean ignoreTypeLoadFailures) +1042
   System.Security.PermissionSet.CreatePerm(Object obj, Boolean ignoreTypeLoadFailures) +941
   System.Security.PermissionSet.CreatePermission(Object obj, Int32 index) +17
   System.Security.PermissionSetEnumeratorInternal.MoveNext() +7515060
   System.Security.PermissionSet.ToXml(String permName) +207
   System.Security.PermissionSet.ToXml() +12
   System.Security.SecurityException..ctor(String message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence) +146
   System.Security.SecurityException.MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +579
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +143
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +318
   System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69
   System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150
   System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30
   System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40
   System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123
   System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54

[MethodAccessException: System.Runtime.CompilerServices.StrongBox`1..ctor(System.__Canon)]
   System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +470
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
   System.Linq.Expressions.ExpressionCompiler.AddGlobal(Type type, Object value) +75
   System.Linq.Expressions.ExpressionCompiler.GenerateConstant(ILGenerator gen, Type type, Object value, StackType ask) +946
   System.Linq.Expressions.ExpressionCompiler.GenerateConstant(ILGenerator gen, ConstantExpression c, StackType ask) +20
   System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) +193
   System.Linq.Expressions.ExpressionCompiler.GenerateArgs(ILGenerator gen, ParameterInfo[] pis, ReadOnlyCollection`1 args) +157
   System.Linq.Expressions.ExpressionCompiler.GenerateMethodCall(ILGenerator gen, MethodInfo mi, ReadOnlyCollection`1 args, Type objectType) +71
   System.Linq.Expressions.ExpressionCompiler.GenerateMethodCall(ILGenerator gen, MethodCallExpression mc, StackType ask) +365
   System.Linq.Expressions.ExpressionCompiler.Generate(ILGenerator gen, Expression node, StackType ask) +358
   System.Linq.Expressions.ExpressionCompiler.GenerateLambda(LambdaExpression lambda) +206
   System.Linq.Expressions.ExpressionCompiler.CompileDynamicLambda(LambdaExpression lambda) +74
   System.Linq.Expressions.ExpressionCompiler.Compile(Expression`1 lambda) +89
   System.Linq.EnumerableExecutor`1.Execute() +84
   System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23
   System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +83
   Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +143
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +216
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +626
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +32
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +20
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +158
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +76
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +98
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +141
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +33
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +239
   Telerik.Web.UI.RadGrid.DataBind() +80
   eventgrid.GridDataLoad(Boolean blnWantDataBind) +153
   eventgrid.Page_Load(Object sender, EventArgs e) +65
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


 

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

 

 

 

 

 

My code is as follows:

 

<?

 

xml version="1.0"?>

 

<!--

 

 

Note: As an alternative to hand editing this file you can use the

web admin tool to configure settings for your application. Use

the Website->Asp.Net Configuration option in Visual Studio.

A full list of settings and comments can be found in

machine.config.comments usually located in

\Windows\Microsoft.Net\Framework\v2.x\Config

 

 

 

 

-->

<

 

configuration>

 

<

 

configSections>

 

<

 

sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

 

<

 

sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

 

<

 

section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

<

 

sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

 

<

 

section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />

 

<

 

section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

<

 

section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

<

 

section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

 

</

 

sectionGroup>

 

</

 

sectionGroup>

 

</

 

sectionGroup>

 

</

 

configSections>

 

<

 

appSettings />

 

<

 

connectionStrings />

 

<

 

system.web>

 

<!--

 

 

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

 

 

-->

 

<

 

compilation debug="true">

 

<

 

assemblies>

 

<

 

add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<

 

add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<

 

add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

assemblies>

 

</

 

compilation>

 

<!--

 

 

 

 

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

 

 

-->

 

<

 

authentication mode="Windows" />

 

<!--

 

 

 

 

The <customErrors> section enables configuration

of what to do if/when an unhandled error occurs

during the execution of a request. Specifically,

it enables developers to configure html error pages

to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>

 

 

-->

 

<

 

pages>

 

<

 

controls>

 

<

 

add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

controls>

 

</

 

pages>

 

<

 

httpHandlers>

 

<

 

remove verb="*" path="*.asmx" />

 

<

 

add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

 

</

 

httpHandlers>

 

<

 

httpModules>

 

<

 

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

httpModules>

 

</

 

system.web>

 

<

 

system.codedom>

 

<

 

compilers>

 

<

 

compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

 

<

 

providerOption name="CompilerVersion" value="v3.5" />

 

<

 

providerOption name="WarnAsError" value="false" />

 

</

 

compiler>

 

<

 

compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

 

<

 

providerOption name="CompilerVersion" value="v3.5" />

 

<

 

providerOption name="OptionInfer" value="true" />

 

<

 

providerOption name="WarnAsError" value="false" />

 

</

 

compiler>

 

</

 

compilers>

 

</

 

system.codedom>

 

<!--

 

 

The system.webServer section is required for running ASP.NET AJAX under Internet

Information Services 7.0. It is not necessary for previous version of IIS.

 

 

-->

 

<

 

system.webServer>

 

<

 

validation validateIntegratedModeConfiguration="false" />

 

<

 

modules>

 

<

 

remove name="ScriptModule" />

 

<

 

add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</

 

modules>

 

<

 

handlers>

 

<

 

remove name="WebServiceHandlerFactory-Integrated" />

 

<

 

remove name="ScriptHandlerFactory" />

 

<

 

remove name="ScriptHandlerFactoryAppServices" />

 

<

 

remove name="ScriptResource" />

 

<

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

 

</

 

handlers>

 

</

 

system.webServer>

 

<

 

runtime>

 

<

 

assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

 

<

 

dependentAssembly>

 

<

 

assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />

 

<

 

bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />

 

</

 

dependentAssembly>

 

<

 

dependentAssembly>

 

<

 

assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />

 

<

 

bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />

 

</

 

dependentAssembly>

 

</

 

assemblyBinding>

 

</

 

runtime>

 

<

 

location path="Telerik.Web.UI.WebResource.axd">

 

<

 

system.web>

 

<

 

authorization>

 

<

 

allow users="*"/>

 

</

 

authorization>

 

</

 

system.web>

 

</

 

location>

 

</

 

configuration>

 

 

 

 

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

 

<%

@ Register src="wucHeader.ascx" tagname="wucHeader" tagprefix="uc1" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

 

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

 

 

 

 

<title>Untitled Page</title>

 

 

 

 

 

 

<link href="necaadmin.css" rel="stylesheet" type="text/css" />

 

</

 

head>

 

<

 

body>

 

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

 

<div>

 

 

 

 

 

 

 

<table align="left" cellpadding="0" cellspacing="0" class="classTblMain">

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td></td>

 

 

 

 

 

 

<td>

 

 

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

 

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

 

 

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

 

 

 

 

 

 

<AjaxSettings>

 

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

 

</AjaxSettings>

 

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblMain_TL"></td>

 

 

 

 

 

 

<td class="classTblMain_TC"></td>

 

 

 

 

 

 

<td class="classTblMain_TR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblMain_ML"></td>

 

 

 

 

 

 

<td class="classTblMain_MC">

 

 

 

 

 

 

<uc1:wucHeader ID="wucHeader1" runat="server" />

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td class="classTblMain_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblMain_ML"></td>

 

 

 

 

 

 

<td class="classTblMain_MC"></td>

 

 

 

 

 

 

<td class="classTblMain_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblMain_ML"></td>

 

 

 

 

 

 

<td class="classTblMain_MC">

 

 

 

 

 

 

<table align="left" cellpadding="0" cellspacing="0" class="classTblWork">

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblWork_TL"></td>

 

 

 

 

 

 

<td class="classTblWork_TC"></td>

 

 

 

 

 

 

<td class="classTblWork_TR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblWork_ML"></td>

 

 

 

 

 

 

<td class="classTblWork_MC">

 

 

 

 

 

 

<asp:Label ID="Label1" runat="server" CssClass="mytxt Large Bold" Text="Events"></asp:Label>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td class="classTblWork_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblWork_ML"></td>

 

 

 

 

 

 

<td class="classTblWork_MC">

 

 

 

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="True"

 

 

AllowSorting="True" GridLines="None" Height="350px" Skin="Gray" Width="900px">

 

 

 

 

 

 

<HeaderContextMenu>

 

 

 

 

 

 

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

 

 

 

 

 

 

</HeaderContextMenu>

 

 

 

 

 

 

<MasterTableView ClientDataKeyNames="id" CommandItemDisplay="Top"

 

 

DataKeyNames="id">

 

 

 

 

 

 

<CommandItemTemplate>

 

 

 

 

 

 

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

 

 

Height="16px" ImageUrl="~/images/spacer_10.png" />

 

 

 

 

 

 

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

 

 

CommandName="cmdNew" ImageUrl="~/images/page_white.png" ToolTip="New" />

 

 

 

 

 

 

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

 

 

CommandName="cmdEdit" Height="16px" ImageUrl="~/images/Edit.png"

 

 

ToolTip="Edit" />

 

 

 

 

 

 

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

 

 

Height="16px" ImageUrl="~/images/spacer_10.png" />

 

 

 

 

 

 

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

 

 

CommandName="cmdDelete" Height="16px" ImageUrl="~/images/Delete.png"

 

 

ToolTip="Delete" />

 

 

 

 

 

 

</CommandItemTemplate>

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

<HeaderStyle Font-Bold="True" Font-Names="Arial" Font-Size="8pt" />

 

 

 

 

 

 

<ClientSettings>

 

 

 

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

 

<FilterMenu>

 

 

 

 

 

 

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

 

 

 

 

 

 

</FilterMenu>

 

 

 

 

 

 

<CommandItemStyle Height="30px" />

 

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td class="classTblWork_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblWork_ML"></td>

 

 

 

 

 

 

<td class="classTblWork_MC">

 

 

 

 

 

 

<asp:LinkButton ID="btnDeleteHide" runat="server" CssClass="myhyp Small"

 

 

OnClick="btnDeleteHide_Click"></asp:LinkButton>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td class="classTblWork_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblWork_ML"></td>

 

 

 

 

 

 

<td class="classTblWork_MC"></td>

 

 

 

 

 

 

<td class="classTblWork_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblWork_BL"></td>

 

 

 

 

 

 

<td class="classTblWork_BC"></td>

 

 

 

 

 

 

<td class="classTblWork_BR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

</table>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td class="classTblMain_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblMain_ML"></td>

 

 

 

 

 

 

<td class="classTblMain_MC"></td>

 

 

 

 

 

 

<td class="classTblMain_MR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td class="classTblMain_BL"></td>

 

 

 

 

 

 

<td class="classTblMain_BC"></td>

 

 

 

 

 

 

<td class="classTblMain_BR"></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td></td>

 

 

 

 

 

 

<td>

 

 

 

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Move"

 

 

Behaviors="None" Height="320px" Modal="True" onclientclose="closeRadWindow"

 

 

ReloadOnShow="True" ShowContentDuringLoad="False" Skin="Black"

 

 

VisibleStatusbar="False" Width="780px">

 

 

 

 

 

 

</telerik:RadWindowManager>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

<td></td>

 

 

 

 

 

 

<td>

 

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"

 

 

BackColor="Yellow" height="75px" MinDisplayTime="500" Transparency="50"

 

 

width="75px">

 

 

 

 

 

 

<br />

 

 

 

 

 

 

<br />

 

 

 

 

 

 

<br />

 

 

 

 

 

 

<br />

 

 

 

 

 

 

<img alt="Loading..."

 

 

src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'

 

 

style="border:0px;" />

 

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

 

 

 

 

 

</td>

 

 

 

 

 

 

<td></td>

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

</table>

 

 

 

 

 

 

 

</div>

 

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 




 

 

Partial

 

Class Default2

 

 

Inherits Telerik.Web.UI.RadAjaxPage

 

 

Private MySess As New classSession

 

 

Private MySql As New classSql("necadata", "necadata", False)

 

 

Private MyUtil As New classUtil("necadata", "necadata")

 

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

MySess.SiteProcess(

"root", "eventgrid", True)

 

 

If Not Page.IsPostBack Then

 

 

 

 

 

GridDataLoad(

True)

 

 

End If

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

Public Sub GridDataLoad(ByVal blnWantDataBind As Boolean)

 

MySess.SiteProcess(

"root", "eventgrid", True)

 

MySql.sSql =

"SELECT * FROM vNecaEventGrid; "

 

 

 

 

 

MySql.SqlSelect(

"griddata")

 

RadGrid1.DataSource = MySql.ds.Tables(

"griddata")

 

 

'If blnWantDataBind Then RadGrid1.DataBind()

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated

 

 

Dim MyGridColumn As Object

 

 

 

 

 

 

Dim s As String

 

 

 

 

 

 

Select Case UCase(e.Column.ColumnType)

 

 

Case "GRIDEXPANDCOLUMN" : Exit Sub

 

 

 

 

 

 

Case "GRIDBOUNDCOLUMN" : MyGridColumn = New Telerik.Web.UI.GridBoundColumn

 

 

Case "GRIDDATETIMECOLUMN" : MyGridColumn = New Telerik.Web.UI.GridDateTimeColumn

 

 

Case "GRIDNUMERICCOLUMN" : MyGridColumn = New Telerik.Web.UI.GridNumericColumn

 

 

End Select

 

 

 

 

 

MyGridColumn = e.Column

 

With MyGridColumn

 

s = UCase(.UniqueName)

 

Select Case s

 

 

Case "ID"

 

 

 

 

 

.Visible =

False

 

 

 

 

 

 

Case "EDATE"

 

 

 

 

 

.DataType = System.Type.GetType(

"System.DateTime") : .DataFormatString = "{0:MM/dd/yyyy h:mmt}"

 

 

 

 

 

.ItemStyle.Width = 100 : .ItemStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderStyle.Width = 100 : .HeaderStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderText =

"Date"

 

 

 

 

 

 

Case "LOCATION"

 

 

 

 

 

.ItemStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderText =

"Location"

 

 

 

 

 

 

Case "TOPIC"

 

 

 

 

 

.ItemStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderText =

"Topic"

 

 

 

 

 

 

Case "SPEAKER"

 

 

 

 

 

.ItemStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderText =

"Speaker"

 

 

 

 

 

 

Case "ATTACHFILE"

 

 

 

 

 

.ItemStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderStyle.HorizontalAlign = HorizontalAlign.Left

.HeaderText =

"Attach"

 

 

 

 

 

 

Case Else

 

 

 

 

 

.ReadOnly =

True

 

 

 

 

 

.Visible =

False

 

 

 

 

 

 

End Select

 

 

 

 

 

 

End With

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand

 

 

Select Case UCase(e.CommandName)

 

 

Case "CMDEDIT"

 

 

 

 

 

 

'Session("sessJhaAdmin_contacts_code") = RadGrid1.SelectedItems(0).OwnerTableView.DataKeyValues(RadGrid1.SelectedItems(0).ItemIndex)("ID")

 

 

 

 

 

 

'Response.Redirect("contactsopen.aspx")

 

 

 

 

 

 

End Select

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource

 

 

'GridDataLoad(False)

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

Protected Sub RadGrid1_PageIndexChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadGrid1.PageIndexChanged

 

 

'GridDataLoad(True)

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

Protected Sub RadGrid1_SortCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridSortCommandEventArgs) Handles RadGrid1.SortCommand

 

 

'GridDataLoad(True)

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 

'Protected Sub RadAjaxPanel1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxPanel1.AjaxRequest

 

 

 

 

 

 

' RadGrid1.Rebind()

 

 

 

 

 

 

'End Sub

 

 

 

 

 

 

 

Protected Sub btnDeleteHide_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDeleteHide.Click

 

 

'Dim iDataValue As Int32

 

 

 

 

 

 

'Dim i As Int32

 

 

 

 

 

 

'MySql.sSql = ""

 

 

 

 

 

 

'For i = 0 To RadGrid1.SelectedItems.Count - 1

 

 

 

 

 

 

' iDataValue = RadGrid1.SelectedItems(i).OwnerTableView.DataKeyValues(RadGrid1.SelectedItems(i).ItemIndex)("id")

 

 

 

 

 

 

' MySql.sSql &= "DELETE FROM Event WHERE id=" & iDataValue & "; "

 

 

 

 

 

 

'Next i

 

 

 

 

 

 

'If Len(MySql.sSql) > 0 Then MySql.ExecuteNonQuery()

 

 

 

 

 

 

'GridDataLoad(True)

 

 

 

 

 

 

End Sub

 

 

End

 

Class

 






The line that throws the error is: RadGrid1.DataSource = MySql.ds.Tables("griddata")



Thanks for any help
Ryan

 

 

 

 

Pavlina
Telerik team
 answered on 24 Sep 2009
3 answers
147 views
HI,
I am working on tooptip edit in RadGrid. I am facing a problem whenever i am editing something on tooltip and call button event it close the tooptip and client side and later it binds only single row in Radgrid on which i edit the tooltip other data loose.

see the code..

Tooltip code:

 

protected void Swap_Click(object sender, EventArgs e)

 

{

 

 

 

DataSet ds1 = (DataSet)Cache[dKey];

 

 

DataView dv = ds1.Tables[0].DefaultView;

 

 

string preLink2 = "<A href='MainAction.aspx?mode=ComponentInfo&suppliedComponentID=" +suppliedComponentID.ToString() + "'>";

 

 

string postLink2 = "</A>";

 

 

dv.RowFilter =

string.Format("BlockID={0}", ProductID);

 

dv[0][

"SuppliedComponentID"] = suppliedComponentID;

 

dv[0][

"ReservationStatusID"] = reservationStatusID;

 

dv[0][

"ConfirmationSize"] = confirmedAllocation;

 

dv[0][

"SupplierPlain"] = AssociatesList.SelectedItem.Text;

 

dv[0][

"SupplierID"] = suppliedComponentID;

 

dv[0][

"SupplierName"] = preLink2 + AssociatesList.SelectedItem.Text + postLink2;

 

Cache[dKey] = ds1;

 

 

 

//Close the active ToolTip.

 

 

ScriptManager.RegisterClientScriptBlock(

 

 

this.Page,

 

 

this.GetType(),

 

 

"WebUserControlSript",

 

 

"CloseActiveToolTip('" + this.ProductID + "')",

 

 

true);

 

}


On Control Page :

 

/

 

SCRIPT>

 

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

 

function CloseActiveToolTip(supplierID) {

 

 

var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();

 

 

if (tooltip) tooltip.hide();

 

 

var grid = $find("<%=RadGrid1.ClientID %>").get_masterTableView();

 

grid.rebind();

}

 

</script>

 



IN Code behind file

I am binding

 

protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

 

if (!e.IsFromDetailTable)

 

{

 

DataSet ds = new DataSet();

 

ds = (Cache[dKey] !=

null) ? (DataSet)Cache[dKey] : ds;

 

RadGrid1.DataSource = ds.Tables[0];

 

//DataTable ds = new DataTable();

 

 

//ds = (Cache[dKey] != null) ? (DataTable)Cache[dKey] : ds;

 

 

//RadGrid1.DataSource = ds;

 

}

}



but it only display the row which i edit in tooptip

and same thing happen in paging also.

plz help me

Yavor
Telerik team
 answered on 24 Sep 2009
7 answers
125 views
Hi,

We are actually trying to display a progress bar on a button click event in a user control which has radajaxmanagerproxy.We have a radajaxmanager in th epage which holds the user control.
But for no reason the RadProgressaraea is not showing up at all.
Below is the code snippet for the same

User Control with RadAjaxmanagerProxy
----------------------------------------------------

<telerik:radajaxmanagerproxy id="radAjaxMgrQCMapping" runat="server">
     <AjaxSettings>
           
            <telerik:AjaxSetting AjaxControlID="btnMap">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radProgressManager1" LoadingPanelID="radAjaxLoadPnlUnmappedItems"/>
                    <telerik:AjaxUpdatedControl ControlID="radProgressArea1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:radajaxmanagerproxy>

<

 

telerik:RadProgressManager id="radProgressManager1" runat="server" RefreshPeriod="5" />

 

 

<telerik:RadProgressArea id="radProgressArea1" runat="server" DisplayCancelButton="False"

 

 

ProgressIndicators="TimeElapsed">

 

 

</telerik:RadProgressArea>

CodeBehind file:
--------------------------

 

public

 

void UpdateProgressContext(StringBuilder projectStatus)

 

{

 

RadProgressContext context = RadProgressContext.Current;

 

context.SecondaryTotal = 100;

 

for (int i = 1; i < 100; i++)

 

{

context.SecondaryValue = i;

context.SecondaryPercent = i;

context.CurrentOperationText = projectStatus;

 

if (!Response.IsClientConnected)

 

{

 

//Cancel button was clicked or the browser was closed, so stop processing

 

 

 

 

 

break;

 

}

 

// simulate a long time performing the current step

 

 

 

 

 

Thread.Sleep(100);

 

}

}




Could you please provid eus a solution tio implement this functionality.

Thanks and Regards
V.Balamurali

Genady Sergeev
Telerik team
 answered on 24 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?