Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
93 views
Hi Telerik Team,

I don´t know what´s happening. I go to next page in RadGrid and in aleatory way the error message appears (please, see attached image).
I investigated my code line-by-line and I don´t found any problem related with this.
Please, what can I search in my code?

Thanks, best.

Daniel
Daniel Aquere
Top achievements
Rank 2
 answered on 02 May 2011
6 answers
122 views
hello,
I have a grid which has a number of columns,
one of the columns is combobox,
I am getting Data from DB from 2 Tables:

1. a table that populates the combobox - display, code.
2. a table that populates the grid - fields+display.

my problem is that I Indeed get the comboboxes full, but the selected items are always blank .

i tried to change it to label instead of combobox and then i got it right,
but I want it to be combobox.

P. S. I want the combobox to be always avalable to change, without editmode.
Yoni
Top achievements
Rank 1
 answered on 01 May 2011
4 answers
187 views
I'm having a problem with the Editor.  First, it seems to be working just fine, except...

When I create a large block of text in the Editor and then save that text in a SQL Server table, wherever the text ended a line, there is no blank character at the end of the line.  I've attached a screen capture of the SQL server record and you can see (just above the red arrow) where there is no space between the word 'Homes' and the word 'Online', yet when I take this data out the record and display it on a web page, it displays just fine.

Here's my issue...after the editor contents are saved in the SQL database, I process the record searching for certain multi-word strings for some special editing issues involved in translation (without going into too much detail).  If I search this stored string for 'Homes Online Network' the instance shown in the attached graphic is never found -- but it displays just fine with a space between the two words.

Is there some method I can use when retrieving the text field from the SQL database table that will allow my multi-word text search to be successful?

This is probably some kind of stupid question, but I do need the help.  I've read the Editor documentation and searched the knowledgebase, but haven't found anything obvious that helps me.

Thanks in advance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 01 May 2011
2 answers
128 views
Hi:

I am launching a Window maximized, so I just added maximize() to the javascript as follows:

<!-- windows -->
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState="true">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server"
            Height="600" Width="900" Title="Order Maintenance"
            KeepInScreenBounds="True" VisibleTitlebar="true" Modal="true"
            DestroyOnClose="False" ReloadOnShow="true"
            Behaviors="Close, Maximize, Move, Resize" InitialBehaviors="Maximize" />
    </Windows>
</telerik:RadWindowManager>
<!-- javascript -->
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
    <script type="text/javascript">
        //<![CDATA[
        function orderMaintenanceOpenWindow(ordNbr) {
            var winurl = "OrdersMaintenance.aspx?ordernbr=" + ordNbr;
            var oWnd = radopen(winurl, "orderMaintenanceWindow");
            oWnd.maximize();
            return false;
        }
        //]]>
    </script>
</telerik:RadScriptBlock>

Now, the second launch of the window is maximized, but the complete window is modal.  Can not close it, etc...
What am I missing?
Phil
P.S. Sorry the WindowManager is named ordersSelectionRadWindowManager and the window is named orderMaintenanceWindow.
Phil
Top achievements
Rank 2
 answered on 30 Apr 2011
2 answers
202 views
Hello,

I am using Telerik.Web.UI version 2010.2.826.35, and I have a grid with the column shown below. When I export to Excel, I would expect the formatting of the column to be "Short Date" or at least match the date format string that I've defined. However, the cells in Excel show a formatting of "Custom" with the formatting string of "m/d/yyy h:mm". 

This is not the desired behavior since we have clients all over the world and the 'slash' divider means something different in different parts of the world. Instead, we would like it formatted as a Date cell and then it would pick up the local formatting of that user.

<telerik:GridDateTimeColumn
DataField="trans_dt"
HeaderText="Purchase Date"
SortExpression="trans_dt"
UniqueName="PurchaseDate"
CurrentFilterFunction="StartsWith"
AutoPostBackOnFilter="true"
Display="true"
DataFormatString="{0:dd-MMM-yyyy}">
<HeaderStyle Width="130px" />
</telerik:GridDateTimeColumn>


Please let me know if anything can be done.

Thank you,

Scott McNeany
Scott McNeany
Top achievements
Rank 1
 answered on 30 Apr 2011
0 answers
55 views
hi
i use usercontrol in radgrid
i want when page refresh after than radgrid 'data refresh
but i dont want usercontrol'data refresh
do u have any idea?
thanks
niloofar
Top achievements
Rank 1
 asked on 30 Apr 2011
1 answer
101 views

I am using programmatic sorting on my radgrid that has both master and detail data. My sorting works fine for the master table and I am getting my child data via this event:

Private Sub RadGrid1_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind
    Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
    Select Case e.DetailTableView.Name
        Case "Orders"
            Dim CustomerID As String = dataItem.GetDataKeyValue("CustomerID").ToString()
            e.DetailTableView.DataSource = GetDataTable("SELECT * FROM Orders WHERE CustomerID = '" & CustomerID & "'")
        Case "OrderDetails"
            Dim OrderID As String = dataItem.GetDataKeyValue("OrderID").ToString()
            e.DetailTableView.DataSource = GetDataTable("SELECT * FROM [Order Details] WHERE OrderID = " & OrderID)
    End Select
End Sub


What I can not figure out is how to sort my detail table.  In the 
 

 

 

Protected Sub RadGrid1_SortCommand1(sender As Object, e As Telerik.Web.UI.GridSortCommandEventArgs) Handles  RadGrid1.SortCommand

 

 

event I use    e.Item.OwnerTableView.DataSource = m_dtSort and e.Item.OwnerTableView.Rebind() to rebind my MasterTable.  How do I sort my detail data and rebind?

Thanks

John

Princy
Top achievements
Rank 2
 answered on 30 Apr 2011
0 answers
271 views
Hi,
 i am D. Srinivas Rao.
in my aspx page i have a JavaScript function for calling a server side event when click on the Check box. The following is the code for Java Script Function.

<telerik:RadCodeBlock runat="server">

        <script language="javascript" type="text/javascript">

            function GetMessage(sender, args) {

                PageMethods.CompletedCheck();
alert("Hii");

               }

           </script>

         <telerik:RadScriptManager id="RadScriptManager" runat="server"

    EnablePageMethods="True">

</telerik:RadScriptManager>

        </telerik:RadCodeBlock>

and this function called in CheckBox checked event.. the Following is the Code for CheckBox Control

<telerik:GridTemplateColumn UniqueName="Complete" HeaderText="Completed" AllowFiltering="false">

                        <ItemTemplate>

                            <asp:Panel ID="Panel1" runat="server" Width="2px">

                             <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="true" onclick="GetMessage()" />

                            </asp:Panel>

                        </ItemTemplate>

</telerik:GridTemplateColumn>

and my Code Behind is

<System.Web.Services.WebMethod()> _

    Public Shared Sub CompletedCheck(ByVal sender As Object, ByVal e As System.EventArgs)

       //code here

         End Sub

in the above grid template check-box control will fire the JavaScript  function GetMessage() Well, but it doesn't execute the Code Behind Event.

Please Help me how to execute the Code Behind Method  using JavaScript Function..

Thank You
D.Srinivasa Rao


D.SRINIVASA
Top achievements
Rank 2
 asked on 30 Apr 2011
1 answer
164 views
Is there a way for me to set DefaultInsertValue of a column either with server-side or javascript?  I want to put a variable into this property.

Princy
Top achievements
Rank 2
 answered on 30 Apr 2011
0 answers
72 views
Data will be saved only if there is which radtab is changed that controls should be saved .
it's possible in radTabStrip

Problem resolved

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 30 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?