Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi,

Since i don't really know what is possible, i'll explain my goal :
I have a page which contains a radwindow, and this radwindow contains a form with informations to fill.
In that form i have a hidden field which is empty if no inputs has changed, and filled if any of the inputs has changed.
I'd like that on the close button's click of the radwindow, a test is performed against the hidden field to see if i have to display a javascript confirm like "changes have been made, are you sure you want to close?".

So, how can i proceed to reach the value of the hidden field in the navigate url's page, so i can display the confirm or not?

Or maybe if you have a different solution, i'd like to read it

Thanks and sorry for my english (am i understandable enough?)
Marin Bratanov
Telerik team
 answered on 27 Apr 2012
9 answers
236 views
Hi,

I have a RadGrid within which I use Tabstrip with Multipage as Edit FormTemplate. But when I Change the tabs (OnTabClick) its throws an Object Reference Error.

Below is the stack Trace of the errror

Source: System.Web

Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Stack trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.assetresource_manageresource_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\1d05cdea\b7de89b2\App_Web_d4fj34vj.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Inner Exception


Source: Telerik.Web.UI

Message: Object reference not set to an instance of an object.

Stack trace: at Telerik.Web.UI.RadComboBox.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at Telerik.Web.UI.GridPagerItem.InitializePagerItem(GridColumn[] columns) at Telerik.Web.UI.GridPagerItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) at Telerik.Web.UI.GridTableView.CreateTopPagerItem(Boolean useDataSource, GridColumn[] copiedColumnSet, Boolean isPagingEnabled, GridTHead thead) at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at Telerik.Web.UI.GridTableViewBase.get_Controls() at Telerik.Web.UI.GridTableView.GetGridTable() at Telerik.Web.UI.RadGrid.PrepareRowsVisibility(GridTableView view) at Telerik.Web.UI.RadGrid.PrepareItems() at Telerik.Web.UI.RadGrid.ControlPreRender() at Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Probably the multipage controls are not yet intiated at the time of tabclick. Not sure how this can be resolved. I am using stable release of Telerik Q3 2011

Any support/help is appreciated. Let me know if anyone needs markup/codebehind pasted over here.

Regards,
Pratik.
Sytecsa
Top achievements
Rank 1
 answered on 27 Apr 2012
4 answers
108 views
I am currently updating the RadSpell to the latest version in one of my projects. With the older version, I was able to specify application wide settings in the ConfigFile.xml file. It appears that this feature has been removed.

Is there anyway to set properties application wide so that I don't have to specify the same settings over and over again throughout the application? For example, let's say that I wanted to change the default values for WordIgnoreOptions and FragmentIgnoreOptions. I would like this to be consistent throughout the application. It would be nice if I could specify this just once (like I was able to with ConfigFile.xml) and not have to worry about setting the same values for every instance of RadSpell.

I would also like to be able to use the current culture for the Language and DictionaryLanguage properties. I realize I can do this in code for each instance of RadSpell, but I'm looking for something a little more DRY.

Thanks,
Tim
Tim
Top achievements
Rank 1
 answered on 27 Apr 2012
9 answers
233 views
Hello everyone!

Please, please, please help me!

I moved an application (. Net) IIS 6 to IIS 7.5 (Windows Server 2008 R2).

All the application works, but not that involving the Telerik controls.

An example is when I click the button below!

"
<asp:Button ID="SearchButton" runat="server" CssClass="buttonStyle2"OnClick="SearchButton_Click" OnPreRender="ButtonDisablePreRender"Text="Searchr" />
"

Have tried to update the Ajax Toolkit!

I do not know what else to do!

To be honest I've tried everything!

I am almost giving up, please help me!

The version of telerik is "2011.1.614.35." 
Slav
Telerik team
 answered on 27 Apr 2012
1 answer
84 views
I'm not sure if this is the right thread for my question.

Anyway, why is it that RadSpell control doesn't display a "red line" below those mispelled words ?
Rumen
Telerik team
 answered on 27 Apr 2012
2 answers
108 views
Hi

I have a problem I can't seem to work out.

Basically I have a MasterTableView / DetailTable relationship. In the master table I am changing the checkbox to an image at the ItemDataBound event - this works fine.

However, when I expand the DetailView the images are removed and the checkboxes re-appear (coincidentially they are always unchecked).

Does anyone know how I should handle this situation so that when the details view is expanded the tick box images remain in the parent MasterTableView?

Many thanks
Carl
protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e)
      {
          if (e.Item is GridDataItem)
          {
              GridDataItem item = (GridDataItem)e.Item;
           
              var row = item.DataItem as Reporting.EntityModel.Stock;
 
              if (row != null)
              {
                  item["Active"].Controls.Clear();
 
                  if (row.Active == true)
                  {
                      item["Active"].Controls.Add(new Image() { ImageUrl = "/Assets/Images/tick_small_col.png" });
                  }
                  else
                  {
                      item["Active"].Controls.Add(new Image() { ImageUrl = "/Assets/Images/cross_small_col.png" });
                  }
 
                  
              }
              
 
          }
 
      }
Carl
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
149 views

Hi Team,
I am new user of telerick controls my problem is when if upload file i call given function   on
RadAjaxPanel conditional postback is removing css of telerik controls after uploading file
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock2">
      <script type="text/javascript" language="javascript">
 
          function conditionalPostback(sender, args) {
              if (args.EventTarget == "<%= btnUploadDocuments.UniqueID %>")
              { args.EnableAjax = false; }
          }
      </script>
  </telerik:RadS
<telerik:RadAjaxPanel ID="panelMain" runat="server" ClientEvents-OnRequestStart="conditionalPostback" >
 
div class="upload_box">
                               <div class="details">
                                   <telerik:RadUpload AllowedFileExtensions=".pdf" ID="RadUpload1" ControlObjectsVisibility="AddButton, DeleteSelectedButton, RemoveButtons"
                                       runat="server">
                                   </telerik:RadUpload>
                                   <div class="upload">
                                       <telerik:RadButton ID="btnUploadDocuments" runat="server" Text="Upload" OnClick="btnUploadDocuments_Click">
                                       </telerik:RadButton>
                                       <asp:CustomValidator ID="custValidateUpload" runat="server" Display="Dynamic" ClientValidationFunction="validateRadUpload1">   <span class="errormessage">Only .pdf files are allowed.</span>
                                       </asp:CustomValidator>
                                   </div>
                               </div>
</telerik:RadAjaxPanel>
Please help me i will really appreciate that. thank 

Eyup
Telerik team
 answered on 27 Apr 2012
1 answer
119 views
I've got a RadTreeList but it's showing every thing including the ID and ParentID fields. How do I hide them?

Also, it is showing my URL field. How do I set the DataNavigateUrlField property so they work properly?

Thanks!

<telerik:RadTreeList ID="RadTreeList1" runat="server" ParentDataKeyNames="ParentID" DataKeyNames="ID" DataNavigateUrlField="WebAddress">
            <Columns>
            <telerik:TreeListBoundColumn DataField="Title" UniqueName="Title" HeaderText="Title" Visible="False" Display="False"/>
            <telerik:TreeListBoundColumn DataField="WebAddress" UniqueName="WebAddress" HeaderText="" Visible="False" Display="False" />
            <telerik:TreeListBoundColumn DataField="ID" UniqueName="ID" HeaderText="" Visible="False" Display="False" />
            <telerik:TreeListBoundColumn DataField="ParentID" UniqueName="ParentID" HeaderText="" Visible="False" Display="False" />
        </Columns>
</telerik:RadTreeList>
Richard
Top achievements
Rank 1
 answered on 27 Apr 2012
3 answers
135 views
I've noticed sometimes when using the Telerik components we get some "visual distortion", which I think is best described by this image:

http://screencast.com/t/pzDqpbhWMw

In short, it seem to be a small black square that shows up sometimes. In this case, it is with a RadRotator, but doesn't show up for all the items. We've seen this with other telerik components as well from time to time. We have tried with several different browsers, and made sure they were set to 100% zoom.

Any ideas?
Slav
Telerik team
 answered on 27 Apr 2012
1 answer
985 views
Hi Telerik Team,

I have a RadTextBox in a RadToolBar mentioned below...

i want to write some code on TextChanged event of RadTextBox which is inside RadToolBor, please suggest how to get a TextChanged event and do the needful.

 <telerik:RadToolBar ID="rtbPDFToolbar" runat="server" Width="100%">
        <Items>
            <telerik:RadToolBarButton runat="server" CausesValidation="False" PostBack="False"
                Text="SearchText" Value="SearText">
                <ItemTemplate>
                    <telerik:RadTextBox runat="server" ID="radtxtSerachDocument">
                    </telerik:RadTextBox>
                </ItemTemplate>
            </telerik:RadToolBarButton>
           </Items>
</telerik:RadToolBar>

Thanks,
Simon.
Princy
Top achievements
Rank 2
 answered on 27 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?