Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
167 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
178 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
215 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
165 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
1.0K+ 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
1 answer
137 views
Hi, is there any Telerik control that can be used for Lightbox effect on images?
Or do we have to use a third party jQuery plugin?

Thanks in advance for your help

Best regards, Thomas
Kate
Telerik team
 answered on 27 Apr 2012
1 answer
291 views
Hi,

We have an issue with restricting the special characters on Radtextbox for firefox browser . We have written javascript validation using asii codes for restricting special characters in radtextbox but the ascii code . and del buttons are same so we are not able to add validations on these keys. Also the ascii code for arrow keys conflicts with "%" ,"&" characters. Please suggests the solution for this as this is very important for us.

Thanks,
Rahul
Pavlina
Telerik team
 answered on 27 Apr 2012
2 answers
105 views
Hi Guys

I have one requirement , please let me know if that is possible or not

 Item 1) We get like below in chart
                    Legend1
                    Legend2

        $60 |
$50 |
$40 |
$30 |
$20 |
$10 |
______________
$10 $20 $30 $40

Item 2) My requirement
                Legend1 Legend2
        $60 |
$50 |
$40 |
$30 |
$20 |
$10 |
______________
$10 $20 $30 $40

Can i have Legend like Item 2)

Karthik.K
Karthik Kantharaj
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
182 views
Hello,

I am having an issue with the Telerik RadGrid controls.  The issue I'm having is that when clicking on the header, it's only sorting ascending, even when the grid says its in descending order.  I'm binding the entire results to the RadGrid (not doing custom paging or sorting).  But for some reason, the sorting is not working...

The bigger problem is that when I click on the header, the RadGrid.MasterTableView.SortExpressions collection is empty.  Why is this collection empty?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 27 Apr 2012
8 answers
313 views
Hello, 

I am able to use RadInputManager to validate required textbox controls, but it does not work with radtextbox controls. If a RadTextBox is left empty I would like a message to appear in the box with the exclamation mark. 

Is there any way to get this to work? I assumed the RadTextBox was a child of TextBox, but this may be false as this only works on a TextBox. 

This works on a textbox, but not a radtextbox :

 <telerik:RadInputManager ID="RadInputManager1" runat="server">
<telerik:TextBoxSetting ErrorMessage="Required">
      <Validation IsRequired="true"  />
           <TargetControls>
            <telerik:TargetInput ControlID="TextBox1" />
           </TargetControls>
     </telerik:TextBoxSetting>
    </telerik:RadInputManager>

Please advise 
Yuvraj
Top achievements
Rank 1
 answered on 27 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?