Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
74 views
Hi,
   I have downloaded the latest version (i.e, RadControlsForAspNetAjaxSetup_2011_3_1116.exe). Once I started installing it on my machine it suddenly failed in between extracting the dlls.
   For your information, I already have RadControls for ASP.NET AJAX Q2 2011 SP1 on my machine.
   Please find the attached snapshot for the same. Hope that could give you some information regarding the crash.
   Please let me know once this issue has been resolved. So that, I can upgrade to latest version.
  
Regards,
Yogesh
Yogesh
Top achievements
Rank 1
 answered on 16 Dec 2011
12 answers
210 views
Hi,

I have been trying to add a edit functionality to a grid but the update events are not firing at all. Even the OnItemCommand, it fires with the CommandName "Edit" when you click the edit button. However, when you click Update, the event doesn't fire up.

I tried a few different codes (available on the forums) but no luck, this is my final code (using <FormTemplate>).

I want to manually update fields using my dal project.

<telerik:RadGrid ID="trgMaatschappijID" runat="server" AllowPaging="true" AllowSorting="True" GridLines="None" Culture="Dutch (Netherlands)" OnItemDataBound="trgMaatschappijID_ItemDataBound"
    AutoGenerateColumns="false" OnNeedDataSource="trgMaatschappijID_NeedDataSource" OnItemCommand="trgMaatschappijID_Item">
    <MasterTableView AllowMultiColumnSorting="false" AllowFilteringByColumn="true" DataKeyNames="MaatschappijId" EditMode="EditForms">
        <Columns>
            <telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn" EditText="Bewerken" />
            <telerik:GridBoundColumn DataField="Maatschappij" HeaderText="Maatschappij" />
            <telerik:GridBoundColumn DataField="AantalProducten" HeaderText="Aantal Producten" ReadOnly="true" />
        </Columns>
        <EditFormSettings EditFormType="Template" CaptionDataField="MaatschappijId" CaptionFormatString="Bewerking van maatschappij met ID: {0}" ColumnNumber="1">
            <%--<EditColumn UpdateText="Opslaan" CancelText="Annuleren" UniqueName="EditCommandColumn1" />--%>
            <FormTemplate>
                <table border="0" cellpadding="2">
                    <tr>
                        <td>Naam van maatschappij :</td>
                        <td>
                            <asp:TextBox runat="server" ID="txtMaatschappijID" Text='<%# Bind("Maatschappij") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:LinkButton ID="btnOpslaanID" CommandName="Update" Text="Opslaan" runat="server" />
                        </td>
                    </tr>
                </table>
 
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
    <SortingSettings SortedBackColor="Azure" EnableSkinSortStyles="false" SortToolTip="Klik hier om te sorteren" />
    <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" />
    <HeaderStyle Width="100px" />
</telerik:RadGrid>
Maria Ilieva
Telerik team
 answered on 16 Dec 2011
1 answer
98 views
Hello,
I am using Radgrid for displaying data. I have two GridBoundColumns (datafield is of string type and currentfilterfunction is contains), one GridDateTimeColumn(datafield is of type DateTime) and two GridNumericColumns(datafield of type Decimal and currentfilterfunction is GreaterThanOrEqualTo).

Filtering with two GridBoundColumns is working fine. Filtering in GridNumericColumns seperately are working fine.
But have problem if filter by combining two GridNumericColumns. 

There are some rows with Numeric Values as shown below . Ex
Col1   Col2
1000 1000
1200 1235
1250 1270
1400 1450
1500 1567

If I enter 1250 in Col 1 or Col 2 seperately , it is giving 3 rows.

When I enter 1250 in Col1 and 1250 in Col 2 filters, then actual output rows should be
1250 1270
1400 1450
1500 1567
Which is not working.

I entered 1250 in one col, and exact values (like 1270 or 1450 or 1567) in other col instead of 1250, then in the out that specifc row is displayed.

I don't know where the problem is. 
Any suggestion pls,
AV





Andrey
Telerik team
 answered on 16 Dec 2011
1 answer
80 views
So I know there are many demos for this but for some reason it's not working for me. A very simple demo like this will help me out greatly.
I want the loading panel to show the following event as it happens.

<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>       
            <rad:AjaxSetting AjaxControlID="btnSavePhoto">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="pnlLoad" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </rad:AjaxSetting>            
        </AjaxSettings>       
</rad:RadAjaxManager>
 
<rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Skin="Hay" runat="server"></rad:RadAjaxLoadingPanel>
 
 
<asp:Panel ID="pnlLoad" Visible="false" runat="server">
Lalalalala Lalalalalal Lalalalalal Lalalalalal Lalalalalal Lalalalalal<br />
Lalalalala Lalalalalal Lalalalalal Lalalalalal Lalalalalal Lalalalalal<br />
Lalalalala Lalalalalal Lalalalalal Lalalalalal Lalalalalal Lalalalalal<br />
</asp:Panel>
 
<rad:RadButton ID="btnSavePhoto" runat="server" Skin="Office2007" OnClick="btnSubmit_Click" Text="Click Me"></rad:RadButton>

I just want the loading panel to display over pnlLoad while it becomes visible. Here's the code behind (again very simple):

protected void btnSubmit_Click(object sender, EventArgs e)
   {
       pnlLoad.Visible = true;
   }

Yea this doesn't work for me. Some assistance would be greatly appreciated. Thanks.
Kevin
Top achievements
Rank 2
 answered on 16 Dec 2011
1 answer
118 views
I have a grid that has a GridButtonColumn as the first column.  When the user clicks the button, the ItemCommand event is supposed to fire.  It does for some users but not all.  Everyone uses the same browser version & OS version (company configuration).

The grid is defined like this:
<t:RadGrid ID="rgTimeMaterial" runat="server" PageSize="200" AllowPaging="True" AllowSorting="True"
    AllowMultiRowSelection="true" AutoGenerateColumns="false" Height="510px" GridLines="Both"
    ShowFooter="False" CssClass="w980" ShowHeader="True" EnableViewState="true" >
    <HeaderStyle Wrap="false" />
    <MasterTableView EnableHeaderContextMenu="true" CellPadding="0" CellSpacing="0" AllowMultiColumnSorting="true"
        ClientDataKeyNames="Job_Number,EntityCode,AssignedTo" CssClass="w980">
        <Columns>
              . . .
        </Columns>                            
    </MasterTableView>
    <ItemStyle Font-Names="Arial,Helvetica,sans-serif" Font-Size="9pt" Wrap="false" />
    <ClientSettings ColumnsReorderMethod="Reorder" AllowColumnsReorder="True" AllowColumnHide="true"
        ReorderColumnsOnClient="True">
        <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="OnRowDblClick" OnRowCreated="RadGrid1_RowCreated"
            OnRowSelected="RadGrid1_RowSelected" OnRowDeselected="RadGrid1_RowDeselected"
            OnRowSelecting="RadGrid1_RowSelecting" OnGridCreated="GridCreated" />
        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
        <Scrolling SaveScrollPosition="true" AllowScroll="true" UseStaticHeaders="True">
        </Scrolling>
        <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ShowRowIndicatorColumn="true"
            ClipCellContentOnResize="true" AllowResizeToFit="true" />
    </ClientSettings>
    <PagerStyle Position="Top" Mode="NextPrevAndNumeric" AlwaysVisible="true" />
</t:RadGrid>


I'm also using a RadAjaxManager object that is defined as follows:
<t:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <t:AjaxSetting AjaxControlID="rgTimeMaterial">
            <UpdatedControls>
                <t:AjaxUpdatedControl ControlID="rgTimeMaterial" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </t:AjaxSetting>
      </AjaxSettings>
    <ClientEvents OnResponseEnd="RequestEnd" />
</t:RadAjaxManager>

Everyone's browser settings should be the same as they are configured by IT from the same "image".  Any help would be really appreciated!

Thanks,
James
Tsvetina
Telerik team
 answered on 16 Dec 2011
2 answers
359 views
This should be simple but I am getting an error 'oWnd is Null' in Firefox error console when the function is called
The context is an asp.net vb child page which uses a masterpage containing the Script Manager.

Can someone put me out of my misery?

The window is simply
<telerik:RadWindow ID="RadWindow1" runat="server">
   </telerik:RadWindow>

and the javascript is 

<script type="text/javascript">
        function UseRadWindow() {
            var oWnd = $find("<%= RadWindow1.ClientID %>");
            oWnd.show();
            oWnd.setSize(400, 400);
            oWnd.setUrl("http://www.yahoo.com");
            oWnd.minimize();
            oWnd.maximize();
            oWnd.restore();
        }
   </script>
Kevin
Top achievements
Rank 2
 answered on 16 Dec 2011
1 answer
87 views
Hi,

I have bunch of raddock zones in my page and the user of our page often changes the size/position of docks to their liking. So to achieve that we have used this piece of code:
var dockStates = dockLayout.GetRegisteredDocksState();
            var serializer = new JavaScriptSerializer();
            var converters = new List<JavaScriptConverter>();
            converters.Add(new UnitConverter());
            serializer.RegisterConverters(converters);
 
            string stateString = dockStates.Select(state => serializer.Serialize(state)).Aggregate(String.Empty, (current, ser) => current + "|" + ser);

This code works perfectly fine. Now our requirement is: the moment docks are repositioned/resized on the page, the preferences should be saved. I tried adding autopostback - true for all the individual rad-docks and also OnDockPositionChanged event and added the above code. But the code dockLayout.GetRegisteredDocksState() is not giving up-to-date change. 

Can you please assist on how to achieve this?
Regards,
Kishan G K
Slav
Telerik team
 answered on 16 Dec 2011
5 answers
114 views

Hi ,

I am using the radspell control in client side and this will be get  triggered when the user clicks on the external  button called [Spell check] .
When reaching last incorrect word in 'Not in dictionary' section in spell check window, on clicking the incorrect word the user is able to edit that wrong value. After editing that value the message will come as 'Spell check is complete'. On clicking the [Spell check] button again Spell check window dispalying with the edited value in "Not in dictionary " column and showing the mesage as "Spell check is complete"

Note : The issue is occurring while editing the last incorrect word only. If a word is corrected in middle of the spell check, this issue will not reoccur.

Can you help me out to clear that "not in dictionary" text box values ?

Rumen
Telerik team
 answered on 16 Dec 2011
6 answers
287 views
When spell checking any rich formatted text, I keep receiving the following error:

A potentially dangerous Request.Form value was detected from the client (CommandArgument=&quot;s&lt;teleriklf /&gt;&lt;teleri...&quot;).

I added the following to web.config, but it does not solve the problem:

<location path="Telerik.Web.UI.SpellCheckHandler.axd">

    <system.web>

        <pages validateRequest="false"></pages>

    </system.web>

</location>

Any ideas?

 

Rumen
Telerik team
 answered on 16 Dec 2011
9 answers
2.0K+ views
hi,
   how to resolve this error   " unrecognized tag prefix or device filter 'telerik' "

Thanks in advance


Zÿm
Top achievements
Rank 1
 answered on 16 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?