Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
good day, guys,
I have a RadComboBox "RadComboBox_reject" with 2 options, "Rejected", and "Not Rejected", the value of "Rejected" is "true", the value of "Not Rejected" is "false",  RadGrid is bound to sqldatasource,  sqldatasource definition as following:

<asp:SqlDataSource ID="Sql_docket" runat="server"  SelectCommand ="SELECT DOCKET.DOCKETID ...................  FilterExpression ="reject='{0}'" > 
<FilterParameters>
    <asp:ControlParameter Name="reject" ControlID="RadComboBox_reject" PropertyName="SelectedValue" Type="Boolean"  ConvertEmptyStringToNull="true" />
</FilterParameters>
</asp:SqlDataSource>

Basically, my idea is to set "RadComboBox_reject" property "AutoPostback" = true, so that everytime user choose option from RadComboBox_reject, the selectedValue will be passed to sqldatasource by SqlDataSource  FilterParameters.

The above code is working fine. But, now,  I am trying to add "Get All" option to "RadComboBox_reject", so that RadGrid will show all records when user select "Get All". My question is: what value should be for "Get All" option that will be passed to FilterParameters?  Please note that FilterParameters type is "Boolean".

Thank you very much

andy
Top achievements
Rank 1
 answered on 15 Dec 2008
4 answers
260 views
Hi its Shrawan from Hyd,India, 

    I have been using these Ajaxified ASP.net Rad Contrils since last one year, These days we came across the situation of using radGrid, Ajaxmanager,Ajax panel, rad Upload, tabstrip,TRee view etc etc But this is the first time we are using radCombo, the criteris to use this is A combobox with AllowCustomText property true Every thing is working fineon server side, but i am not able to fire validation with javascript, when i tries to catch id threw
 <%=RadComboBox3.ClientID %>.SelectedIndex

its giving some code error saying The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).  so Can any body help me in this issue

Thanking you alot

-Sravan Kumar Tatikonda

JustinWong
Top achievements
Rank 1
 answered on 15 Dec 2008
1 answer
156 views
What is the preferred method of autopostbacking when checkboxes are checked/unchecked in the TreeView? Obviously doing a full postback is not acceptable and putting the tree in an update panel seems like overkill/slow/etc. Is there a built-in lightweight method of saving the checkbox states to the database as they are changed?

Thanks
Simon
Telerik team
 answered on 15 Dec 2008
5 answers
177 views

using telerik
prometheus (telerik.web.ui dll)
C# 2008 and IE6

I have created a user control consisting of a rad grid and 2 rad windows.

I have a button in the user control  that that loads the rad window using java script

 

//an alternative approach: find the needed RadWindow on the page and call its show() method

 

 

 

var oWnd = $find("<%=RelationshipsDialog.ClientID %>");

 

 

oWnd.SetSize(530 , 400);

oWnd.setUrl(url);

oWnd.show();



I have placed the user control on a an empty page to simplify my tests. the page as a scrptmanager on it.

on first click of the button the winodw opens with the correct size.

subsequent loads clicks of the button and the window opens in a different size about 15% wider. I placed an alert in the java script to read the size of the width after the ownd.show and it shows the width being the correct size of 530 px.

here is how the rad window is defined in the user control

<

telerik:RadWindow ID="RelationshipsDialog" runat="server" Title="CRM Assign Relationships"

 

 

Left="150px" Width="530px" Height="400px" ReloadOnShow="true" Modal="true" onclientclose="OnClientRelationshipClose" KeepInScreenBounds="True" />

 

 



Any help on correcting this would be appreciated


Fiko
Telerik team
 answered on 15 Dec 2008
1 answer
165 views
Design Mode (VS.NET 2008), properties of the editor, uncheck all editmodes.  A zero gets placed in the html (editmodes="0").  Then when you execute the page you get the following error

'EnumConverter' is unable to convert 'Telerik.Web.UI.EditModes' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'

Not sure why you would ever want to uncheck all of the editmodes, but i did by accecent and it was difficult to find out why i was getting that error.

Version: 2008.3.1125.35




Nikolay Raykov
Telerik team
 answered on 15 Dec 2008
3 answers
308 views
Hi
I have :
<telerik:RadGrid ID="GridAdvert" runat="server" >    
         <MasterTableView DataKeyNames="id" >                           
           <EditFormSettings EditFormType="Template"  >    
            <EditColumn UniqueName="EditCommandColumn1">      
            </EditColumn>           
             <FormTemplate>    
                  <telerik:RadDatePicker runat="server" ID="PickerTimeFrom"   
                    SelectedDate='<%# DataBinder.Eval( Container, "DataItem.timeFrom" ) %>' >          
                                  
                  </telerik:RadDatePicker> 
                    
             <asp:Button ID="UpdateButton" OnClientClick="Save(this, event);" Text="Save"      
                    runat="server" />    
            </FormTemplate>                                                     
           </EditFormSettings>                       
          </MasterTableView>    
         </telerik:RadGrid>    
 

in JavaScript block :

function GetGridServerElement(serverID, tagName)  
            {  
                if (!tagName)  
                    tagName = "*"; //* means all elements  
                      
                var grid = $get("GridAdvert");  
                var elements = grid.getElementsByTagName(tagName);  
                for (var i = 0; i < elements.length; i++)  
                {  
                    var element = elements[i];  
                    if (element.id.indexOf(serverID) >= 0)  
                        return element;  
                }  
            }  
 
function Save(sender, e)  
{  
 
  var xx = GetGridServerElement("PickerTimeFrom","");  
    
  var firstDatePicker = $find(xx.id); <<<<<<<<<<< Problem !!!!!
  var dateToNavigate = firstDatePicker.get_selectedDate();  
 
 


I have a problem with $find("PickerTimeFrom"). After this I get null.
I would like to call firstDatePicker
.get_selectedDate() for selected date. I do not know why ?

Regards
Krzysztof

Daniel
Telerik team
 answered on 15 Dec 2008
2 answers
120 views
Hi,

I have a page that uses RadToolTipManager to display a tooltip for several elements in the page.  The tooltip contains 3 controls, a textbox, a label, and a button.  The textbox and the label text are populated dynamically.

Everything is working correctly, however, it appears that controls render horizontally when added to the controls collection.  Also, looking through all the documentation and examples, it appears that in every case, content is rendering from left to right.

I need to have these 3 controls stacked on top of each other, with textbox on top, label under the textbox, and the button on the bottom.

Is there a way to handle the positioning of these controls?

Thanks!
Coy
Top achievements
Rank 1
 answered on 15 Dec 2008
1 answer
181 views

Hi all

I'm trying to make a orderlist grid that have a nested grid for orderitems. It works great and I can change orderitems and delete them.

But I have a problem when I try to insert new orderitems (products) when I use a usercontrol that has its own radgrid with products. The usercontrol works when it's not in the above radgrid. In my usercontrol i search for all products and show the result in a radgrid and then I want to select the product i want to add. But when i use this usercontrol in the orderitemradgrid, it never triggers the search button.
It just add a empty row.

You maybe can’t have a grid with search result to select in an “usercontrol” when you want to insert item? I can’t find any example to show how I should do this.

Georgi Krustev
Telerik team
 answered on 15 Dec 2008
2 answers
178 views
How do I center the heading of the RadPanelBar without putting a <div align='center'></div> around it?
jfkrueger
Top achievements
Rank 1
 answered on 15 Dec 2008
1 answer
117 views
Hi,

I have found an annoying issue with the Hyperlink Manager Dialog in the RadEditor.  First of all, we are running the latest RadAjax control suite (Q3-2008).

The issue is based on the rendering of the LinkText label and associated text box.  In the Telerik javascript function _loadLinkProperties (located in Telerik.Web.UI.DialogHandler), the Link Text section is shown/displayed based on the the value of _clientParameter.showText.  If this flag is false, the style for the parent <li> element (the parentNode) is set to "none". 
_loadLinkProperties : function()  
{  
    ...  
    if(this._clientParameters.showText)  
    {  
         ...  
    }  
    else 
    {  
        this._linkText.parentNode.style.display = "none";  
        this._emailLinkText.parentNode.style.display = "none";  
    }  
    ....  

In Firefox, the above javascript, when executed, results in hiding the parentNode (<li></li>).  However (and this is the crux of our problem) in IE7, this does not hide the parentNode.  It remains visible, and the text entry field width goes to 0.  This confuses our users becuase they wonder why they can't type anything in the box. 

Is there a workaround available that makes the IE7 behavior mimic the Firefox behavior (that is, hiding the parent node)?

We have a simplified sample project available that can demonstrate the issue (although to see the issue, the client browser must be IE7, in our case: Internet Explorer 7, version 7.0.5730.11).  The issue seems to be skin-independent (although I have not tried all the available skins).

Thanks for your help.

 --Brad
Tervel
Telerik team
 answered on 15 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?