Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hi!

how to open a radwindow from radconfirmation's ok button click..
plz help me....

thanks in advance...
Shinu
Top achievements
Rank 2
 answered on 28 May 2010
2 answers
154 views
Hi telerik

I am trying to persisting grid (save grid layout), with following example

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

I have copied the same GridSettingsPersister.vb as have in the above link example

filtering, sorting, column moving everthing is working fine but after button click of savegrid or loadgrid i m getting error like this

Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

please check my below code and error and let me know what am i doing wrong.

version: RadControls for ASP.NET AJAX Q3 2009

aspx


Users:

<asp:dropdownlist id="cmbMode" runat="server" width="200" >

 

 

<asp:ListItem Value="user1">user 1</asp:ListItem>

 

 

<asp:ListItem Value="user2">user 2</asp:ListItem>

 

 

<asp:ListItem Value="user3">user 3</asp:ListItem>

 

 

</asp:dropdownlist>

 


<telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid1" ClientSettings-Scrolling-ScrollHeight="500" 
 
AllowFilteringByColumn="True" ClientSettings-Scrolling-UseStaticHeaders="true" EnableLinqExpressions="false" 
 
ClientSettings-Scrolling-AllowScroll="true" ClientSettings-Selecting-AllowRowSelect="true" 
 
AllowSorting="True" runat="server">  
 
<GroupingSettings CaseSensitive="false" /> 
 
<MasterTableView TableLayout="Fixed" ClientDataKeyNames="KEYID">  
 
<Columns> 
 
<telerik:GridNumericColumn Aggregate="Count" HeaderText="Employee Number" DataField="KEYID" 
 
UniqueName="KEYID" SortExpression="KEYID" FilterControlWidth="30px" AutoPostBackOnFilter="true" 
 
Visible="false" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" /> 
 
   
 
 
<telerik:GridBoundColumn HeaderText="Employee Name" DataField="Name" UniqueName="Name" 
 
SortExpression="Name" HeaderStyle-Width="300px" FilterControlWidth="140px" AutoPostBackOnFilter="true" 
 
CurrentFilterFunction="contains" ShowFilterIcon="false" /> 
 
   
 
 
<telerik:GridBoundColumn HeaderText="SSN" DataField="EMP_SSN" HeaderStyle-Width="205px" 
 
UniqueName="SSN" SortExpression="EMP_SSN" FilterControlWidth="90px" AutoPostBackOnFilter="true" 
 
CurrentFilterFunction="contains" ShowFilterIcon="false" /> 
 
   
 
   
 
</Columns> 
 
</MasterTableView> 
 

<

 

ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

<Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"

 

 

AllowColumnResize="True"></Resizing>

 

 

<ClientEvents OnRowSelected="RowSelected" />

 

 

</ClientSettings>

 

 
</telerik:RadGrid> 
 
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ></asp:SqlDataSource> 
 
   
 
<asp:Button runat="server" OnClick="SaveGrid" ID="btnSaveGrid" Text="SAVE GRID" /> 
 
<asp:Button runat="server" ID="btnLoadGrid" OnClick="LoadGrid" Text="LOAD GRID" /> 
 
 

codebehind

 

 
Protected Sub Page_Load(ByVal sender As ObjectByVal e As EventArgs) Handles   
form1.Load  
SetSource()
End Sub 
Protected Sub SaveGrid(ByVal sender As ObjectByVal e As EventArgs)
Dim user As String = cmbMode.SelectedValue
Dim SavePersister As New GridSettingsPersister(RadGrid1)  
Session(user) = SavePersister.SaveSettings()
End Sub
  
Protected Sub LoadGrid(ByVal sender As ObjectByVal e As EventArgs)
Dim user As String = cmbMode.SelectedValue
Dim LoadPersister As New GridSettingsPersister(RadGrid1)
If Not Session(user) Is Nothing Then
Dim settings As String = DirectCast(Session(user), String)
LoadPersister.LoadSettings(settings)
End If
End Sub

Protected Sub SetSource()
SqlDataSource1.ConnectionString =   
ConfigurationManager.AppSettings.Item("ConnectString")
SqlDataSource1.SelectCommand = "spFilterEmployee"
SqlDataSource1.SelectCommandType =   
SqlDataSourceCommandType.StoredProcedure
SqlDataSource1.SelectParameters.Clear()
SqlDataSource1.SelectParameters.Add("Mode", cmbMode.SelectedIndex)
SqlDataSource1.SelectParameters.Add("gtxtEnhancedSQL""1=1")
SqlDataSource1.SelectParameters.Add("Term""0")
SqlDataSource1.SelectParameters.Add("strAdditionalCriteria""1=1")
SqlDataSource1.SelectParameters.Add("NUMERICEMPNBR""Y")
sqlDataSource1.SelectParameters.Add("EMPVALIDATION""N")
RadGrid1.DataSourceID = "SqlDataSource1"</P>  
End Sub

waiting for your repy
Thanks
Kiran pandit
Kiran
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
121 views
I have rad editor & call out extender in a page.
The call out extender direction is not showing properly when the button is clicked.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ 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></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <cc1:ToolkitScriptManager runat="server" ID="test"
        </cc1:ToolkitScriptManager> 
        <table> 
            <tr> 
            </tr> 
            <tr> 
                <td> 
                    <asp:RequiredFieldValidator ID="RFV_rdDescription" runat="server" ErrorMessage="Please enter Description" 
                        ControlToValidate="rdDescription" Display="None" SetFocusOnError="True" ValidationGroup="MyGen"></asp:RequiredFieldValidator> 
                    <cc1:ValidatorCalloutExtender ID="VCE_RFV_rdDescription" runat="server" PopupPosition="TopLeft" 
                        TargetControlID="RFV_rdDescription"
                    </cc1:ValidatorCalloutExtender> 
                    <telerik:RadEditor ID="rdDescription" runat="server" Width="98%"
                        <ImageManager ViewPaths="~/UserData/RadEditor/Images/GenericContent" DeletePaths="~/UserData/RadEditor/Images/GenericContent" 
                            MaxUploadFileSize="1053000" UploadPaths="~/UserData/RadEditor/Images/GenericContent" /> 
                        <MediaManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <TemplateManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <DocumentManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <FlashManager UploadPaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            DeletePaths="~/UserData/RadEditor/Documents/GenericContent" ViewPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <ImageManager ViewPaths="~/UserData/RadEditor/Documents/GenericContent" DeletePaths="~/UserData/RadEditor/Documents/GenericContent" 
                            MaxUploadFileSize="1053000" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <Content></Content
                    </telerik:RadEditor> 
                </td> 
            </tr> 
            <tr> 
                <td align="right"
                    <asp:Button ID="Button1" ValidationGroup="MyGen" runat="server" Text="Button" /> 
                </td> 
            </tr> 
        </table> 
    </div> 
    </form> 
</body> 
</html> 
 
Rad editor version: 2010.1.519.35
Ajax toolkit version:3.540112.2
Rumen
Telerik team
 answered on 28 May 2010
2 answers
125 views
Hello guys.

What I need is only to change the name of fields that is showed in filter.

For example: I want that the field's name be the same of header text of the grid, instead of DataField column property.

How can I do this?

Regards.
Silvio Silva Junior
Top achievements
Rank 2
 answered on 28 May 2010
2 answers
147 views
Hello guys.

I am doing a search with filter in:
http://demos.telerik.com/aspnet-ajax/filter/examples/integration/defaultcs.aspx?product=filter

I'm trying to use this:
AND --> ShipName --> Contains : "vins" without quotes.

For this search I have no results, but, if I try with "Vins" I got 5 results.

I need a case insensitive filter, so, what can I do?

Regards.



Silvio Silva Junior
Top achievements
Rank 2
 answered on 28 May 2010
2 answers
141 views
I have a listview. Inside every item I have a RadToolbar that, when clicked, shows a hidden panel inside the item.
When clicking a button in that hidden panel, and after modifying some data in the database, I need to fire a rebind, but when i execute listview1.Rebind() (in server-side) I get "Exception has been thrown by the target of an invocation".

Any ideas?
Thanks a lot!


Jorge
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
190 views

I have a rad window designed following way, Width and height ( dimensions) I would like to give % relative to parent window. How do I do this?

Thanks



<Windows>

                                    <telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" InitialBehavior="None"

                                          Left="0" NavigateUrl="~/CommonPages/AvailableFinancialInstitutionList.aspx" Style="display: none;"

                                          Top="0" OpenerElementID="<%# lnkFiInstitution.ClientID %> " Width="800px" Height="600px"

                                          AutoSize="false" Animation="Resize" KeepInScreenBounds="True" Modal="False"

                                          VisibleStatusbar="False" Skin="Telerik" Title="Privacy Statement" VisibleTitlebar="True">

                                    </telerik:RadWindow>

                              </Windows>

Princy
Top achievements
Rank 2
 answered on 28 May 2010
1 answer
123 views
Is there a way to list the other data like description, location, or even organizer or invitees with the Exchange Provider as a details view?

If so, any input would be appreciated.
T. Tsonev
Telerik team
 answered on 28 May 2010
4 answers
152 views
Hi,
I have downloaded the trial from your site and when a set MakeUrlsAbsolute property to Enabled, it shows an error in Editor even when i only have this code in html view:
<HTML><HEAD><TITLE></TITLE></HEAD>
<BODY></BODY></HTML>

The error's text is this: "Error while executing filter MakeUrlsAbsolute".

I also have tried this code in the editor in your Site (see image) and I'm getting the same error.

Edwin Benavente
Rumen
Telerik team
 answered on 28 May 2010
14 answers
436 views
Hi,
Initially i am binding the dropdown control.
After that based on selection of grid value , i want to set the value of combo box.
How to set selected value at run time ?

I've tried following but it is not working

function

 

RowSelected(sender, args)

 

{

 

var combo = <%=cmbCondQn.ClientID %>;

 

 

var value = args.getDataKeyValue("Question");

 

combo.FindItemByText(value).Selected =

true;

 

 

 

 

}

Below is my grid code

 

<

 

telerik:RadGrid ID="RadGrid1"

 

 

Width="97%" AllowSorting="True" PageSize="15" AllowPaging="True" runat="server" AllowAutomaticDeletes="True"

 

 

Gridlines="None" DataSourceID="dsConditionalQuestion" OnItemDataBound="RadGrid1_ItemDataBound" OnItemDeleted="RadGrid1_ItemDeleted"><%--OnRowCommand="RadGrid1_RowCommand" OnRowDataBound="RadGrid1_RowDataBound" OnRowDeleted="RadGrid1_RowDeleted" OnRowDeleting="GridView1_RowDeleting"--%>

 

 

<MasterTableView Width="100%" AutoGenerateColumns="false" DataSourceID="dsConditionalQuestion" DataKeyNames="ID"

 

 

ClientDataKeyNames="Question,Answer,Action,Dependent_QuestionID" >

 

<

 

ClientSettings>

 

 

<Selecting AllowRowSelect="true" />

 

 

<ClientEvents OnRowSelected="RowSelected" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

Regards,
Lubna.

 

Simon
Telerik team
 answered on 28 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?