Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
423 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
129 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
163 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
334 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.1K+ 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
3 answers
416 views
In my project i am using Multi-column combobox... i need  insert, data text field and data value field to my database.. is this possible??? 
OR can i get two data value fields from a combobox? help me
Bozhidar
Telerik team
 answered on 16 Dec 2011
12 answers
174 views
Hello

I have a problem on Radscheduler with RadToolTip

Move an appointment, and juste after (before the scheduler is refresh), point your mouse on a appointment to show the tooltip... Result: the scheduler is not refreshed (UI doesn't get updated) .

I can reproduce this problem on your demo page :

To be sure to reproduce this, drag and drop the appointment on the other appopoointment, and before the scheduler is refreshed, show a tooltip. The result is : the appointments are not juxtaposed...

How can we prevent that ?

I use Q3 release (2011.3.1115.35)
Thanks
Peter
Telerik team
 answered on 16 Dec 2011
1 answer
90 views

When I change the "Page Size" from 10 to 20 the grid does not re-size to show all 20 and the nav bar. It scrolls the grid. I need the horizonal scroll bar as i display many items. I would like it to display all 20 items without scrolling.

<telerik:RadGrid AutoGenerateColumns="False" ID="grdPendingAuths" AllowSorting="True" AllowPaging="True" PagerStyle-AlwaysVisible="True" PagerStyle-Position="Bottom" PageSize="10"
    GridLines="Both" Skin="WebBlue" EnableEmbeddedSkins="false" BorderColor="#0066B3"
    BorderWidth="2" OnSortCommand="grdPendingAuths_SortCommand" OnNeedDataSource="grdPendingAuths_OnNeedDataSource"
    Width="9in" runat="server" CellSpacing="0">
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="false" SaveScrollPosition="false">
        </Scrolling>
        <ClientEvents OnGridCreated="GridCreated" />
    </ClientSettings>
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" />
    <MasterTableView TableLayout="Auto" Width="9in" AllowNaturalSort="false" >
        <Columns>
            <telerik:GridBoundColumn HeaderText="Status" DataField="ApprovalStatus" UniqueName="ApprovalStatus"
                SortExpression="ApprovalStatus" HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="False"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Originator" DataField="CreatedBy" UniqueName="CreatedBy"
                SortExpression="CreatedBy" ItemStyle-Wrap="False" ShowSortIcon="False" ShowFilterIcon="False"
                ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="MemberID" DataField="MemberID" UniqueName="MemberID"
                SortExpression="MemberID" Visible="False" ShowSortIcon="False" ShowFilterIcon="False"
                ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Member Name" DataField="Member Name" UniqueName="MemberName"
                SortExpression="Member Name" ItemStyle-Wrap="False" ShowSortIcon="False" ShowFilterIcon="False"
                ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="AuthID" DataField="AuthID" UniqueName="AuthID"
                SortExpression="AuthID" Visible="False" ShowSortIcon="False" ShowFilterIcon="False"
                ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Auth #" DataField="AuthNumber" UniqueName="AuthNumber"
                SortExpression="AuthNumber" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width=".75in"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Adj #" DataField="AuthAmendment" UniqueName="AuthAmendment"
                SortExpression="AuthAmendment" ItemStyle-Wrap="False" HeaderStyle-Width=".3in"
                ItemStyle-HorizontalAlign="Right" DataFormatString="{0:#0}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False" DataType="System.Int32"
                HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Start Date" DataField="StartDate" UniqueName="StartDate"
                SortExpression="StartDate" DataType="System.DateTime" HeaderStyle-Width=".65in"
                ItemStyle-Wrap="False" DataFormatString="{0:MM/dd/yyyy}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="End Date" DataField="EndDate" UniqueName="EndDate"
                SortExpression="EndDate" DataType="System.DateTime" HeaderStyle-Width=".65in"
                ItemStyle-Wrap="False" DataFormatString="{0:MM/dd/yyyy}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Max Units" DataField="MaxUnits" UniqueName="MaxUnits"
                SortExpression="MaxUnits" ItemStyle-Wrap="False" HeaderStyle-Width=".3in" DataType="System.Int32"
                DataFormatString="{0:###,##0}" ItemStyle-HorizontalAlign="Right" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False" HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Division" DataField="Division" UniqueName="Division"
                SortExpression="Division" ItemStyle-Wrap="False" HeaderStyle-Width=".5in" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False" ItemStyle-HorizontalAlign="Center"
                HeaderStyle-HorizontalAlign="Center">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Service Description" DataField="Service Description"
                UniqueName="ServiceDescription" SortExpression="Service Description" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False" ItemStyle-Wrap="False">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 16 Dec 2011
1 answer
148 views
Hi,

I have one combobox and two radlistboxes. The first listbox's datasource is changed when the comboboxes' selecteditemindex changes.

When I do the following:

Change combobox, pick two items from the first listbox and add them to the second listbox.
Change combobox again and pick another item and add it to the second listbox.

The items inside the second listbox are empty now.

Is there a workaround for this or am I doing something wrong (like resetting datasource or postback or so?).

Regards.
Bozhidar
Telerik team
 answered on 16 Dec 2011
7 answers
360 views
Hi,

I have the following grid, all the  GridBoundColumn's populate when the grid is loaded but the radcombobox does not. How can I get it to display the current value?  Does anyone have an example of a radgrid where one of the columns is a drop down or combo box?

 


Thanks for any help in advance,

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="Label1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid 
    ID="RadGrid1" 
    DataSourceID="SessionDataSource1" 
    OnItemDataBound = "RadGrid1_ItemDataBound"
    Width="97%"
    ShowStatusBar="True" 
    AllowSorting="True" 
    PageSize="7" 
    GridLines="None" 
    AllowPaging="True"
    runat="server" 
    AllowAutomaticUpdates="True" 
    AutoGenerateColumns="False">
    <MasterTableView 
                TableLayout="Fixed" 
                DataKeyNames="checklistNo" 
                EditMode="InPlace" 
                DataSourceID="SessionDataSource1">
      <Columns>
        <telerik:GridBoundColumn UniqueName="CategoryID" DataField="CategoryID" HeaderText="CategoryID" ReadOnly="True" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="checklistNo" DataField="checklistNo" HeaderText="checklistNo"  Display="False" ReadOnly="True" >
            <HeaderStyle Width="25%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="Related_item_type_label" DataField="Related_item_type_label" HeaderText="Question"  ReadOnly="True">
            <HeaderStyle Width="30%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="Service_impact_category" DataField="Service_impact_category" ReadOnly="True" HeaderText="Service Impact" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
         <telerik:GridTemplateColumn UniqueName="Inspection Result" DataField="INSPECTION_RESULT" HeaderText="Inspection Result">
            <HeaderStyle Width="17%" />   
            <ItemStyle Width="17%" />
            <EditItemTemplate>
               <telerik:RadTextBox Visible="False" AutoPostBack="true" ID="lblInspectionResult" runat="server"  Text='<%#Eval("INSPECTION_RESULT")%>'>
               </telerik:RadTextBox>
               <telerik:RadComboBox visible="True" ID="cbInspectionResult" AppendDataBoundItems="true" runat="server"  DataTextField="INSPECTION_RESULT" DataValueField="INSPECTION_RESULT">
               </telerik:RadComboBox>
            </EditItemTemplate>
         </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn UniqueName="Inspection_Fault" DataField="Inspection_Fault" HeaderText="Fault" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn UniqueName="inspection_comment" DataField="inspection_comment" HeaderText="Comments" >
            <HeaderStyle Width="10%" />
        </telerik:GridBoundColumn>
      </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents 
              
            OnRowClick="RowClick"
            OnRowDblClick="RowDblClick"
              
            OnGridCreated="GridCreated" 
            OnCommand="GridCommand" />
    </ClientSettings>
</telerik:RadGrid>

,
Judy

Charlyne Zeno
Top achievements
Rank 1
 answered on 16 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?