Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
445 views
Hi,
I am using Radgrid with grouping. How i can group by two columns that should used in the <GroupHeaderTemplate> as following example.

I year  students                  ( Group by Year)

Science ( Group by Department)

Name

Student ID

 Avg mark

XXX

11111111

89

YYY

22222222

56

Maths ( Group by Department)

Name

Student ID

Avg mark

GGG

3333333

83

HHH

3333333

68

II year  students                  ( Group by Year)

Science ( Group by Department)

Name

Student ID

 Avg mark

XX

111111

99

YY

222222

87


Thanks

Eyup
Telerik team
 answered on 30 Nov 2012
8 answers
1.7K+ views
Hi,

I have user control, in which  have "Add" button. now i,m calling this user control in my page and firing click event of Add button (which is in the user control)

       protected void Page_Init(object sender, EventArgs e)
        {
            HeaderToolBar1.Add_Event += new WFSite.ViewControls.HeaderToolBar.AddDelegate(HeaderToolBar1_Add_Event);
          }

        void HeaderToolBar1_Add_Event(object sender, RadToolBarEventArgs e)
        {
           // How to open radwindow popup
        }


Thank you
Ravi
Danail Vasilev
Telerik team
 answered on 30 Nov 2012
1 answer
126 views
I'm working off of the demo here:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/modality/defaultvb.aspx

Everything is working but the serverside code.  Here's a snippet of the aspx:

<telerik:RadToolTip ID="RadToolTip2" runat="server" Modal="true" ShowEvent="FromCode"
        Position="TopCenter" RelativeTo="BrowserWindow" OnClientBeforeHide="OnClientBeforeHide"
        HideEvent="FromCode" ShowCallout="False">
 
        <asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Panel ID="pnlScheduleAddReport" runat="server" Style="padding-left: 11px;">
 
                <h5>Schedule A New Report</h5>
                <telerik:RadComboBox ZIndex="999999" ID="ddScheduleReportName" Label="Report:" runat="server" DataSourceID="SQLDataSource1" AllowCustomText="false" DataValueField="id" DataTextField="reportname" Width="275px">
                </telerik:RadComboBox>
                <telerik:RadComboBox ZIndex="999999" ID="ddScheduleReportFrequency" Label="Frequency:" runat="server" DataSourceID="SQLDataSource3" AllowCustomText="false" DataValueField="id" DataTextField="frequencyDesc" Width="140px"
                OnSelectedIndexChanged="ddScheduleReportFrequency_SelectedIndexChanged" AutoPostBack="true">
                </telerik:RadComboBox>
                <telerik:RadComboBox ZIndex="999999" ID="ddScheduleReportParam" Label="Run Every:" runat="server" AllowCustomText="false" Width="165px">
                </telerik:RadComboBox>
                <br /><br />
                    <asp:Label ID="lblScheduleReportError" runat="server" Text="error label" Visible="false"></asp:Label><br />
             
            <telerik:RadButton ID="btnScheduleAddSubmit" runat="server" Text="Add Report To Schedule" OnClick="btnScheduleAddSubmit_Click" AutoPostBack="true">
            </telerik:RadButton>
 
            <telerik:RadButton ID="btnScheduleAddCancel" runat="server" Text="Cancel" OnClick="btnScheduleAddCancel_Click">
            </telerik:RadButton>
                     
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnScheduleAddReport" EventName="Click"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>
</telerik:RadToolTip>

and here's the code for the postback:

Protected Sub btnScheduleAddSubmit_Click(sender As Object, e As System.EventArgs) Handles btnScheduleAddSubmit.Click
 
         
 
        Dim strConn As String = System.Configuration.ConfigurationManager.ConnectionStrings("XXXXX").ConnectionString
        Dim strSQL As String = "INSERT INTO TABLE (fld1, fld2, fld3, fld4) VALUES (@userID, @reportID, @reportFrequencyID, @reportFrequencyParam)"
 
        Dim oConn As New Data.SqlClient.SqlConnection(strConn)
        Dim oCmd As New Data.SqlClient.SqlCommand(strSQL, oConn)
 
        With oCmd.Parameters
            .Add(New SqlClient.SqlParameter("@fld1", Session("userID")))
            .Add(New SqlClient.SqlParameter("@reportID", ddScheduleReportName.SelectedValue))
            .Add(New SqlClient.SqlParameter("@reportFrequencyID", ddScheduleReportFrequency.SelectedValue))
            .Add(New SqlClient.SqlParameter("@reportFrequencyParam", ddScheduleReportParam.SelectedValue))
        End With
        oConn.Open()
        oCmd.ExecuteNonQuery()
        oConn.Close()
                      bindReportSchedule()
                
        'If Not ddScheduleReportName.Equals(String.Empty) AndAlso Not ddScheduleReportFrequency.Equals(String.Empty) AndAlso Not ddScheduleReportParam.Equals(String.Empty) Then
 
            Dim script As String = "toHide = true;GetActiveToolTip().hide()"
            ScriptManager.RegisterStartupScript(Me.Page, GetType(Page), "scriptKey", script, True)
            Me.lblScheduleReportError.Visible = False
 
        'Else
            'Me.lblScheduleReportError.Text = "Please select a Report, Frequency, and Frequency Parameter field before submitting."
            'Me.lblScheduleReportError.Visible = True
        'End If
    End Sub

Oddly (or maybe not) the postback for the 2nd dropdown (ddScheduleReportFrequency) works perfectly.  I don't see why the click button event (btnScheduleAddSubmit)wouldn't work as well.  What am I doing wrong?

Thanks.
Slav
Telerik team
 answered on 30 Nov 2012
0 answers
187 views
I'm using a RadTabStrip with RadPageView that brings up pages via the ContentUrl.  I have a javascript function on the pages which does a resize of the page.  I use the window events of load and onload within those pages to trigger my resize javascript function.  It works the first time each time tab is clicked, but not when you go back and click a tab that was already clicked once.  I was able to get it to work by using AutoPostBack=True in the RadTabStrip, but I do a lookup to a database for each page so I don't want to keep doing the same lookups over and over.  Any suggestions?  I realize using the ContentUrl it creates an iFrame, so it gets a tad interesting.
Dwight
Top achievements
Rank 1
 asked on 30 Nov 2012
2 answers
104 views
Hi
usign MetroTouch skin the scheduler header becomes black instead of blue.
Is there a easy way to fix this?

Best Regards
Lorenzo Margola
Top achievements
Rank 1
 answered on 30 Nov 2012
1 answer
285 views
Good afternoon I have a problem when selecting multiple files in Radasyncupload, everything works perfectly, plus the selection of multiple files with CTRL not working since I enabled MultipleFileSelection = "Automatic" more still does not work when the dialogue continues I'm using the code
<telerik:RadAsyncUpload runat="server" AllowedFileExtensions=".jpg,.png" MultipleFileSelection="Automatic"
                                                    ID="rupImagens" TemporaryFolder="~/Maquinas/Dealer/Anexos/Foto/Tradin" Width="210px"
                                                    Culture="Portuguese (Brazil)" Skin="Default" MaxFileInputsCount="50" OverwriteExistingFiles="true"
                                                    OnFileUploaded="OnFileUploaded" OnClientFilesUploaded="OnFileUploaded" OnClientFileUploading="DesabilitaIbtInserir">
                                                    <Localization Remove="Remover" Select="Procurar..." Add="Adicionar" Clear="Limpar"
                                                        Delete="Deletar" />
                                                </telerik:RadAsyncUpload>

Att..
Plamen
Telerik team
 answered on 30 Nov 2012
1 answer
90 views
Hi,

I've been using the Upload contol for some time to add attachments to knowledgebase articles. Much of the page is ajaxified, and the I've been using (successfully in the past), the OnClientFileSelected event to force a postback which then does something serverside with the uploaded file.

I am now using Q1 2012 controls and this functionality no longer works. I've read the articles explaining that a full postback is required.. and this is happening, yet serverside there never appears to be anything in the UploadedFiles collection.

Clientside code calls a JS function which performs a manual postback using a hidden control ID as the argument.

Serverside RaisePostBackEvent correctly responds to this postback, at which point the UploadedFiles collection is still empty. previously this was working.

Any pointers?
Thanks.
Plamen
Telerik team
 answered on 30 Nov 2012
5 answers
103 views
Hi,
I have modified ToolsFile.xml to enable a custom tool.
Any advice on how to localize the text of the tool?
Seems you have localized texts and unlocalized texts (or am I simply unable to find the localization of e.g. SPTemplateManager)

Best,
Nils
Rumen
Telerik team
 answered on 30 Nov 2012
1 answer
104 views
I am using the latest version of your ASP.Net RadTreeView control.  I have a 5-level hierarchy that looks like this: http://mwtech.com/downloads/public/PassesEditor.jpg

The top 4 levels are uneditable in this editor.  Its sole purpose is to allow the addition of one or more bottom-level nodes (highlighted in blue).

So I added such a node - "Orepass #1", left the module, and returned to it.  My code preserves the data.  I then started opening successive levels in the treeview.  Each of the top 4 levels is added on-the-fly via server-side code.  Each of the nodes on these top 4 levels has its ExpandMode = TreeNodeExpandMode.ServerSideCallBack.

The bottom-level nodes do not define ExpandMode in any way.

What happens is that the first time I enter any particular branch and click on a bottom-level node, its parent unexpectedly collapses.  I've searched my code and don't believe it is causing this to happen.  Furthermore, when you click on a bottom-level node in the same branch a 2nd or 3rd or Nth time, this strange behavior no longer occurs.

I'm convinced I've seen this problem before but have examined all of my past postings on your forum and can't find any specific mention of it.

Any ideas what might be causing this?

Robert

P.S. I *think* my problem may be similar to this: http://www.telerik.com/community/forums/aspnet-ajax/treeview/when-nodeclick-parentnode-has-collapsed.aspx
Boyan Dimitrov
Telerik team
 answered on 30 Nov 2012
5 answers
155 views
Hi,

I´m building a master/content page with a treeview for navigation to the left and then clicking on nodes, different usercontrols are loaded (visible true/false) in the content pane. When data has been updated in the content user control, the treeview nodes text should be changed. For example when I click a "department" node, the different textboxes for the department is loaded to the right. If the name was changed, the treeview node text should be updated.

Today I do this with events from the UserControl but it seems like a lot of overhead (using AJAX) for just updating the text-property of the treenode. So Im tryiing to achieve this using Client-Side code. The problem is that I dont know how to reach the selected node from javascript inside the UserControl. If I when the save button is clicked calls a method (javascript) in the main page. But that method cannot reach the textbox in the user control instead.

Help is much appreciated.

Nencho
Telerik team
 answered on 30 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?