Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
58 views
Hi all,
I can't find the function that can find out my thread or post. But this is a common function in forum application whether I subscribe them. does this function exist?Thx.
Sebastian
Telerik team
 answered on 22 Mar 2010
1 answer
115 views
hi,

Radmenu with repeatcolumns=2 and rtl enabled does not show the items correctly in ie 7. but works well in ie8 and mozilla.
every time mouse over on the top level item, could see browser is having horizontal scrolbar, Items are moving to the right end of the browser.

have used this below lines, using RadMenu Q3 2008 Black Skin


<telerik:RadMenu ID="RadMenu1" runat="server" dir="rtl" Skin="Black">
            <Items>
                <telerik:RadMenuItem Text="Menu 1">
                    <Groupsettings RepeatColumns="2" repeatdirection="Vertical" />
                    <Items>
                        <telerik:RadMenuItem Text="Menu1.1">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Menu1.2">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Menu1.3">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Menu1.4">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Menu 2">
                    <GroupSettings RepeatColumns="2" RepeatDirection="Horizontal" />
                    <Items>
                        <telerik:RadMenuItem Text="Menu2.1">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Menu2.2">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Menu2.3">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Menu2.4">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
</telerik:RadMenu>

Suggestions plz.......
Kamen Bundev
Telerik team
 answered on 22 Mar 2010
4 answers
716 views
Hi,
I am trying to execute a code behind web method in javascript using PageMethods. The problem I am facing is as below:
<WebMethod()> _ 
        Public Shared Function Insert(ByVal charge As String, ByVal clientid As String) As String 
        Dim value as string 
        'Do The insert and retun value 
        Return value 
End Function 
 
 

Below is the javascript code and the insert method gets executed based on a confirm window:

 
 
function DoSomething1(sender, eventargs){  
    var txtRa = document.getElementById(sender.get_attributes().getAttribute("AssID"));  
    txtRa.value="";  
    var charge = sender.get_text();  
    if (trim(charge)!=""){  
charge = charge.replace("'", "\'");  
        var message = '<%= Resources.NoExist%>'  
        if(confirm(message)) {  
            var clientid = sender.get_attributes().getAttribute("ClientID");  
            var ret = PageMethods.Insert(charge,index);  
            alert(ret);  
               DoSomething2(ret);  
              
       } 
 

The javascript code doesnt wait for the function to return a value and hence is executing the alert even before the insert function is complete. So, I end up getting an 'undefined' value for ret parameter.

Is there any way we can synchronously wait for the method to complete, get the return variable, set it in a hidden variable and use it in the rest of the javascript.
the webmethod does not have access to the UI controls on the page, as it is a shared web method.
I am open to moving this webmethod to a web service but I am not sure how the javascript would wait for the codebehind function to complete.
I have tried setTimeOut method in javascript to see if that will cause the wait but that dint work. The alert got fired with 'undefined'.
The webmethod does not take a long time to execute either. It only takes a few seconds. I just cant figure out how I can wait on the client side for the return parameter.

Please help me with any ideas and I am pretty much open to trying out anything at this point.

thanks in advance,
Kal.
Eliza Sahoo
Top achievements
Rank 1
 answered on 22 Mar 2010
1 answer
310 views
Hi all,

I would like to create a grid with GroupHeaders containing sum-values of some columns (see attached image).
The group can be expanded so all 'sub-data' are aligned in columns under the corresponding GroupHeader columns.
This would be a nice compact overview of data.

As far as I can see, aggregates can only be placed in the Footer. It doesn't look nice, and one group always takes 2 rows which is a 'waste' of space.

If this cannot be done in a RadGrid - what else can I do ?


Thanks

Schlurk
Top achievements
Rank 2
 answered on 22 Mar 2010
1 answer
170 views
Hi,

I'm having some problems using the radcombobox.

I'm loading the combobox with an ObjectDataSource and when I want to get the selectedItem, selectedValue or selectedIndex, they are always null, "" or -1.

I was reading that combobox cannot access data when you use on demand loading, but what's mean?

that it's the code:
<telerik:RadComboBox ID="rcb_leads" runat="server" Width="290px" 
        DataValueField="IDLEAD" Filter="Contains" DataTextField="EMAIL"  
        DataSourceID="ods_getLeads" Text="Search" AutoPostBack="True"  
            onselectedindexchanged="rcb_leads_SelectedIndexChanged" > 
        <HeaderTemplate> 
            <table style="width: 275px" cellspacing="0" cellpadding="0"> 
                <tr> 
                    <td style="width: 177px;"> 
                        Lead Name</td> 
                    <td style="width: 60px;"> 
                        Email</td> 
                </tr> 
            </table> 
        </HeaderTemplate> 
        <ItemTemplate> 
            <table style="width: 275px" cellspacing="0" cellpadding="0"> 
                <tr> 
                    <td style="width: 177px;"> 
                        <%# Eval("FIRSTNAME") + " " + Eval("LASTNAME") %></td> 
                    <td style="width: 60px;"> 
                        <%# Eval("EMAIL") %></td> 
                </tr> 
            </table> 
        </ItemTemplate> 
    </telerik:RadComboBox> 

and the datasource:

 <asp:ObjectDataSource ID="ods_getLeads" runat="server"  
        SelectMethod="GetLeadByUserId" TypeName="LeadSius.stuff.DataAccess"> 
        <SelectParameters> 
            <asp:SessionParameter Name="userId" SessionField="_userId" Type="Int32" /> 
        </SelectParameters> 
    </asp:ObjectDataSource> 

What is wrong with that?

Regards
Schlurk
Top achievements
Rank 2
 answered on 22 Mar 2010
6 answers
345 views

Hi!!! I have a little problem with a control, the thing is that I want to obtain the value of a control inside a EditForm, so when I perform an Insert I get the value with this:

 

 

CType(RadGrid1.MasterTableView.GetInsertItem.FindControl("CheckBox1"), CheckBox)

But when I try to edit an item and get the value of that control, I can't...

Telerik.Web.UI.GridException
  Message="Insert item is available only when grid is in insert mode."
  Source="Telerik.Web.UI"
  StackTrace:
       at Telerik.Web.UI.GridTableView.GetInsertItem()
       at _Default.ChBx_FallaSI_CheckedChanged(Object sender, EventArgs e) in C:\Documents and Settings\danivald\My Documents\WebRMAS\Default.aspx.vb:line 237
       at System.Web.UI.WebControls.CheckBox.OnCheckedChanged(EventArgs e)
       at System.Web.UI.WebControls.CheckBox.RaisePostDataChangedEvent()
       at System.Web.UI.WebControls.CheckBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()
       at System.Web.UI.Page.RaiseChangedEvents()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:



Please help me...!!!!

Satya Sahu
Top achievements
Rank 1
 answered on 22 Mar 2010
1 answer
98 views
Hi,

I am able to load the Tabs dynamically from the server side by appending the tab tag to the string builder. I have also got tabs created by  loading the xml to the TabStrip  as
RadStript1.LoadContentFile("~/App_Data/xyz.xml") 
My question is how can I load a custom usercontrol dynamically into these respective tabs?

Thanks

 

Dimitar Milushev
Telerik team
 answered on 22 Mar 2010
1 answer
101 views
Hi

   I would like to know that is it possible to rebind the datagrid in the item command event.
Since my requirement is to get the filter value such as date from the filter template and apply the filter in the database(instead in the grid itself) should get rebind ed after applying the filter values.

FYI
need_datasouce event is not firing after calling the grid.Rebind() method in the item command event.

Thanks
BaiH
Top achievements
Rank 1
 answered on 22 Mar 2010
2 answers
128 views
What's the proper replacement code for Q1 2010 version of DLL since it doesn't have the embedded resource.   I would like the loading image to be the same as I have referenced here.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25">   
       <img alt="Loading..." style="position:absolute; top:10px; left: 500px; border:0;" src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.LoadingProgressBar.gif") %>' />  
   </telerik:RadAjaxLoadingPanel> 

Dimo
Telerik team
 answered on 22 Mar 2010
1 answer
73 views
I am using RadGrid and have a design which greatly requires nested (hierarchy) tables.  I was thinking about using LinqDataSources to bind each table level.  However, in all the examples I have seen, the hierarchy tables are presented as read-only in the demos.

Is it possible to Create Retrieve Update Delete on hierarchical tables?  If so, where would a demo of this live?

Thanks, M
Rosen
Telerik team
 answered on 22 Mar 2010
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?