Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
265 views
Hi All

I want to get the scheduler to scroll to the current time when the page is loaded,
I have found this article but it doesn't seem to function?

Any ideas would be most appreciated.

Many Thanks

Regards

Darren
Cush
Top achievements
Rank 1
 answered on 20 Feb 2011
4 answers
121 views
Hi Team,

         I'm not family with Radcontrol. I'm trying and using it. Currently i have face with this problem. We can be run js function from codebehind. But when i call rad window function, it cannot be fire.

Here is my sample code, i refer from rad window sample code.
JS
function openWin(url,winid)
        {
            var _contparameter='';
            switch(winid)
            {
                case "_radWinItem":
                    _contparameter=document.getElementById('<%=this._itms.ClientID%>').value;
                    break;
                case "_radWinCustomer":
                    _contparameter='';
                    break;
                default:   
            }
            var oWnd = radopen(url+_contparameter, winid);
       }

CS
protected void TextBox1_TextChanged(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(GetType(), "Javascript", "javascript: openWin('item.aspx','_radWin'); ", true);
    }


Kindly, pls help to me. i need urgent.
One more thing, when i call above function 1st time i saw js error in IE. And then 2nd i don't see js error. What wrong it?

Best Regards,
ALEX
Top achievements
Rank 1
 answered on 20 Feb 2011
2 answers
101 views
I have been trying to get the standard RadGrid filtering to work properly but havent been able to.  I'm wondering if it might have to do with the fact that the RadGrid is using data from an XmlDataSource.  I do noticed that if I changed the datasource to a SqlDataSource instance, then the filter works just fine.    

Any help or comment is greatly appreciated.

Shash
Top achievements
Rank 1
 answered on 20 Feb 2011
1 answer
224 views
Hi,
i have the following issues when the user enters the wrong text into a RadTextbox. i've implemented the code below which i found here on this forum to detect if a proper email was entered...while it works at first...the problem is when the wrong/invalid email is entered the error shows up but will not go away.

example: if i were to enter help@df or some other invalid form... the error pops up (which is great)...however if i then fix the issue like help@df.com, the error still shows so its like its remembering part of what i entered and still showing the error.

if i were to enter a complete new address like please@please.com then the error is removed.

so as you can see if the user puts in the wrong email or misses something they will be warned, but the warning will remain even after they fix the issue.

how do  i refresh the validation process for this Textbox or fix this issue.
1. can i clear the validation process with a javascript?
2. maybe different method?


 <telerik:RadTextBox ID="RadTextBox1" runat="server" Width="330px" Skin="Vista" TextMode="MultiLine"
  CssClass="emailcombobox" Font-Names="Arial" Font-Size="10pt" ForeColor="#3366CC"
  ClientEvents-OnBlur="blur" AutoPostBack="true">
   </telerik:RadTextBox>

    <asp:RegularExpressionValidator ID="emailValidator" runat="server" Display="Dynamic"
     SetFocusOnError="True" ErrorMessage="This field may contain only valid e-mail address characters."
    ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"
    ControlToValidate="RadTextBox1">
    </asp:RegularExpressionValidator>
Vasssek
Top achievements
Rank 1
 answered on 19 Feb 2011
4 answers
200 views
Does anyone know how a multiline RadTextBox can be set to start at the top?  I currently have very large text columns that get binded to a radtextbox multiline with scrolling, however when the page is loaded the textbox is already scrolled all the way to the bottom.  I want it to just load the textbox, but keep the scroll position at the top.  A standard asp:textbox does this by default.

Any ideas?
Shawn
Top achievements
Rank 1
 answered on 19 Feb 2011
2 answers
143 views
hi

this is srikanth,

in my hosted environment progress area is not working where as in local machine it is working fine.regarding this and hanging the application telerik forum members are opened a ticket ( 314703).the example sent by that ticket is working fine in local and hosted machine.

problem is,in my application local is working fine where as same files and same web.config file in the hosted server not working.
we are using the rad progress area for checking the file size at client side. but there is no response for the ticket.


local and hosted  system config

window 2003 server,browser IE6.

please reply me


thanks and Regards
Srikanth.N
gaurav
Top achievements
Rank 1
 answered on 19 Feb 2011
1 answer
84 views
We have a number of ComboBoxes in our project where EnableLoadOnDemand = True.

When I set the SelectedValue of a ComboBox from the code behind, the ComboBox Text does not update after asynchronous postback.  If I then click the ComboBox, the right value is highlighted, but unless the ComboBox has focus and is expanded, it does not display the correct text.

I've been able to work around this by doing something like:

With RadComboBox1

.SelectedValue = 1

.Text =.SelectedItem.Text

End With

When I disable LoadOnDemand, everything works as expected.

Is this a bug, or am I missing something about how LoadOnDemand functions?

Thanks for any help/input.

Kalina
Telerik team
 answered on 18 Feb 2011
4 answers
233 views
Hi,
I need to combine following css files

"jquery-ui-1.7.2.custom.css"

"Content/DevKit5.css"
How can achieve the same from Radstylesheetmanager? Please help.

msigman
Top achievements
Rank 2
 answered on 18 Feb 2011
0 answers
58 views
I'm trying the solution for having the full title displayed in the scheduler located here. http://www.telerik.com/support/kb/aspnet-ajax/scheduler/auto-expand-the-height-of-the-appointment.aspx

However it states that it will not work with multiday appointments which I have. Is there a way or setting to have the scheduler display the multiday appointment on each day? So it would appear as if it was a seperate appointment on each day. I believe this would allow the solution posted above to work.

Thanks
Jeff
Top achievements
Rank 1
 asked on 18 Feb 2011
2 answers
267 views
Hi,

I have a page with a grid and a commanditemtemplate with link buttons.  I am trying to access the buttons in the command item template on the page pre-render event.  Based on the samples I have found I added the following code to the pre-render event, but I keep getting the IndexOutOfRange exception error on the first line.  

Private Sub WBC_SEC_Security_Users_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender

 

Dim cmditem As GridCommandItem = DirectCast(rgvSecurityUsers.MasterTableView.GetItems(GridItemType.CommandItem)(0), GridCommandItem)

 

 

 

Dim lnkAdd As LinkButton = TryCast(cmditem.FindControl("lbtAdd"), LinkButton)

 

 

 

 

 

End Sub



Reading through the forums the problem seems to be caused by having the CommandItemDisplay property set to none but I have mine set to Top.  The only thing that is different on my page is that it is has a master page.

Does anyone know what could be causing this problem.

Thank you for your help.
Tracy

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/IPSMaster.Master" CodeBehind="WBC SEC Security Users.aspx.vb" Inherits="IPS_Gateway.WBC_SEC_Security_Users" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
    
<asp:Content ID="cntMain" ContentPlaceHolderID="cphMainContent" runat="server" >
  
  
<asp:SqlDataSource ID="SQLDS_SecurityUsers"     runat="server"  ConnectionString="<%$ ConnectionStrings:IPSDataConnectionString %>"  
        SelectCommandType="StoredProcedure" SelectCommand="[Security].[DSP_SecurityUsers-SEL-INS-UPD-DEL]" >
        <SelectParameters>
            <asp:Parameter Name="strCommandType" Type="String" DefaultValue="Select" />
        </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SQLDS_Employees"     runat="server"  ConnectionString="<%$ ConnectionStrings:IPSDataConnectionString %>"  
        SelectCommandType="StoredProcedure" SelectCommand="[Employees].[DSP_EmployeeMaster-Select]" />
  
<asp:SqlDataSource ID="SQLDS_SecurityType"     runat="server"  ConnectionString="<%$ ConnectionStrings:IPSDataConnectionString %>"  
        SelectCommandType="StoredProcedure" SelectCommand="[Security].[DSP_SecurityIdentifiers-Select]" >
        <SelectParameters>
            <asp:Parameter Name="strIdentifierType" Type="String" DefaultValue="Type" />
        </SelectParameters>
</asp:SqlDataSource>
  
<asp:SqlDataSource ID="SQLDS_SecurityStatus"     runat="server"  ConnectionString="<%$ ConnectionStrings:IPSDataConnectionString %>"  
        SelectCommandType="StoredProcedure" SelectCommand="[Security].[DSP_SecurityIdentifiers-Select]" >
        <SelectParameters>
            <asp:Parameter Name="strIdentifierType" Type="String" DefaultValue="Status" />
        </SelectParameters>
</asp:SqlDataSource>
  
  
<asp:panel ID="pnlPage"                                 runat="server"  SkinId="skn_GPC01_Panel_MainContent">
        
      <telerik:RadAjaxManager ID="RadAjaxManager2"  runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgvSecurityGroups">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgvSecurityUsers" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="rwmSecuritySettings" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Center"  ZIndex="150"  
        <asp:Image ID="imgLoading" runat="server" ImageUrl='<%$Resources:Images, LoadingBlack %>' AlternateText="Loading"   />
    </telerik:RadAjaxLoadingPanel>
  
  
  
    <asp:panel ID="pnlPageHeader"                runat="server"  cssClass="css_GPC01_Panel_PageHeading" >       
        <asp:Label ID="txtPageTitle"             runat="server"  CssClass="css_GPC01_Label_PageTitle" Text="Security Users" />   
        <asp:ImageButton ID="ibtPageInformation" runat="server"  SkinID="skn_GPC01_ImageButton_PageInformation"  />
        <asp:HiddenField ID="hdfObjectId"        runat="server" />
    </asp:panel>    
  
    <asp:Panel ID="pnlPageContent"               runat="server"  cssClass="css_GPC01_Panel_PageContent" >     
        <telerik:RadGrid ID="rgvSecurityUsers"   runat="server"  DataSourceID="SQLDS_SecurityUsers" 
                EnableEmbeddedSkins = "true"     Skin="WebBlue"
                AllowMultiRowSelection="false" 
                AllowAutomaticDeletes="True" 
                AllowAutomaticInserts="True"  
                AllowAutomaticUpdates="True"  
                AllowPaging="True" 
                EnableViewState ="true"                 
                AutoGenerateColumns="False"
                height="560px">
                                  
            <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
            <ClientSettings AllowColumnsReorder="false" EnablePostBackOnRowClick="true" 
                            AllowExpandCollapse="true"   >  
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </ClientSettings>
            <MasterTableView    DataSourceID="SQLDS_SecurityUsers" DataKeyNames="UserID, UserLoginId"     
                EditMode="InPlace" CommandItemDisplay="Top"  PageSize="30"   >
                <CommandItemTemplate >
                    <div style="padding: 5px 5px;">
                        <asp:LinkButton ID="lbtAdd"          runat="server" CommandName="InitInsert"     ToolTip="Add New Group"                Visible='<%# Eval("hdfAdd") And (rgvSecurityUsers.EditIndexes.Count > 0 or Not rgvSecurityUsers.MasterTableView.IsItemInserted) %>'><asp:Image ID="imgAdd" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images,AddRecord20%>" /> Add </asp:LinkButton>  
                        <asp:LinkButton ID="lbtEdit"         runat="server" CommandName="EditSelected"   ToolTip ="Edit Group"                  Visible='<%# Eval("hdfEdit") And (rgvSecurityUsers.EditIndexes.Count = 0 and Not rgvSecurityUsers.MasterTableView.IsItemInserted) %>'>          <asp:Image ID="Image1" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images, EditRecord20%>"/> Edit </asp:LinkButton>  
                        <asp:LinkButton ID="lbtCancel"       runat="server" CommandName="CancelAll"      ToolTip ="Cancel Edit/Add"             Visible='<%# rgvSecurityUsers.EditIndexes.Count > 0 Or rgvSecurityUsers.MasterTableView.IsItemInserted %>'><asp:Image ID="imgCancel" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images,CancelRecord20%>" /> Cancel </asp:LinkButton>  
                        <asp:LinkButton ID="lbtSaveNew"      runat="server" CommandName="PerformInsert"  ToolTip ="Save New Group"              Visible='<%# rgvSecurityUsers.MasterTableView.IsItemInserted%>'><asp:Image ID="imgSaveNew" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images,SaveRecord20%>" /> Save New</asp:LinkButton>  
                        <asp:LinkButton ID="lbtDelete"       runat="server" CommandName="DeleteSelected" ToolTip ="Delete Group"                Visible='<%# Eval("hdfDelete") And (rgvSecurityUsers.EditIndexes.Count = 0 and Not rgvSecurityUsers.MasterTableView.IsItemInserted) %>'><asp:Image ID="imgDelete"       runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images,DeleteRecord20%>" />Delete </asp:LinkButton>  
                        <asp:LinkButton ID="lbtSave"         runat="server" CommandName="UpdateEdited"   ToolTip ="Save Changes"                Visible='<%# rgvSecurityUsers.EditIndexes.Count > 0 AND Not rgvSecurityUsers.MasterTableView.IsItemInserted%>'><asp:Image ID="Image2" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images,SaveRecord20%>" />  Update </asp:LinkButton>  
                        <asp:LinkButton ID="lbtSettings"     runat="server" CommandName="ShowSettings"   ToolTip ="Edit/View Security Settings" Visible='<%# rgvSecurityUsers.EditIndexes.Count=0 AND Not rgvSecurityUsers.MasterTableView.IsItemInserted%>'><asp:Image ID="Image3" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$ Resources:Images,SecuritySettings20%>" /> Security Settings  </asp:LinkButton>  
                        <asp:LinkButton ID="lbtRefresh"      runat="server" CommandName="RebindGrid"     style="position:absolute;Left:930px;" ><asp:Image id="imgRefresh" runat="server" CssClass="css_GFS01_Image_Align" ImageURL="<%$Resources:Images, ReloadBlue20 %>"  />Refresh Grid</asp:LinkButton>                     
                    </div>
                </CommandItemTemplate>
                    <Columns>                    
                        <telerik:GridBoundColumn    DataField="UserId"                   UniqueName="UserId"             HeaderText="Id"            HeaderStyle-HorizontalAlign="Left"     HeaderStyle-Width="50px"   ReadOnly="true"/>
                        <telerik:GridTemplateColumn UniqueName="gtcEmployeeNumber" 
                            HeaderText="Employee"   HeaderStyle-Width="70px"
                            SortExpression="EmployeeNumber">
                            <FooterTemplate> Template footer</FooterTemplate>
                            <FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "EmployeeNumber")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox runat="server" ID="EmployeeNumber"  DataSourceID="SQLDS_Employees"
                                    DataValueField="EmployeeNumber"  DataTextField="EmployeeName"                                     
                                    AutoPostBack="true"
                                    HighlightTemplatedItems="true"  Height="200px" Width="150px" 
                                    DropDownWidth="400px"
                                    OnSelectedIndexChanged="OnSelectedIndexChangedHandler">
                                    <HeaderTemplate>
                                        <ul>
                                            <li class="css_GFS01_Combo_Col1">Name</li>
                                            <li class="css_GFS01_Combo_Col2">Emp#</li>
                                        </ul>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <ul>
                                            <li class="css_GFS01_Combo_Col1">  <%#DataBinder.Eval(Container, "Text")%> </li>
                                            <li class="css_GFS01_Combo_Col2">  <%#DataBinder.Eval(Container, "Value")%></li>
                                        </ul>
                                    </ItemTemplate>
                                </telerik:RadComboBox>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn     DataField="UserName"                UniqueName="UserName"           HeaderText="User Name"     HeaderStyle-HorizontalAlign="Left"     HeaderStyle-Width="150px"   ColumnEditorID ="gtcEditor1"/>
                        <telerik:GridBoundColumn     DataField="UserLoginId"             UniqueName="UserLoginId"        HeaderText="Login Id"      HeaderStyle-HorizontalAlign="Left"     HeaderStyle-Width="150px"   ColumnEditorID ="gtcEditor1"/>
                        <telerik:GridDropDownColumn  DataSourceID="SQLDS_SecurityType"   DropDownControlType="RadComboBox"                     
                                                     DataField="SecurityType"            UniqueName="SecurityType" 
                                                     ListTextField="Level2"              ListValueField="Level2"                            
                                                     HeaderText="Security Type"          HeaderStyle-Width="100px"   
                                                     DefaultInsertValue="Group" />
                          
                        <telerik:GridDropDownColumn  DataSourceID="SQLDS_SecurityStatus" DropDownControlType="RadComboBox"            
                                                     DataField="UserStatus"              UniqueName="UserStatus" 
                                                     ListTextField="Level2"              ListValueField="Level2"                            
                                                     HeaderText="Status"                 HeaderStyle-Width="100px"   
                                                     DefaultInsertValue="Active" />
                                                          
                        <telerik:GridBoundColumn     DataField="CreatedBy"               UniqueName="CreatedBy"         HeaderText="Created By"     HeaderStyle-HorizontalAlign="Left"     HeaderStyle-Width="100px"   ItemStyle-HorizontalAlign="Left"    ReadOnly="true"  />
                        <telerik:GridBoundColumn     DataField="CreatedDate"             UniqueName="CreatedDate"       HeaderText="Created Date"   HeaderStyle-HorizontalAlign="Center"   HeaderStyle-Width="120px"   ItemStyle-HorizontalAlign="Center"  DataType="System.DateTime" DataFormatString="{0:MM/dd/yy h:mm:ss t}"   ReadOnly="true" />
                        <telerik:GridBoundColumn     DataField="UpdatedBy"               UniqueName="UpdatedBy"         HeaderText="Updated By"     HeaderStyle-HorizontalAlign="Left"     HeaderStyle-Width="100px"   ItemStyle-HorizontalAlign="Left"    ReadOnly="true" />
                        <telerik:GridBoundColumn     DataField="UpdatedDate"             UniqueName="UpdatedDate"       HeaderText="Updated Date"   HeaderStyle-HorizontalAlign="Center"   HeaderStyle-Width="120px"   ItemStyle-HorizontalAlign="Center"  DataType="System.DateTime" DataFormatString="{0:MM/dd/yy h:mm:ss t}" ReadOnly="true" />
                    </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <telerik:GridTextBoxColumnEditor ID="gtcEditor1" runat="server" TextBoxStyle-Width="150px" />         <telerik:RadWindowManager ID="rwmMessageBox" runat="server" Behaviors="Close, Move"  EnableViewState ="false" Animation="Slide" AnimationDuration="5"  Height="400" Width = "400" VisibleOnPageLoad ="true" DestroyOnClose="true"  Modal="true"   EnableEmbeddedSkins="true" Skin="Black" />
        <telerik:RadWindowManager ID="rwmSecuritySettings" runat="server" Behaviors="Close, Move"  EnableViewState ="false" Animation="Slide" AnimationDuration="5"  Height="700" Width = "835" VisibleOnPageLoad ="true" DestroyOnClose="true"  Modal="true"  Style="z-index:3000"  />
  
    </asp:Panel>
    <asp:Panel ID="pnlFooter" runat="server"  CssClass="css_GPC01_Panel_Footer">
        <asp:Label ID="lblReadOnly" runat="server" Text="Read Only" CssClass="css_GPC01_Footer_Labels"/>
        <asp:Label ID="lblAdd"      runat="server" Text="Add"       CssClass="css_GPC01_Footer_Labels"/>
        <asp:Label ID="lblEdit"     runat="server" Text="Edit"      CssClass="css_GPC01_Footer_Labels"/>        
        <asp:Label ID="lblDelete"   runat="server" Text="Delete"    CssClass="css_GPC01_Footer_Labels"/>
        <asp:Label ID="lblObject"   runat="server" Text="Object"    CssClass="css_GPC01_Footer_Labels"/>
        <asp:HiddenField ID="hdfReadOnly"   runat="server" />
        <asp:HiddenField ID="hdfAdd"        runat="server" />
        <asp:HiddenField ID="hdfEdit"       runat="server" />
        <asp:HiddenField ID="hdfDelete"     runat="server" />
    </asp:Panel>
</asp:panel
</asp:Content>




 


 Reading through the forums the problem seems to be caused by not having the CommandItemDisplay property set to none but I have mine set to Top.  The only thing that is different on my page is that it is has a master page.

 

Tracy
Top achievements
Rank 1
 answered on 18 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?