Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
293 views
Hello,

After upgrade my code to use with the latest version, 2013.2.611.40, the server-side code that updates the page's title in the pop-up window doesn't work any more. Could you take a look and let me know what I can do to make it happen. Thanks.

Tri

 

Partial Class PopWin
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.Title = Now.ToString
 
    End Sub
End Class
 
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="PopWin.aspx.vb" Inherits="PopWin" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
    </div>
    </form>
</body>
</html>
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
            function ShowEditForm(pageUrl, id, iWidth, iHeight) {
                var nWindow = window.radopen(pageUrl + ".aspx?id=" + id, "UserListDialog");
                nWindow.setSize(iWidth, iHeight);
                nWindow.center();
                nWindow.modal = true;
                nWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
                nWindow.show();
                return false;
            }
        </script>
    <telerik:RadScriptBlock runat="server" >
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <asp:Button ID="btn" runat="server" Text="Pop Window" OnClientClick="return ShowEditForm('PopWin', 0, 400, 300);" />
    </div>
    <telerik:RadWindowManager ID="WinMgr" runat="server" KeepInScreenBounds="true" Style="z-index: 7100;">
        <Windows>
            <telerik:RadWindow ID="UserListDialog" runat="server" Behaviors="Close, Move" Height="300px"
                Left="10px" Modal="true" ReloadOnShow="true" Opacity="100" Title="User List Dialog"
                Top="10px" Width="500px" KeepInScreenBounds="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    </form>
</body>
</html>

 

 

 

Michael
Top achievements
Rank 1
 answered on 12 Jul 2013
1 answer
92 views
I have AllowAutomaticInserts = false

but it still shows on the grid is it because I have editMode = Batch?

<telerik:RadGrid ID="dgGrid" runat="server"
            AllowAutomaticUpdates="True"
            AutoGenerateColumns="False"
            CellSpacing="0"
            GridLines="None"
            Skin="Sitefinity"
            Width="100%"
            AllowAutomaticDeletes="True"
            AllowAutomaticInserts="False">
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AllowNaturalSort="False" EditMode="Batch" BatchEditingSettings-OpenEditingEvent="DblClick">
                <BatchEditingSettings EditType="Cell" />
                <PagerStyle PageSizeControlType="RadComboBox" />
            </MasterTableView>
            <ItemStyle Wrap="False" />
        </telerik:RadGrid>


=================================== CODE

 

 

With dgGrid

 

 

 

'.MasterTableView.Columns.Add(editcolumn)

 

.MasterTableView.CommandItemDisplay =

 

GridCommandItemDisplay.Bottom

 

.MasterTableView.BatchEditingSettings.EditType =

 

GridBatchEditingType.Row

 

.MasterTableView.AllowAutomaticInserts =

 

False

 

 

 

End With

 



Princy
Top achievements
Rank 2
 answered on 12 Jul 2013
1 answer
90 views
Hi
I want to track multiple people work history in scheduler control, and it should be happened with filter, if i select one user it should show tasks related to that person only.

Left side it should show the user with check boxes and once if i select the check box data should display in scheduler control accordingly.

Could you help me how to apply filters to scheduler control.
Plamen
Telerik team
 answered on 12 Jul 2013
1 answer
128 views
Hi, 
I dont know which section to post this.
I have a sharepoint project. With 2 web parts(assume Grid 1 and 2) each having a radgrid. I created another webpart with having both of those webparts as usercontrol. Grid 1 is a normal radgrid and Grid 2 has a gridItemTemplate column which has a RadComboBox and a RadListBox. (See attachment for clarification)

I have attached the a sample project. To recreate the issue,  Add the "VisualWebPart1" to a page. It will have 2 grids with no data. Click add record in the top grid (i.e Grid 1). Then click add record on the bottom grid(i.e Grid 2). I get script error on the following line.

"Telerik.Web.UI.RadListBox._preInitialize("ctl00_m_g_48fd96ff_fcd9_4ad7_b892_f17a26434abb_ctl00_grid2_RadGrid2_ctl00_ctl03_ctl01_rdSelectedUsers","0");"

Error : "SCRIPT5007: Unable to get value of the property '_preInitialize': object is null or undefined "


Download Sample Proj.
Plamen
Telerik team
 answered on 12 Jul 2013
1 answer
64 views
Hi,

I have a RadGrid Inside TabTemplate of RadTabStrip. I upload the data to RadGrid from an asp button click event(c# ode).

The problem is I am not able to findcontrol of RadGrid from the button. 

Can someone tell me how to get around this problem?

Code for Button:

protected void Button2_Click(object sender, EventArgs e)
{filldata();
}
filldata()
{
radgrid1.DataSource=list; // list is my data source
radgrid1.DataBind();
}


Also, I don't have license to Radtabs hence using TabTemplate. I have also tried findcontrol but its not working with button EvenArgs.

RadGrid grv1 = (RadGrid)RadTabStrip1.FindControl("radgrid1");

Thanks,
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2013
4 answers
318 views
I'm having an issue where my sorting appears to be working properly on the client, but when i select a row from the sorted records, i get the data for that row from the previous, un-sorted record. 
So if my original data set looked like:
12345

After the sort it looked like:
54321

And i select "4", programmatically it returns "2".

Any ideas?

Thanks in advanced for your help.
Princy
Top achievements
Rank 2
 answered on 12 Jul 2013
1 answer
191 views
I have multiple RadListBox that basically are doing the same and has more likely the same behavior except maybe for the data, so I want to use the same RadContextMenu for all of them but on the OnItemClick(server side) I need to know which of those controls call it, How can I approach this?
Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2013
1 answer
110 views
For some reason the NoMasterRecordsText is not displaying correctly and wrapping to the extreme.

I've attached a picture to visually display what I'm getting, but also Here's the grid code i'm using:
  <telerik:RadGrid ID="grdMarkups" AllowMultiRowSelection="false" PagerStyle-AlwaysVisible="false" PagerStyle-Mode="NextPrevNumericAndAdvanced" runat="server" Width="99.9%" Height="99.9%" AllowPaging="false" AllowSorting="false" AutoGenerateColumns="False" GridLines="None">
    <SortingSettings SortedBackColor="Transparent" />
     
    <MasterTableView AllowPaging="false"  NoMasterRecordsText="There are no markups for this document.">
         
        <Columns>
                   <telerik:GridBoundColumn DataField="Id" Display="false"></telerik:GridBoundColumn>
                                                
            <telerik:GridBoundColumn DataField="Item_Name" HeaderText="Name" Visible="true" ItemStyle-Wrap="false"></telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="Revised_By" HeaderText="Revised By" HeaderStyle-Width="20%"  ItemStyle-CssClass="contactInfoXSmallNormal" ItemStyle-Wrap="true"></telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Revised_Date" HeaderText="Revised On" HeaderStyle-Width="20%"  ItemStyle-CssClass="contactInfoXSmallNormal" ItemStyle-Wrap="true"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="Last_Edit" HeaderText="Last Edit" HeaderStyle-Width="20%"  ItemStyle-CssClass="contactInfoXSmallNormal" ItemStyle-Wrap="true" Display="false"></telerik:GridBoundColumn>
                 <telerik:GridBoundColumn DataField="Original_Filename" HeaderText="Original File" Display="false" ItemStyle-Wrap="true" HeaderStyle-Width="20%"></telerik:GridBoundColumn>
            <telerik:GridHyperLinkColumn  DataNavigateUrlFields="MarkupURL" UniqueName="Markup" HeaderTooltip="Click to view more details about the document" HeaderText="View" Text="View" Target="_blank" HeaderStyle-Width="10%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                </telerik:GridHyperLinkColumn>
 
           <telerik:GridTemplateColumn HeaderText="Download" UniqueName="Download" HeaderStyle-Width="11%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Display="false">
                <ItemTemplate>
                    <button value="Download" style="width:90%"  title="Download this document"  class="contactInfoXXSmall" type="button" onclick="downloadSingleDocument('<%# Eval("Id") %>');">Download</button>
                     </ItemTemplate>      
            </telerik:GridTemplateColumn>
 
                   <telerik:GridTemplateColumn HeaderText="View" HeaderStyle-Width="5%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Display="false">
                <ItemTemplate>
                    <button value="View" style="width:90%" title="View this document" class="contactInfoXXSmall"  onclick="viewSingleDocument('<%# Eval("Id") %>');">View</button>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
                                     
        </Columns>
  
    </MasterTableView>
 
    <ClientSettings EnableRowHoverStyle="false">
                        <Selecting AllowRowSelect="true" />
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                    </ClientSettings>
                     
                                 
 
</telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 12 Jul 2013
1 answer
148 views
Hey, i want to set autocomplete in my textbox search if user already input 9 character in that textbox.
so what can i use to do this? ajax? jquery? or any telerik setting?
anybody know about this? thanks before


FYI: i use a WCF service , not a datasource
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2013
2 answers
140 views
i use RequiredFieldValidator to validate radtextbox,SetFocusOnError="true"
telerik version:2012Q3

first ,enter " ",validate event fire, display “notnull”
sencond,enter “123” ,radtextbox not set value,validate event not fire

asp.net textbox is ok

code:
<telerik:RadTextBox ID="txtAppId" runat="server" Width="300" AutoPostBack="false">
        </telerik:RadTextBox>
        <%--<asp:TextBox ID="txtAppId" runat="server" Width="300" AutoPostBack="false">
        </asp:TextBox>--%>
        <asp:RequiredFieldValidator ID="TextBoxRequiredFieldValidator" runat="server" Display="Dynamic"
            ControlToValidate="txtAppId" Text="NOT NULL" ErrorMessage="NOT NULL" SetFocusOnError="true">                          
        </asp:RequiredFieldValidator>

parlardin
Top achievements
Rank 1
 answered on 12 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?