Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
195 views
Hi,

I have a grid bound to a strongly-typed list of business objects (List<BusinessObject>). The class BusinessObject has a property SubObject which may be null. One column of the grid binds to a string property called SubObject.Property.

The grid binds perfectly when it loads initially. However, if I try to filter or sort on the SubObject.Property column, it throws a Null Reference exception when there are any rows in the dataset that have SubObject = null.

I can see why that would be, but my question is, how do I get round it?

Regards,

Paul Taylor
Paul Taylor
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
97 views
I'm using the RadMenu control for my web application and it works perfectly for every link on the site except for one.  When a user clicks the Ticket link it opens fine in a new tab just like it should.  They can then go about doing data entry tasks and saving information on the page.  The problem is if they click the Ticket link, enter a bunch of data and then click the Ticket link again it does not open a new tab.  It opens in the same tab all of their data entry is lost for the prior ticket they were working on.  This only seems to happen with IE8 and it works fine with Firefox but 90% of our users are working with IE8 and I suspect the bug is with the browser but needless to say I still need a work around for it.  I've provided a screen shot and sample code for how I'm binding the control.

<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Web20" EnableEmbeddedSkins="true" 
                EnableEmbeddedBaseStylesheet="true" Flow="Horizontal" Width="100%" OnItemDataBound="RadMenu1_ItemDataBound" > 
                <DataBindings> 
                    <telerik:RadMenuItemBinding TextField="Link" NavigateUrlField="LinkURL" TargetField="LinkTarget"   /> 
                </DataBindings> 
            </telerik:RadMenu> 

 private void BindMenu()  
    {  
        DataSet ds;  
 
        if (Session["Menu"] != null)  
        {  
            ds = (DataSet)Session["Menu"];  
        }  
        else  
        {  
            ds = ConnecTED.BindTEDMenu();  
            Session["Menu"] = ds;  
        }  
 
        RadMenu1.DataSource = ds;  
        RadMenu1.DataTextField = "Link";  
        RadMenu1.DataValueField = "LinkURL";  
        RadMenu1.DataFieldID = "LinkID";  
        RadMenu1.DataFieldParentID = "ParentLinkID";  
        RadMenu1.DataBind();  
    }  
 
    protected void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e)  
    {  
        if (!SecurityHandler.CanViewLink(SafeValue.SafeInt(Session["UserID"].ToString()),DataBinder.Eval(e.Item.DataItem, "Link").ToString()))  
        {  
            e.Item.Visible = false;  
        }  
    } 
Yana
Telerik team
 answered on 30 Jun 2010
1 answer
103 views
Hello,

I have an issues with the RadWindow when I try to put as parameter of the close, a json string

at the end of my client script,

I close the window using the following line,

oWnd.close(myJson);

myJson contains the following : {"Hello":"true"}

and it doesn't work, I got an issue on the parent when it loads.

Sy had the issue already ?

thx in advance

Note it works if I pass a simple string as "Hello" for instance


Georgi Tunev
Telerik team
 answered on 30 Jun 2010
2 answers
95 views
Good Day All

Can RadSchedular connect to a PostgreSql Database ?

Thanks
Vuyiswa
Top achievements
Rank 2
 answered on 30 Jun 2010
1 answer
207 views

I use the Telerik RadEditor to display editable documents selected from a RadList box.  I populate the editor programmatically (server side) as the user selects items from the list box.  The TextChanged event fires when ever the user modifies a document, that's good.  It also fires when the user selects a different list item (radeditor is loaded programmatically via radeditor1.contents=), this is bad.

I'm wondering if there is some way to disable the TextChanged Event temporarily when the radeditor is populated programatically but retain the behavior that the TextChanged event fires if the user actually makes a change to the document in the radeditor.

Thanks in advance.

Rumen
Telerik team
 answered on 30 Jun 2010
1 answer
101 views
Okay, after a considerable amount of reading, trial and error, and general fussing with code I've got a RadTreeView that I can expand, you click a link and will remain expanded when the new page loads, However; repeating this on collapse appears to be problematic for me still. I have the system look for the child nodes and add them dynamically when the user expands a node. I need to be able to do the same for collapsing.

What I can't seem to find is a way to find all the nodes with parent (node you just collapse), if I could do that I can just code it to remove all of them.

Alternatively if there is a simple "remember what my treeview has" in session that would be excellent as I've been programming the whole thing to check the session, when you expand a node add child nodes to it, etc. if anyone has any recommendations or advise I'd really appreciate it.

-Eric
Nikolay Tsenkov
Telerik team
 answered on 30 Jun 2010
3 answers
179 views
I'm looking to implement a tabstrip similar to the way Visual Studio handles the solution explorer, team explorer, properties, etc; stack the tabs vertically, with the text of the tabs rotated at a -90 degree angle. The best example I could find is on another control vendor's website:

http://aspnetajax.componentart.com/control-specific/tabstrip/features/vertical_tabStrip/WebForm1.aspx

Thanks!
Veronica
Telerik team
 answered on 30 Jun 2010
1 answer
111 views
Are there any known issues with putting a RadMaskedTextBox inside the ItemTemplate of a RadComboBox?

Here is what I have:
 <telerik:RadComboBox ID="cmbConferenceInformation_ConferencePhone" runat="server" Width="250" HighlightTemplatedItems="true" DataTextField="Text" DataValueField="Name" OnItemDataBound="cmbConferences_ConferencePhones_ItemDataBound" OnSelectedIndexChanged="cmbConferences_ConferencePhones_SelectedIndexChanged"  AutoPostBack="true"
                                                                        <ItemTemplate> 
                                                                            <table border="0" cellpadding="0"
                                                                                <tr>
                                                                                    <td><telerik:RadMaskedTextBox ID="txtConferenceInformation_ConferencePhone_OtherPhone" runat="server" Width="80" Mask="(###) ###-####"></telerik:RadMaskedTextBox></td
                                                                                </tr> 
                                                                            </table> 
                                                                        </ItemTemplate>                                                                                         
                                                                    </telerik:RadComboBox> 


What i am experiencing, only in IE8, is that when i put the cursor into the  beginning of the masked text box and start typing, it takes one character and then jumps the cursor to the end. I cant type anymore and i cant backspace at that point since i am at the end of the masking. Has anyone else experienced this?

Just to note: This combobox is within a RadPanelBar, that is within a splitter. which is within a RadAjaxPanel in a RadWindow. 


Yana
Telerik team
 answered on 30 Jun 2010
1 answer
134 views

Hi,

I am using telerik radgrid with the Command item Insert/Update/Delete
Few issue i have experienced

Please check against the following link.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx

Add Case:-

1) When I click on the AddNew button ,below option is comming in the header
   Please tell me how to remove Edit Selected and Delete selected customer from here ,also can you tell me what's the use of these button when we are adding a new customer.

Custom command item template     Edit selected      Cancel editing       Add this Customer   Delete selected customers   Refresh customer list 

 

Edit Case.(Single row select)

2) If we doesn't select any row before clicking on the EditSelected button,can we show a popup saying that "Please select the customer to edit."(like Delete case.)

Please

Princy
Top achievements
Rank 2
 answered on 30 Jun 2010
1 answer
78 views
Hi
I am using ToolTip to show a message in popup window. In Mozilla the tooltip is coming as popup, but in IE it is not coming as so (its coming inside the parent page)

The code given is

<telerik:RadToolTip runat="server"  ID="RadToolTip1" Position="Center" HideEvent="FromCode"
            ShowEvent="FromCode" Width="400px"  RelativeTo="BrowserWindow">
     <asp:UpdatePanel runat="server" ID="UpdatePanel2">
            <ContentTemplate>
            <asp:Panel ID="pInquiry" runat="server" Style="padding-left: 11px;">
            <table width="100%">
         <tr>
             <td>
                 &nbsp;
             </td>
         </tr>
         <tr>
             <td>
                 <table align="center">
                       
                     <tr>
                         
                         <td align="center">
                             <table>
                                 <tr>
                                     <td>
                                         <input id="btnLogout" type="button" onclick="logout();return false;" value="Logout" />
                                     </td>
                                     <td>
                                         It is a popup window
                                     </td>
                                 </tr>
                             </table>
                         </td>
                     </tr>
                 </table>
             </td>
         </tr>
         <tr>
             <td>
                 &nbsp;
             </td>
         </tr>
     </table>
     </asp:Panel>
</ContentTemplate>
           
        </asp:UpdatePanel>     
</telerik:RadToolTip>

Any idea why this issue?



girish kumar
Top achievements
Rank 1
 answered on 30 Jun 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?