Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
205 views
Hi

mastertableview item count is showing zero at needdatasource event. I wanted to get the checked checkbox count at this step. But the item count is zero which prevents looping.

thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
160 views
I have a masterpage in which I am loading a page.Masterpage contains RadScriptManager.
In the page,I have a listbox and and radtabstrip, whcih again has grid on 1 page and a label on another page.
When I click on listbox, I want to apply loadingpanel on radtabstrip.

<
asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel runat="server" ID="pnlMain" ScrollBars="Horizontal">
                <telerik:radlistbox id="lstTables" runat="server" selectionmode="Single" onselectedindexchanged="lstTables_OnSelectedIndexChanged"
                    autopostback="true">
                            </telerik:radlistbox>
                <asp:Panel ID="Panel1" runat="server" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                    >
                    <telerik:radajaxpanel id="RadAjaxPanel1" runat="server" loadingpanelid="RadAjaxLoadingPanel1">
                            <Telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="MultiplePages"
                                AutoPostBack="true" SelectedIndex="0">
                                <Tabs>
                                    <Telerik:RadTab PageViewID="pgEmployee" Text="Employee">
                                    </Telerik:RadTab>
                                    <Telerik:RadTab PageViewID="pgHomeAddress" Text="HomeAddress">
                                    </Telerik:RadTab>
                                     
                                </Tabs>
                            </Telerik:RadTabStrip>
  
                            <Telerik:RadMultiPage ID="MultiplePages" runat="server" AutoPostBack="true" RenderSelectedPageOnly="false" SelectedIndex="0">
                              <Telerik:RadPageView ID="pgEmployee" runat="server">
                                    <Telerik:RadGrid runat="server" ID="grdEmployee" EnableAJAX="True" EnableNoRecordsTemplate="True"
                                        GroupingEnabled="false" GridLines="Both" AllowSorting="True" ShowStatusBar="true">
                                        <ClientSettings Scrolling-AllowScroll="true">
                                        </ClientSettings>
                                        <ItemStyle Wrap="false" />
                                    </Telerik:RadGrid>
                                </Telerik:RadPageView>
                                 <Telerik:RadPageView ID="pgHomeAddress" runat="server">
                                    <asp:Label ID="lblAddress" runat="server" Font-Size="Medium"></asp:Label>
                                </Telerik:RadPageView>
                                
                            </Telerik:RadMultiPage>
                            </telerik:radajaxpanel>
                </asp:Panel>
            </asp:Panel>
            <telerik:radajaxloadingpanel id="RadAjaxLoadingPanel1" runat="server" initialdelaytime="0"></telerik:radajaxloadingpanel>
            <telerik:radajaxmanagerproxy id="AjaxManagerProxy2" runat="server">
          
         <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="grdEmployee">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdEmployee" />
            </UpdatedControls>
        </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="lstTables">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="MultiplePages" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
  
          
          
    </AjaxSettings>
  
    </telerik:radajaxmanagerproxy>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

So the problems are
1> For the first time when I click on list item, it doesnt show loading panel.
2>When I click on second tab in strip it shows the loading panel, which doesnt disappear.
3>Still if I change the tab, page hangs, showing 3 loading panels.

I referred following links

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/firstlook/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx



Any idea why it is happening?
Eyup
Telerik team
 answered on 27 Mar 2012
9 answers
493 views
I have been perusing the forum for nearly 2 days but have not found a solution. I have a Telerik Grid placed within a user control. After a Postback, the client side events do not fire, neither a row click javascript or my own custom "alert('Hi')" javascript. But when i place the same code within a .aspx page, it works perfectly. Could the support team please throw some light on this. My entire application runs on user controls so I cannot avoid using it!!!
Maria Ilieva
Telerik team
 answered on 27 Mar 2012
3 answers
96 views
I am using a Usercontrol to edit records in an Ajaxified RadGrid. I have used javascript code to force fullpostback when the RadUpload is used. However, on the server side, the control is always empty. Is this scenario possible and supported?

Jean
Andrey
Telerik team
 answered on 27 Mar 2012
2 answers
103 views
We've noticed what must be a bug in the RadPanelBar, sometimes it seems like the Designer does not update the ContentTemplate, but instead simply adds another ContentTemplate to the markup code, after the previous one. We noticed this bug when we could never see any of the changes we made to a RadPanelBar (it contained just text which was edited), and when we examined the HTML markup, we noticed that there were 2 ContentTemplates, one with the new text and one with the old. Removing the one with the old solved the problem. 
Peter
Telerik team
 answered on 27 Mar 2012
3 answers
228 views
How could I use in a WebService to load the childs of the parent with RadTreeNodeData like ToolTip, Expanded and AllowEdit?

All other properties (eg: Text, Value) are in the RadTreeNodeData object like RadTreeNode.

eg:

Telerik.Web.UI.RadTreeNode node = new Telerik.Web.UI.RadTreeNode();
node.Text = "new node";
node.Value = "25";
node.ToolTip = row["Tooltip"].ToString();


RadTreeNodeData nodeData = new RadTreeNodeData();
nodeData.Text = "new node";
nodeData.Value = "25";
??nodeData.ToolTip??

regards
Thomas
Plamen
Telerik team
 answered on 27 Mar 2012
1 answer
121 views
Hi,

I want to close the edit form (which is a template) server-side in some event handlers. How can I achieve this?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
109 views
hi, i'm create a RadDock dynamically of this form:

Protected Function creardock() As RadDock
        Dim newdock As New RadDock

        newdock.UniqueName = Guid.NewGuid().ToString().Replace("-", "a")
        newdock.ID = String.Format("RD{0}", newdock.UniqueName)
        newdock.EnableAnimation = True
        newdock.EnableDrag = True
        newdock.DockMode = DockMode.Docked
        newdock.DockHandle = DockHandle.Grip
        newdock.Resizable = False
        newdock.Width = Unit.Percentage(50)
        newdock.AutoPostBack = True
        newdock.Collapsed = False
        newdock.Skin = "Black"
        AddHandler newdock.DockPositionChanged, New DockPositionChangedEventHandler(AddressOf RadDock_DockPositionChanged)

        Return newdock
    End Function


this is a function that i need register for each raddock created:

    Protected Sub RadDock_DockPositionChanged(ByVal sender As Object, ByVal e As DockPositionChangedEventArgs)
        Dim docksel As RadDock = DirectCast(sender, RadDock)
        docksel.DockZoneID = e.DockZoneID
        docksel.Index = e.Index

        lbl.Text = "dock_zone_obj: " & docksel.DockZoneID & " - dock_zone_des: " & e.DockZoneID & "<br />" & _
                   "dock_index_obj: " & docksel.Index & " - dock_index_des: " & e.Index
    End Sub


Each raddock that is returned for the function creardock(), i need add to a raddockzone that too is created dynamically, the problem is that the event RadDock_DockPositionChanged not being registered, the addition to the raddockzone is as follows:

Dim mizona As RadDockZone = crearradzone()

Dim midock As RadDock = creardock()
 mizona.Controls.Add(midock)

this is the function that return the new raddockzone

 Protected Function crearradzone() As RadDockZone
        Dim newraddockzone As New RadDockZone()
        newraddockzone.MinWidth = Unit.Percentage(98)

        Return newraddockzone
    End Function

note that the creation of the Raddockzone and the Raddock depend on a dynamic creation of tables rows and columns have many records in a DB, the only fixed in the file .aspx is a RadDockLayout and a panel which I add the table or tables dynamically created

help me, i need know if there is any mistake in any function in my code, thanks.
Pero
Telerik team
 answered on 27 Mar 2012
4 answers
272 views
Hi,

I need to be able to add several rows to a RadGrid when I click on the Add button I have defined in the CommandItemTemplate.

The radgrid is using InPlace editing. The template has an "Add" button and a textbox next to it that specifies the number of rows to add.

So let's say I specified 5 in the textbox, I clicked on the Add button, and the ItemCommand or ButtonClick events are fired. How can I add 5 rows to the grid in my code-behind?

I tried to catch the Command in the ItemCommand event and then calling MyGrid.MasterTableView.InserItem() inside a for loop, but it doesn't work.

Thank you.
Enoch
Top achievements
Rank 1
 answered on 27 Mar 2012
7 answers
1.0K+ views
Correct me if I'm wrong, but It seems that using the RadFilterSqlQueryProvider to generate a SQL where clause, which is then used in a query that gets executed against your database, is extremely vulnerable to SQL injection attacks.  A user could type an entire SQL statement into a filter field editor, and the RadFilterSqlQueryProvider will simply inject that directly into the where clause verbatim.

If this is true, is there any way to protect against this? Is the only alternative to create your own QueryProvider to generate a parameterized query instead?

Thanks,

Chris
Radoslav
Telerik team
 answered on 27 Mar 2012
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?