Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
188 views
hi guys
when i enter the captcha text in text box in the first time give me error and say the captcha is not valid
in the second time its good and captcha.isvalid is true
it means every time and in the first time return me false and in the second time return true
whats the problem?
please help
Slav
Telerik team
 answered on 31 May 2013
2 answers
303 views
I'm using telerik in a .Net 3.5 solution, but Telerik have started to act strange when I'm debugging. 


Telerik.Web.UI.RadEditor with ID='DocumentHTML' was unable to find an embedded skin with the name 'Sitefinity'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.


But I have a reference in my project. since it won't compile without it, and its in the GAC. 

This is the output from gacutil:

  Telerik.Web.Design, Version=2013.1.417.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL
              SCHEME: <WINDOWS_INSTALLER>  ID: <MSI>  DESCRIPTION : <Windows Installer>  
  Telerik.Web.UI, Version=2013.1.403.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL
  Telerik.Web.UI.Skins, Version=2012.3.1016.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL

Hope you have an idea as whats happening. 
Magnus
Magnus
Top achievements
Rank 1
 answered on 31 May 2013
1 answer
141 views
Hi
How can I get the filter textbox from code behind and give background color to it.

thanks in advance
RT
Princy
Top achievements
Rank 2
 answered on 31 May 2013
2 answers
103 views
I have a GridDropDownColumn with some columns. I want when a user select a "Status Color"  an Image of the color selected shows up next to it. I am using the code below is not working.

 <telerik:GridDropDownColumn  DataField="RiskStatusColorID" DataSourceID="StatusColorDataSource"
                                                            DefaultInsertValue="" HeaderText="Status Color" SortExpression="StatusColorID"
                                                            ListTextField="RiskStatusColor" ListValueField="StatusColorID" UniqueName="StatusColorID" DropDownControlType= "RadComboBox"> 
                                                         </telerik:GridDropDownColumn>
                                                          <telerik:GridTemplateColumn UniqueName="Images"  HeaderText="Images" > 
                                                             <ItemTemplate>
                                                             <asp:Image ID="Image1" runat="server" /> 
                                                             </ItemTemplate> 
                                                          </telerik:GridTemplateColumn> 


CodeBehind
---------------------
protected void gvSummary_ItemCreated(object sender, GridItemEventArgs e)
    {

GridEditableItem imgitem = (GridEditableItem)e.Item;
            RadComboBox imglist = (RadComboBox)imgitem["StatusColorID"].Controls[0];
            imglist.AutoPostBack = true;
            imglist.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(img_SelectedIndexChanged);
}
protected void img_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        RadComboBox comboimg = (RadComboBox)o;
        GridEditableItem edit2 = (GridEditableItem)comboimg.NamingContainer;
        if (comboimg.SelectedValue == "Red")
        {
            Image img = (Image)edit2.FindControl("Images");
            img.ImageUrl = "../Images/dot_red.png";
        }
        
}
 


                                                                                         
Ebenezer
Top achievements
Rank 1
 answered on 31 May 2013
7 answers
211 views
Hi,

I'm tried to hide RibbonBarButton 'Paste' from first tab by using below script.

$find('RibbonBarId').findItemByText('RibbonBarButton')._element.style.display = 'none';

It will appear like ribbonbar_bug_1.png

first time, I switched to another tab and come to first tab and it looks like ribbonbar_bug_2.png. 

i have switched to another tab again few time and it breaks the ribbonBarGroup all buttons. (refer ribbonbar_bug_3.png);

Can any one help me in this?

Thank You.
Shinu
Top achievements
Rank 2
 answered on 31 May 2013
2 answers
336 views

In RadGrid filter what is the difference between 'null' and 'empty' and what is the use of these filters.

Vipin
Top achievements
Rank 1
 answered on 31 May 2013
3 answers
52 views
I am attempting to recreate the Grid - Edit on Double-click in a SharePoint 2010 web part.  I have successfully added the script to the page using a ClientScriptManager in the PreRender method.  I also generate my RadAjaxManager in OnInit.

However, when I double click on an item I receive an error on the page, "'null' is null or not an object"

The line number it corresponds to in the page source is
$find("<%= RadGrid1.ClientID %>").get_masterTableView().editItem(editedRow);
within the RowDblClick function.

Any help would be appreciated.

Thanks!




Tsvetoslav
Telerik team
 answered on 31 May 2013
1 answer
106 views
I am experiencing a problem about the postback logic on RadGrid.

I dynamically create and send columns to the RadGrid object. I put RadTextBoxes in the grid, and fill them with information. I also name the RadTextBoxes and I am able to reach themusing this code:

 foreach (GridDataItem dataItem in grdSource.MasterTableView.Items)
            {
                if (dataItem.ItemType == GridItemType.Item)
                {
                    foreach (GridTemplateColumn column in grdSource.Columns)
                    {
                        RadTextBox txtField = (RadTextBox)dataItem.FindControl("txtColumnName");
                        if (txtField != null)
                            txtField.Text =/*  Stuff I will do */;
                    }
                }
            }

This code works well, if I run it right after I fill the grid. 

But here is the problem: After all these done, I change something on the textbox, then I click some button and do a postback, If I put the same code to the click event of the button, then this code doesn't work. And my RadGrid lost all its data.

What should I do?
Princy
Top achievements
Rank 2
 answered on 31 May 2013
1 answer
98 views
For whatever reason, when I set the width from JavaScript, frozen columns stop working, they are no longer frozen in place, I can't seem to find a work around either including repainting it.

This is where the grid starts and is set to have frozen columns:
<telerik:RadGrid ID="OrganizationalErrorsGrid" runat="server" OnItemDataBound="onItemDataBound"
        OnItemCreated="onItemCreated" AllowSorting="true" OnSortCommand="onSorting" >
        <ClientSettings>
            <%-- <Selecting AllowRowSelect="true" /> --%>
            <Scrolling FrozenColumnsCount="3" AllowScroll="True" UseStaticHeaders="True" />
            <ClientEvents OnGridCreated="getwithdrawnEmployeesGrid" />
        </ClientSettings>
And this is my javascript that handles resizing:
function jsUpdateSize() {
            var grid = document.getElementById("<%=OrganizationalErrorsGrid.ClientID%>");
            var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
            if (width > 1650)
                grid.style.width = "1533px";
            else if (width > 680)
                grid.style.width = (width-80).toString() + "px";
            else
                grid.style.width = "600px";
        }
Any ideas or more info that you need? 

Thanks in advanced
Venelin
Telerik team
 answered on 31 May 2013
3 answers
125 views
Hi all,
I have a Sharepoint 2007 WSS farm and I have deployed the editor Telerik RadEditor for MOSS. Everything ok, but when I add the webpart on my pages (not exist a list) only works if modify the content by me. If to change is another user, changes are seen only in his personal view, but I, from my pc, can not see them. Is there any function that I need to activate?

Thanks,
Alessandro
Stanimir
Telerik team
 answered on 31 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?