Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
80 views
Hi,
 I've added the spell checker to the tool bar and can see the function working normally except for when adding a word to the dictionary, I get the following error :-

RadSpell error. Server returned error: 403

 

Please, see the help for more details: RadSpell 3.x - Configuration - SpellCheckHandler.

 

/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Spell/Telerik.RadSpellCheckHandler.ashx

 

Forbidden

 

403 FORBIDDEN

 I've seen the same error responded to in the full version, and have set the network service with the relevant write permissions, but I'm still seeing a problem with this. Can you advise?

Thanks,
Jason.

Jason Brownhill
Top achievements
Rank 1
 answered on 28 Aug 2012
3 answers
391 views
Team,

I am removing all data rows of grid from client side.
I wanted to show 
"No records to display."
in grid.
But it does not shows empty row which contains "No records to display".
Please let me know from where I can set this empty row message from clientside?
Following is my code. 
This code works if grid doesn't contain any data but if grid contains the data then it removes the row from the grid but doesn't show
 "No records to display". 

var mastertableview = objgrid.get_masterTableView();
mastertableview.set_dataSource({});
mastertableview.set_virtualItemCount(1);
mastertableview.dataBind();

Regards,
Sampada
Radoslav
Telerik team
 answered on 28 Aug 2012
3 answers
125 views
Hi, 
I am using RadTabStrip with "Metro" skin. By default this skin is blue.

Is it possible to set a custom color of that RadTabStrip?

br,
Jan
Shinu
Top achievements
Rank 2
 answered on 28 Aug 2012
3 answers
274 views
Hi,

I try to edit rows in a RadGrid with EditFormSettings :

<EditFormSettings UserControlName="Controles/ManteminientoGridFacturasGastos.ascx" EditFormType="WebUserControl">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>


When i invoke the click event from the button insert on ManteminientoGridFacturasGastos.ascx i'm not able to capture this event on the RadGrid.
<td>
                        <telerik:RadButton ID="cBtnInsertar" runat="server" Text="Insertar" CommandName="Insert" Visible='<%# (DataItem is Telerik.Web.UI.GridInsertionObject) %>' />
                        <telerik:RadButton ID="cBtnModificar" runat="server" Text="Modificar" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' />
                    </td>
                    <td>
                        <telerik:RadButton ID="cBtnCancelar" runat="server" Text="Cancelar"
                            CausesValidation="false" CommandName="Cancel" onclick="cBtnCancelar_Click" />
                    </td>

For example, when i push the button cBtnInsertar i want to activate the event RadGrid1_InsertCommand on RadGrid but it not invoked.

I need help.

Best regards,
Andrey
Telerik team
 answered on 28 Aug 2012
1 answer
87 views
I have a scenario as below.
There are 3 check boxes.3 textbox associated with each.Grid gets populated on entering a search value in the textbox.On selecting a row on this grid,I need to hide the grid and selected value(one column) is populated into another textbox.I am getting "Object reference not set to an instance of an object.",when I implementing the logic for hiding the grid.Checkbox checked,value entered in search textbox,grid is populated ,a row selected,second textbox populated with grid value,grid gets hidden--> after this process repeated for 2-3 times,again checking on a check box gives the error.
Please find the markup with above controls.

<table width="500px">
           <tr>
               <td>
                   <fieldset id="fssearch" runat="server">
                       <legend>Search </legend>
                       <table>
                           <tr>
                               <td>
                                   <asp:CheckBox ID="CBFile" runat="server" Text="File No" OnCheckedChanged="CBFile_CheckedChanged"
                                       AutoPostBack="true" />
                               </td>
                               <td>
                                   <asp:CheckBox ID="CBname" runat="server" Text="Patient Name" OnCheckedChanged="CBname_CheckedChanged"
                                       AutoPostBack="true" />
                               </td>
                               <td>
                                   <asp:CheckBox ID="CBMobile" runat="server" Text="Mobile No" OnCheckedChanged="CBMobile_CheckedChanged"
                                       AutoPostBack="true" />
                               </td>
                           </tr>                    
                       
                        
                           <tr>                           
                               <td>
                                <asp:TextBox ID="RTFileS" onkeyup="KeyUp();" runat="server" OnTextChanged="RTFileS_TextChanged" Visible="false"></asp:TextBox>                                 
                               </td>
                               <td colspan="2">
                                   <asp:TextBox ID="RTNameS" onkeyup="KeyUp();" runat="server" OnTextChanged="RTNameS_TextChanged" Visible="false"></asp:TextBox>                                 
                               </td>
                               <td>
                                   <asp:TextBox ID="RTMobileS" onkeyup="KeyUp();" runat="server" OnTextChanged="RTMobileS_TextChanged" Visible="false"></asp:TextBox>                               
                               </td>                          
                           </tr>
                           <tr>
                               <td colspan="4">                                                                 
                                   <telerik:RadGrid ID="gvPatientList" runat="server" AllowFilteringByColumn="True"
                                       AllowPaging="True" GridLines="None" OnSelectedIndexChanged="gvPatientList_SelectedIndexChanged" >
                                       <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                                       <GroupingSettings CaseSensitive="false" />
                                       <ItemStyle HorizontalAlign="Left" />
                                       <HeaderStyle HorizontalAlign="Left" />
                                       <AlternatingItemStyle HorizontalAlign="Left" />
                                       <ClientSettings EnablePostBackOnRowClick="true">
                                           <Selecting AllowRowSelect="true" />
                                       </ClientSettings>
                                       <MasterTableView AutoGenerateColumns="False" DataKeyNames="pt_regid">
                                           <CommandItemTemplate>
                                               <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                                           </CommandItemTemplate>
                                           <Columns>
                                               <telerik:GridBoundColumn HeaderText="Patient Name" UniqueName="pt_name" DataField="pt_name"
                                                   AllowFiltering="false">
                                               </telerik:GridBoundColumn>
                                               <telerik:GridBoundColumn HeaderText="File No" UniqueName="pt_fileno" DataField="pt_fileno"
                                                   AllowFiltering="false">
                                               </telerik:GridBoundColumn>
                                               <telerik:GridBoundColumn HeaderText="Mobile" UniqueName="pt_pmobileno" DataField="pt_pmobileno"
                                                   AllowFiltering="false">
                                               </telerik:GridBoundColumn>
                                           </Columns>
                                       </MasterTableView>
                                       <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default">
                                       </HeaderContextMenu>
                                   </telerik:RadGrid>                                   
                               </td>
                           </tr>
                       </table>
                       </fieldset>
               </td>
           </tr>
       </table>


On selecting a row on the grid,I am populating name column value to a textbox  and hiding the grid as below.
protected void gvPatientList_SelectedIndexChanged(object sender, EventArgs e)
    {
 
        GridDataItem RegId = gvPatientList.SelectedItems[0] as GridDataItem;
         string regid = RegId.GetDataKeyValue("pt_regid").ToString();
         
 
         
        foreach (GridDataItem dataItem in gvPatientList.Items)
        {
            if (dataItem.Selected)
            {
                RCFName.Text = dataItem["pt_name"].Text;              
            }
        }
        gvPatientList.Visible = false;             
         
    }


Above mentioned checkboxes act like radio buttons and javascript for the same is as below
<script language="CS" runat="server">
        private void makeRadioGroupFromCheckBoxes(IEnumerable<CheckBox> checkBoxes)
        {
            StringBuilder sb = new StringBuilder();
            foreach (CheckBox cb in checkBoxes)
            {
                foreach (CheckBox innercb in checkBoxes)
                {
                    if (innercb != cb)
                    {
                        sb.Append("document.getElementById('");
                        sb.Append(innercb.ClientID);
                        sb.Append("').checked = false;");
                    }
                }
                cb.Attributes["onclick"] = "if(this.checked){" + sb.ToString() + "}else{this.checked = true;}";
 
                sb = new StringBuilder();
            }
        }      
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                this.makeRadioGroupFromCheckBoxes(new CheckBox[] { CBFile, CBname, CBMobile });              
            }
        }
Grid gets populated on textchanged event and 'onkeyup="KeyUp();' function of the textbox,associated with it as below.
aspx:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            var timer = null;
            function KeyUp() {
                if (timer != null) {
                    clearTimeout(timer);
                }
                timer = setTimeout(LoadTable, 500);
            }
            function LoadTable() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("FilterGrid");
            }
         
        </script>
    </telerik:RadCodeBlock>
code behind:
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
       {
           if (e.Argument.IndexOf("FilterGrid") != -1)
           {
               gvPatientList.Rebind();
           }
       }
 
       protected void RTFileS_TextChanged(object sender, EventArgs e)
       {
           if (!string.IsNullOrEmpty(RTFileS.Text))
           {
                
               _scheduleService = new ScheduleService();
               clsSchedule clsschedule = new clsSchedule();
               string search = " where OldRegnNo like '" + RTFileS.Text + "%" + "'";
               gvPatientList.DataSource = _scheduleService.GetAllPatients(search);
               //gvPatientList.MasterTableView.Rebind();
               gvPatientList.Rebind();
           }
       }
On checkedchanged eveent of check boxes,I am making the grid visible.
protected void CBFile_CheckedChanged(object sender, EventArgs e)
   {
       if (CBFile.Checked)
       {
           RTFileS.Visible = true;
           gvPatientList.Visible = true;
           gvPatientList.MasterTableView.Visible = true;
           gvPatientList.Rebind();
          
       }
       else
       {
           RTFileS.Visible = false;
       }
   }

Ajaxmanager is as below:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="gvPatientList">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="gvPatientList" LoadingPanelID="RadAjaxLoadingPanel1" />
                   <telerik:AjaxUpdatedControl ControlID="RCFName" />
                   <%--<telerik:AjaxUpdatedControl ControlID="CBFile" />
                   <telerik:AjaxUpdatedControl ControlID="CBname" />
                   <telerik:AjaxUpdatedControl ControlID="CBMobile" />--%>
               </UpdatedControls>
           </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="gvPatientList" LoadingPanelID="RadAjaxLoadingPanel1" />
               </UpdatedControls>
           </telerik:AjaxSetting>

I hope hiding/unhiding the grid gives me the error.Please suggest your ideas on this.
Thanks,
Soumya
Marin
Telerik team
 answered on 28 Aug 2012
1 answer
128 views
I am having the hardest time getting a RadButton to invoke a function in the code-behind file, which updates the text of the RadButton.  So far I can get the button to fire with Ajax, but even though the function changes the text it is not reflected back onscreen.  Furthermore, the 2nd time I click the button the page conducts a postback resulting in a view that only shows the contents of the master page.  The content of the web form is blank.

Am I missing or have incorrect parameters?

Web Form RadAjaxPanel + RadButton
<telerik:RadAjaxPanel ID="Panel_MyList" RestoreOriginalRenderDelegate="true" LoadingPanelID="RadAjaxLoadingPanel_MyList" runat="server">
    <telerik:RadButton UseSubmitBehavior="true" AutoPostBack="true" EnableAjaxSkinRendering="false" EnableEmbeddedSkins="false" EnableTheming="false" EnableBrowserButtonStyle="false" EnableEmbeddedBaseStylesheet="false" ButtonType="LinkButton" ID="Button_MyList" OnClick="Button_MyList_OnClick" runat="server" Text="Add to Favorites" CssClass="btn btn-view" style="font-size:18px;"></telerik:RadButton>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel_MyList" runat="server" />

Web Form RadAjaxManagerProxy
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy_Tour" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Button_MyList" EventName="Click">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Button_MyList" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>

Master Page RadScriptManager + RadAjaxManager
    <telerik:radscriptmanager ID="Radscriptmanager1" EnablePartialRendering="true" EnablePageMethods="true" ScriptMode="Debug" runat="server"></telerik:radscriptmanager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server" />








Eyup
Telerik team
 answered on 28 Aug 2012
11 answers
444 views
First of all I am very new to ASP.NET. Been writing classic ASP for 10 years.
I have a very basic insert form that is submitting to a sql database named "Users", table named "tblUsers".. I have a field named "ImageName" that I am trying to get the file name to post to when the form is submited. The image uploads but I cannot figure out how to make the file name post to the database. I am using RadUpload and I figured you could bind the field to the database column just like you do the text fields. But I don't see how. This is all very new to me. Thanks
Peter Filipov
Telerik team
 answered on 28 Aug 2012
0 answers
79 views
Hi,
i have a problem regarding Redscheduler .
i have written custom theme for my project.
Every thing is fine in Chrome and FireFox but in IE8 theme is not working properly on one the my pages that contains RadScheduler.
css not working on radschduler in ie8.

Help me resolve this problem.
Kamran
Top achievements
Rank 1
 asked on 28 Aug 2012
1 answer
69 views
We have purchased the Developer Tools package and I need to generate an asp.net web page that displays a report that looks similar to the attached image. I would like to use the reporting tools as we want to be able to export and print easily, but I'm having some trouble determining the best way to do this. It seems that the gridview would be a better option, but it doesn't look like there is an easy way to export and/or print the radgrid...is there?

The rows with month names are to be expanded and collapsed when the user clicks on them. What would be the best way for me to approach this using the Telerik Developer tools?

Thanks in advance.
Steve
Telerik team
 answered on 28 Aug 2012
0 answers
73 views
How   to  label   data  with  "radmap"???

Quetion  one:
     How   to  use  a  pins   which   has  a  tag   to    mark   information???


Quetion  two:

     How   to  mark   the    "Energy  consumption   data"    and    "Water    consumption   data"   on  every  building  of  the  map???   
     Such  as  the  picture  attechment...

    The  picture... 
Yostec
Top achievements
Rank 1
 asked on 28 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?