Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
227 views
Is there a way to remove the title bar completely from the popup edit form?
Ken
Top achievements
Rank 1
 answered on 23 Sep 2011
0 answers
86 views
on IE browser 7.. in tools -> internet settings - > security
if we increase security to high
it will disaply haf telerik grid.
Half data and half white space ..
Any idea? 
i have radgrid on default page.
i am calling that default page in frame.
Mugdha Aditya
Top achievements
Rank 1
 asked on 23 Sep 2011
3 answers
119 views
Hi,

I am using Radasynchupload control in .net application and sharepoint both for multiple file upload feature.

It is working in chrome and firefox but in case of internet explorer it is behaving as ,single file upload control.

I have installed flash - version 10.0

Please help!
It is urgent
Dimitar Terziev
Telerik team
 answered on 23 Sep 2011
1 answer
218 views
Even if I cancel the close event, the tooltip always closes on postback.  Async postback does the same thing.  Other regular buttons (e.g. html button) work as expected - the close event gets cancelled.

The button is inside the the RadTooltip.

Any ideas?
Marin Bratanov
Telerik team
 answered on 23 Sep 2011
1 answer
478 views
hi
I'm in the process of moving a site from a win2003 server to a win2008r2 server.
On my login page I'm using a RadCaptcha image that is now showing a broken link in stead of a captcha image (see src property in code snippet below).
I think it could be a write permissions issue, however, I'm unsure how/where to change what.
Any suggestions?

<telerik:RadCaptcha ID="CaptchaImage" runat="server" ErrorMessage="Entered code as displayed" 
CaptchaTextBoxLabel="" />

<div id="ctl00_cph_cnt_CaptchaImage" class="RadCaptcha RadCaptcha_Default">
    <!-- 2011.2.915.40 --><span id="ctl00_cph_cnt_CaptchaImage_ctl00" style="color:Red;visibility:hidden;">Entered code as displayed</span><div id="ctl00_cph_cnt_CaptchaImage_SpamProtectorPanel">
        <img id="ctl00_cph_cnt_CaptchaImage_CaptchaImage" alt="" src="Telerik.Web.UI.WebResource.axd?type=rca&guid=a4dfd827-ddb3-4dd6-b837-01385b3dc115" style="height:50px;width:180px;border-width:0px;display:block;" /><p><input name="ctl00$cph_cnt$CaptchaImage$CaptchaTextBox" type="text" maxlength="5" id="ctl00_cph_cnt_CaptchaImage_CaptchaTextBox" title="" /><label for="ctl00_cph_cnt_CaptchaImage_CaptchaTextBox" id="ctl00_cph_cnt_CaptchaImage_CaptchaTextBoxLabel"></label></p>
    </div><input id="ctl00_cph_cnt_CaptchaImage_ClientState" name="ctl00_cph_cnt_CaptchaImage_ClientState" type="hidden" />
</div>

in my web.config I have:
<httpHandlers>
    <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
</httpHandlers>

adding:
<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

didn't solve the issue
Slav
Telerik team
 answered on 23 Sep 2011
3 answers
141 views
I have created a custom appointment template which contains a hyperlink. is there a way to open an AdvancedEdit form by clicking on that hyperlink?

Thanks
Ilya
Top achievements
Rank 1
 answered on 23 Sep 2011
1 answer
102 views

<
telerik:RadToolBar ID="RadToolBar1" runat="server" OnClientButtonClicking="onToolBarClientButtonClicking"
                    OnButtonClick="RadToolBar1_ButtonClick" Width="100%">
                    <Items>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Addnew %>" CommandName="InitInsert"
                            ImageUrl="../../images/AddRecord.gif" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Filter %>" CommandName="Filter"
                            ImageUrl="../../images/Filter 3.gif">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Refresh %>" CommandName="RebindGrid"
                            ImageUrl="../../images/Refresh.gif">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" Value="HeaderDisplay">
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td align="right">
                                            <telerik:RadComboBox runat="server" ID="DeleteOption" OnSelectedIndexChanged="DeleteOption_SelectedIndexChanged"
                                                AutoPostBack="true" AppendDataBoundItems="true">
                                                <Items>
                                                    <telerik:RadComboBoxItem runat="server" Text="All" Value="All" />
                                                    <telerik:RadComboBoxItem runat="server" Text="Deleted" Value="Deleted" />
                                                    <telerik:RadComboBoxItem runat="server" Text="Not Deleted" Value="Not Deleted" />
                                                </Items>
                                            </telerik:RadComboBox>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>

In my problem in after selectedindex changed to deleted ,
After values assigned comobox changed into first value

protected void DeleteOption_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridCommandItem commandItem = RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)[0] as GridCommandItem;
            RadToolBar toolBar = commandItem.FindControl("RadToolBar1") as RadToolBar;
            RadToolBarItem textItem = toolBar.FindItemByValue("HeaderDisplay");
            RadComboBox Comobovalue = (RadComboBox)textItem.FindControl("DeleteOption");
            var DeleteOption = Comobovalue.SelectedValue;
 
            if (DeleteOption == "All")
            {
                using (var db = new DoskContractServicesDataContext(Globals.strCon))
                {
                    var result = (from a in db.DSProjectMasters
                                  join b in db.dsdatamasters
                                  on a.ClientCode equals b.clientcode into Lcat
                                  from Lclien in Lcat.DefaultIfEmpty()
                                  join c in db.dsdatamasters
                                  on a.MainContractor equals c.clientcode into Lmain
                                  from Lmaincon in Lmain.DefaultIfEmpty()
                                  select new
                                  {
                                      a.ProjectID,a.ProjectTitle,a.Duration,a.DtCommencement,a.DtCompletion,a.EstimateDistance,a.ContractAmount,a.ProjectCode,
                                      Lclien.clientname,maincon = Lmaincon.clientname
                                  }).ToList();
                    RadGrid1.DataSource = result;
                    RadGrid1.Rebind();
                    Comobovalue.Text = "All";
                }
            }
            else if (DeleteOption == "Deleted")
            {
                using (var db = new DoskContractServicesDataContext(Globals.strCon))
                {
                    var result = (from a in db.DSProjectMasters
                                  join b in db.dsdatamasters
                                  on a.ClientCode equals b.clientcode into Lcat
                                  from Lclien in Lcat.DefaultIfEmpty()
                                  join c in db.dsdatamasters
                                  on a.MainContractor equals c.clientcode into Lmain
                                  from Lmaincon in Lmain.DefaultIfEmpty()
                                  where a.Status == "DEL"
                                  select new
                                  {
                                      a.ProjectID,a.ProjectTitle,a.Duration,a.DtCommencement,a.DtCompletion,a.EstimateDistance,a.ContractAmount,a.ProjectCode,Lclien.clientname,
                                      maincon = Lmaincon.clientname
                                  }).ToList();
                    RadGrid1.DataSource = result;
                    RadGrid1.Rebind();
                    Comobovalue.Text = "Deleted";
                }
            }
            else if (DeleteOption == "Not Deleted")
            {
                using (var db = new DoskContractServicesDataContext(Globals.strCon))
                {
                    var result = (from a in db.DSProjectMasters
                                  join b in db.dsdatamasters
                                  on a.ClientCode equals b.clientcode into Lcat
                                  from Lclien in Lcat.DefaultIfEmpty()
                                  join c in db.dsdatamasters
                                  on a.MainContractor equals c.clientcode into Lmain
                                  from Lmaincon in Lmain.DefaultIfEmpty()
                                  where a.Status != "DEL"
                                  select new
                                  {
                                      a.ProjectID,a.ProjectTitle,a.Duration,a.DtCommencement,a.DtCompletion,a.EstimateDistance,a.ContractAmount,
                                      a.ProjectCode,Lclien.clientname,maincon = Lmaincon.clientname
                                  }).ToList();
                    RadGrid1.DataSource = result;
                    RadGrid1.Rebind();
                    Comobovalue.Text = "Not Deleted";
                }
            }
        }


Replay as soon possible 


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 23 Sep 2011
2 answers
71 views
Hi All,

Have a Radgrid (Hierarchy) with records and it is working fine.

But the look and feel differs in IE and FireFox.

It looks fine in IE,

Thanking You

-Anto

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 23 Sep 2011
0 answers
95 views
Hello,
I build whole grid programmatically from Page_Init and assign DataSource to dynamically built datasource. I can edit data wihout any problems and now I try to insert row. That's what I do:
1. From client side I fire insert command:
 var master = $find(gridID).get_masterTableView();
 master.fireCommand("InitInsert""");

2. New empty row appears and I enter all data and press Save button. On server side I handle ItemCommand event like this:
case PerformInsertCommandName:
                    GridEditableItem newItem = MasterTableView.GetInsertItem();
                    Dictionary<stringobject> newValues = new Dictionary<stringobject>();
                    newItem.ExtractValues(newValues);
                    break;
and newValues always contain empty values. I try to find controls directly like
WebControl ctl = newItem.FindControl<WebControl>(c => c is IZSheetControl);
but control's value is always null anyway. Have I missed anything?
Below is example of my control which I place in TemplateColumn
public class ZTextBox : TextBoxIScriptControlIZSheetControl
    {
        private ScriptManager sm;
 
        public ZTextBox(ZSheetItem item)
        {
            Item = item;
        }
 
        #region IZSheetControl
        
 
        public ZSheetItem Item { getset; }
        public object Value
        {
            get { return Text; }
            set { Text = value == null ? string.Empty : value.ToString(); }
        }
 
        public int MinWidth
        {
            get { return 120; }
        }
 
        #endregion
 
        #region IScriptControl
 
        IEnumerable<ScriptReferenceIScriptControl.GetScriptReferences()
        {
            ScriptReference reference = new ScriptReference
                                            {
                                                Assembly = "UpeWeb.ASPNET.UI",
                                                Name = "UpeWeb.ASPNET.UI.Scripts.ZTextBox.js",
#if DEBUG
                                                ScriptMode = ScriptMode.Debug,
#else
                                                ScriptMode = ScriptMode.Release,
#endif
                                            };
            yield return reference;
        }
 
        IEnumerable<ScriptDescriptorIScriptControl.GetScriptDescriptors()
        {
            var control = new ScriptControlDescriptor("UpeWeb.ASPNET.UI.Controls.ZTextBox", ClientID);
            control.AddProperty("text", Text);
            yield return control;
        }
 
        #endregion
 
        protected override void OnPreRender(EventArgs e)
        {
            if (!DesignMode)
            {
                sm = ScriptManager.GetCurrent(Page);
 
                if (sm == null)
                    throw new HttpException("A ScriptManager control must exist on the current page.");
 
                sm.RegisterScriptControl(this);
            }
 
            base.OnPreRender(e);
        }
 
        protected override void Render(HtmlTextWriter writer)
        {
            if (!DesignMode)
                sm.RegisterScriptDescriptors(this);
 
            base.Render(writer);
        }
    }
Dmitry
Top achievements
Rank 1
 asked on 23 Sep 2011
1 answer
90 views
Currently I am looking at a strange issue where some users are unable to get the RadDatePicker calendar to appear consistently in IE8.  It seems like if the user clicks in a very specific spot on the calendar button the popup appears.  We haven't been able to narrow it down further yet.

We did a WebEx with one of our internal users that reported the problem and looked at the following

  • javascript is enabled - our site wouldn't work with it off
  • there are no javascript errors
  • there are no toolbars or plug-ins installed
  • the RadDatePicker on the Telerik demo site works for this particular person
  • the RadDatePicker for all of the pages this particular person says doesn't work appear fine for the development team
  • we even had the user try to fire the button with the spacebar and enter buttons but that did not work either
  • FireFox works fine

Currently we are on the 2011.519.35 version.

I am curious if anyone else has experienced this issue or has any further steps we should be doing to troubleshoot the issue.

Thanks in advance
Andrey
Telerik team
 answered on 23 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?