Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
Does telerik has a Texteditor (do word merging) for WPF?
Mike
Telerik team
 answered on 18 Aug 2010
1 answer
125 views

Does Telerik wrap my div in its own div?  When I set my div visible to false, my div is gone, but the telerik generated div ctl00_ctl00_dvMyDivPanel remains and causes white space issues.  There is no white space issue when I remove dvMyDiv from the UpdatedControls.  It would be nice if Telerik would collapse the white space or not display its wrapper div when my div is not there.

<telerik:AjaxSetting AjaxControlID="MyBigControl">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="dvMyDiv" />
    </UpdatedControls>
</telerik:AjaxSetting>


Dimo
Telerik team
 answered on 18 Aug 2010
3 answers
68 views
Hi,
I have two different pages that make use of the Tabstrip and multiview contents.  While initially building the pages I can view in Design and Source without issue.  At some point in the save process the contents of the page can only be viewed in source.  There are no syntax errors on the page and the web app renders fine at run time.  Any thoughts on what may be causing this?  The inability to access the control designers from source is getting to be a problem.
Regards.
Yana
Telerik team
 answered on 18 Aug 2010
3 answers
116 views
Hi Team,

In IE7, the rad confirm window appears, but the click event of 'OK' and 'Cancel' do not seem to work. Is this a browser related issue.

Regards,
Saravanan
Georgi Tunev
Telerik team
 answered on 18 Aug 2010
1 answer
92 views
Hi,

I saw a post or sample code somewhere on the Telerik site on how to filter template columns which are lookup columns, based on another lookup column value, I now cannot find it to reference it.  But it is not working and I cannot see why.

Basically, my grid is for questions, under each question there are four lookup columns.  The values in lookups 2, 3 and 4 should be filtered according to the value selected in lookup column 1.  This is working fine but only for editing existing questions.  When creating a new question the code is firing the events but other lookups are never filtered.  This is what I am doing:

Any ideas or help greatly appreciated.

Thanks

protected void RadGridQuestions_ItemCreated(object sender, GridItemEventArgs e)
  {
      if ((e.Item is GridEditFormItem || e.Item is GridEditFormInsertItem) && e.Item.IsInEditMode)
      {
          if (e.Item.OwnerTableView.Columns.FindByUniqueNameSafe("Test_Type_Id") == null) return;
           
          RadComboBox ddlTestType = (e.Item as GridEditableItem)["Test_Type_Id"].Controls[0] as RadComboBox;
 
          // Attach SelectedIndexChanged event for the dropdownlist control
          ddlTestType.AutoPostBack = true;
          ddlTestType.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(TestTypeOfQuestion_SelectedIndexChanged);
          TestTypeOfQuestion_SelectedIndexChanged(ddlSubObjective, null);
          ddlTestType.PreRender += new EventHandler(ddlTestType_PreRender);
      }
  }
 
  private void ddlTestType_PreRender(object sender, EventArgs e)
  {
      TestTypeOfQuestion_SelectedIndexChanged(sender, null);
  }
 
  /// <summary>
  /// Changed test type so update objective and sub objective only relevant for that exam type
  /// </summary>
  /// <param name="sender"></param>
  /// <param name="e"></param>
  private void TestTypeOfQuestion_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
  {
      // First reference the edited grid item through the NamingContainer attribute
      GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem;
 
      // The dropdown list will be the first control in the Controls collection of the corresponding cell
      string strTestTypeId = (editedItem["Test_Type_Id"].Controls[0] as RadComboBox).SelectedValue;
      if (string.IsNullOrEmpty(strTestTypeId))
          return;
 
      RadComboBox ddlKeyElement = editedItem["Question_Category_Id"].Controls[0] as RadComboBox;
      SqlDataSourceQuestionCatLookupEdit.SelectParameters["Test_Type_Id"].DefaultValue = strTestTypeId;
      ddlKeyElement.ClearSelection();
      ddlKeyElement.DataSource = SqlDataSourceQuestionCatLookupEdit;
      ddlKeyElement.DataBind();
 
      RadComboBox ddlObjective = editedItem["Objective_Id"].Controls[0] as RadComboBox;
      SqlDataSourceObjectiveLookupEdit.SelectParameters["Test_Type_Id"].DefaultValue = strTestTypeId;
      ddlObjective.ClearSelection();
      ddlObjective.DataSource = SqlDataSourceObjectiveLookupEdit;
      ddlObjective.DataBind();
 
      RadComboBox ddlSubObjective = editedItem["Sub_Objective_Id"].Controls[0] as RadComboBox;
      SqlDataSourceSubObjectiveLookupEdit.SelectParameters["Test_Type_Id"].DefaultValue = strTestTypeId;
      ddlSubObjective.ClearSelection();
      ddlSubObjective.DataSource = SqlDataSourceSubObjectiveLookupEdit;
      ddlSubObjective.DataBind();
  }
Veli
Telerik team
 answered on 18 Aug 2010
2 answers
86 views
Hi,
In my project, I'm using RadFormDecorator to decorate controls. But i'm facing a problem while printing the page. It is not printing the check boxes and radio buttons.
But when I'm removing RadFormDecorator from my page, radio buttons and check boxes are getting printed.

Looking forward for a solution.

Thanks
Tanuj
Tanuj
Top achievements
Rank 1
 answered on 18 Aug 2010
1 answer
99 views
Hi,

I'm using an AdvancedEditTemplate and an AdvancedInsertTemplate. I want to change the width from the default 700px to 300px. I tried to set the width in the UserControl, but this does not work.

Regards,
Benedikt
Veronica
Telerik team
 answered on 18 Aug 2010
3 answers
98 views
Good Morning All

i have a Schedular and on design time the Height is good , but on Runtime the height changes and becomes smaller, i use a IE Developer too to see which element is misbehaving and i came across this


<div class="rsContentScrollArea" style="position: relative; overflow-y: scroll; width: 1529px; height: 700px; overflow: auto;" _events="[object Object]" sizcache="25" sizset="0">
in in the "700px" it was "500px" this is not in my markup, so by changing it to be 700px it works fine, but where is this because i cant find it in the Scheduler properties or the markup of the page.

Thanks
Veronica
Telerik team
 answered on 18 Aug 2010
1 answer
139 views
Hello Telerik Team,

We are facing issue with radwindow that when we show the data in radwindow its does not showup properly.

I have attached the screenshot. If we cant fix it we will have to switch to normal window popup. We are using RAD window all over in the site and its happening only at one of the place.

We have more then 20 labels and literals and one datagrid to show the data.

check the screenshot it will be lots more easier to understand by that.

Regards,
Hardik Joshi
Georgi Tunev
Telerik team
 answered on 18 Aug 2010
1 answer
314 views

I keep getting the dredded "Conversion from type 'DBNull' to type 'Boolean' is not valid." error and cannot seem to get around it. 

I was getting it when I clicked on Add new record and worked around that by adding default values in code behind:

If (e.CommandName = Telerik.Web.UI.RadGrid.InitInsertCommandName) Then
    'cancel the default operation
    e.Canceled = True
    'Prepare an IDictionary with the predefined values
    Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()
    'set default checked state for checkbox inside the EditItemTemplate
    newValues("Is_Admin") = False
    newValues("Is_Disabled") = False
    'Insert the item and rebind
    e.Item.OwnerTableView.InsertItem(newValues)
End If

But now if I'm in insert mode, so I have clicked on Add New Record then without cancelling insert click on edit I get the error again.  If I cancel the insert by clicking cancel then the error does not appear.  Is there a way to cancel the insert in code behind before the grid is put in edit mode to avoid this error?

Paula
Princy
Top achievements
Rank 2
 answered on 18 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?