Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
313 views
I am trying to display a RadWindow after an ajaxrequest using the ajaxmanagers responsescripts.  It works fine if the ajax request originated from an ajaxpanel, but if the request originates from the ajaxmanager (RadAjaxManager.ajaxRequest('parm')), the $find() function always returns null.

Here is the code behind response script.
RadAjaxManager.ResponseScripts.Add(setTimeout(function(){var _window = $find('" + RadWindow.ClientID + "'); _window.show();}, 250)); 

Am I missing something?
Matthew
Top achievements
Rank 1
 answered on 08 Aug 2013
1 answer
177 views
Hi, 
i am using  rad captcha tool. i have set ajax to the controls. when i click the 'Generate New Image' the captcha image gone, and i can only view the text box. when i remove the ajax i works perfect . please suggest me some solution for this problem to work with ajax.





Thanks
Princy
Top achievements
Rank 2
 answered on 08 Aug 2013
9 answers
625 views
Hi.  I'm experiencing an issue with the expand/collapse functionality of the radgrid.  I have a master table and two detail tables.  The desired functionality is for a user to be able to drill down to the 2nd detail table via the master table and first detail table.  I'm also hiding the expand/collapse icon in the first details table on rows where there would not be any data returned in the second details table, as it's pointless to have a user expand a row if there's not going to be any data. 

All of the databinding is done in the code-behind.  I'm using the needdatasource for the master table and the detailtablebind for the details tables.

Expanding rows in the master table works as expected; however, if I click on the expand/collapse icon in the first details table (to drill down to the second details table), then the row in the master table collapses.  I also have a pagerstyle added to the details table, and if I click on it to change the page number or size then the row in the master table collapses.  Thus my dilema is that anything I try to do in the first details table causes the row in the master table to collapse.

I am using the HideExpandColumnRecursive method, which is called in RadGrid PreRender, to hide the expand/collapse icon if a value for one of the columns in the first detail table is equal to 0 (i.e., there would be no data to display in the second detail table).

I've stepped through the code, and if I expand a row in the master table then I do go through the RadGrid ItemCommand; however, I never hit that sub routine if I try to expand a row in the first details table.

The demo shown at the link below is what I'm trying to accomplish, except I don't want all the rows expanded by default; I want them all initially collapsed and the user chooses which ones to expand.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultvb.aspx?#qsf-demo-source

Could someone provide some insight as to what I'm missing/not understanding?  :)

Thanks!
Amy
Top achievements
Rank 1
 answered on 08 Aug 2013
1 answer
164 views
Hello,

I'm using Telerik.Web.UI.dll of version 2010.3.1317.35.

When i try to use the OnClientBlur events the function is firing twice when i use alert message in the javascript function .

Select an item from the the RadComboBox then click on Tab or click on the form this time it is calling the method and showing the alert message , Again click on the form once then also it is calling the method and showing the alert message.

My observation is when we click OK button of alert message first time, the RadComboBox is regaining the focus, so that it is again firing the OnClientBlur event when we click on the form second time.

It is happening only in IE browser rest all it is working fine.

please find the below code snippet.
  <script type="text/javascript">
        function CallAlert(rad) {
            alert("Welcome RadComboBox Sample");
        }
    </script>
 
<telerik:RadComboBox ID="RadComboBox1" runat="server" OnClientBlur="CallAlert" >
    <Items>
     <telerik:RadComboBoxItem Text="--Select--" Value="0"/>
     <telerik:RadComboBoxItem Text="One" Value="1"/>
     <telerik:RadComboBoxItem Text="Two" Value="2"/>
     <telerik:RadComboBoxItem Text="Three" Value="3"/>
     <telerik:RadComboBoxItem Text="Four" Value="4"/>
    </Items>
</telerik:RadComboBox>



Thanks
Kesava.  
Kate
Telerik team
 answered on 08 Aug 2013
3 answers
81 views
Hi, We currently use export to excel on data that is displayed on a grid..when any updates are made to database during the time when user is analyzing grid data, when he clicks export, the 'need data source' event fires again and the new updates are exported as well...this results in the exported data being different from the user analyzed data, that he saw on the grid....please let us know how to solve this, since it is very critical for obvious data compliance reasons...any help or pointers would be highly appreciated.

Thanks in advance.
Daniel
Telerik team
 answered on 08 Aug 2013
1 answer
109 views
I'm using GridButtonColumn with CommandName="Delete" CommandArgument="Delete".  The RadGrid1_BatchEditCommand method is not being called when the button is clicked. Update and Insert are working.  What is the problem?????
adam
Top achievements
Rank 1
 answered on 08 Aug 2013
1 answer
45 views
Hi Forum,
Hi Forum,
  
We have developed application using Telerik controls and the controls are working fine when we run the application from Visual studio IDE.
  
Issue is when we tried hosting in IIs the controls are not working. We tried creating MSI package and hosted in IIs. All pages are working but Telerik controls are not functioning.
  
Kindly help.
  
Regards,
Dinesh
Hristo Valyavicharski
Telerik team
 answered on 08 Aug 2013
3 answers
111 views
Hi,

I have six checkboxes inside telerik combobox control .  On  checking the first checkbox, I have to disable second and third one.

Similarly, on checking fifth checkbox I have to disable sixth one. I tried using  onitemchecked,autopostback =true  and onclientitemchecked  events but couldn’t get the result.

Please help with the sample code

Thanks
Shinu
Top achievements
Rank 2
 answered on 08 Aug 2013
5 answers
132 views
 I'm trying to add a tooltip for my custom column of the fileexplorer - here is the code:

void Grid_ItemDataBound(object sender, GridItemEventArgs e)         
{
    foreach (GridColumn column in RadFileExplorer1.Grid.MasterTableView.RenderColumns)                 
    {                     
        if ((column is GridTemplateColumn) && (column.HeaderText.Equals("Document Title")))                     
        {                         
            if (e.Item is GridDataItem)                         
            {                             
                GridDataItem gridItem = e.Item as GridDataItem;                             
                string text = gridItem[column.UniqueName].Text;  
                
                //this line will show a tooltip
                            
                gridItem[column.UniqueName].ToolTip = text;                         
            }                                              
        }                 
    }             
}


I'm unable to get the value of the cell - can you please help?
Konstantin Dikov
Telerik team
 answered on 08 Aug 2013
2 answers
150 views
This query has come about from the fact that i dont believe you can scroll - using the Rotator Buttons - by one Rotator Item at a time (http://www.telerik.com/community/forums/aspnet-ajax/rotator/scrolling-1-item.aspx)

this is my code so far

<telerik:RadRotator Width="350px" Height="75px"  ItemHeight="75px" ItemWidth="75px" CssClass="horizontalRotator" WrapFrames="false" ScrollDuration="500"  RotatorType="Buttons"   runat="server" ID="imageRotator">
    <ItemTemplate >
       <img id="imgCarousel2" class="item" width="75" height="75" class="item" src="<%#Eval("PhotoFile")%>"alt="" onclick="ChangeRecipePhoto('<%#Eval("PhotoFile")%>','<%#Eval("PhotoID")%>')" />                                                      
    </ItemTemplate>                      
</telerik:RadRotator>

imageRotator.DataSource = Photos()
imageRotator.DataBind()

   <style type="text/css">
       .item {
     border: solid 10px #fff;
     margin: 1px;
}
   </style>

now, the amount of images that need to be shown could be 7,8,9 or anything else.
my RadRotator Width has been set so that it fits 4 images at any point in its scrolling:
e.g. the RadRotator is 350px in Width.
the inidividual items in the RadRotator are 75px in Width
This means that 75 * 4 is 300 (+ an extra 40px for the Buttons - as per this page:   http://www.telerik.com/help/aspnet-ajax/rotator-configuration.html
and an extra 10px for the extra border width i have added to the Style).

unfortunately, this means that if the amount of images is 5, the first page will show 4 images fine, but when i scroll using the Rotator scroll button, the next screen is of 1 image and an empty space that could accomodate another 3 images. 

i suppose i have 3 solutions that i would be keen to see if exists.

1. that it is possible to scroll one image at a time so that it doesn't show the empty space

2. dynamically add the necessary amount of 'placeholder' images so that it doesn't have the empty space (e.g if amount of images is less than the next multiple of 4, add the required amount of 'placeholders' to get it to be the next multiple of 4).

3. some other means of showing that the blank space is by design and not looking like there should be images.

thanks.

David
Top achievements
Rank 1
 answered on 08 Aug 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?