Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
426 views
Hi i'm trying to set the default skin for all controls in my project. I've done some searching, but the answers i've encountered don't seem to have done the job.

At the moment i've added this into my web config

  <appSettings>
    <add key="Telerik.WebControls.Skin" value="Windows7" />
  </appSettings>

I've just updated to the latest version of the controls FYI, but prior to this I couldn't get it to work either.

At the moment i've got a pretty simple page, with two telerik controls: radstrip & pageview, but neither are being applied the win7 skin.


Regards,

Alan
Alan T
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
889 views
Hi fellas
I'm trying to use some nested combo boxes and want to disable the ability of writing text in the combo box 'cause if invalid text is written it will break my app.  Now I know validation might work but my clients desire is to completely disable this behaviour (I prefer it this way as well).  I've been looking at the AllowCustomText property but changing its value has done nothing, dunno why... any help will be greatly appreciated, thanks :)
Kalina
Telerik team
 answered on 21 Jul 2011
2 answers
255 views
Hi all,

I have two RadGrids, rg1 and rg2, each with an identical column structure (or schema) and identical properties apart from their IDs.  They contain different data.  I need to make a new grid, rg3, that is the concatenation of rg1 and rg2; that is, rg3 has the same column structure and properties as rg1 and rg2 and contains all of the rows from rg1 followed by all of the rows from rg2.

What do the experts recommend as the simplest way to achieve this?

All answers gratefully received,

Ed Graham
Ed
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
78 views
Hey,
I'm working on fileExplorer control to upload files which I need to save their metadata in a DataBase, so upon uploading I need to call some methods to do that, but I can't figure out the event that triggers onUploading please can you help me?
Dobromir
Telerik team
 answered on 21 Jul 2011
2 answers
63 views
I have a radgrid which uses form templates for updating records in the grid. I also need to use this form to update multiple rows in the grid at the same time (global updates). I have a gridclientselect column and the code behind inplace to successfully do the update for multiple selected rows. I am running into one small problem which I need help. The checkboxes clear upon opening the edit form. The correct information is saved in RadGrid1.SelectedItems, but I am failing to understand why the checks are removed from the gridclientselectcolumn field. Is there a way to keep the items selected until the form is closed?

Please let me know if you need code snippets to help answer this question.

Thanks a bunch!
Casey
Top achievements
Rank 1
 answered on 21 Jul 2011
0 answers
55 views
UPDATE: fixed by moving popup into a user control and setting z-index on this, very odd but works fine :-)




I have 3 divs on a page, one contains a list of blog entries, another a tag cloud and another (hidden) shows a dialog for entering a new blog.

The new blog div opens up using jQuery .fadeIn method on top of the rest of the page.  The blog content is entered using a Rad Editor but the tag cloud is still visible through the editor even though I've tried changing the z-index of the components accordingly...

Hope this makes sense and somebody can replicate this, or point me in the direction of an answer...

I've even tried .hide on the tag cloud but it still appears...
Cliff Gibson
Top achievements
Rank 1
 asked on 21 Jul 2011
1 answer
342 views
I'm attempting to have the new RadComboBox with checkboxes="true" bound to a SqlDataSource inside a radGrid. 

It works fine when just 1 item is selected, but when I select multiple Items it doesn't work. I try to convert all the selected countries ids into a comma separated string and then add an updateparameter to update the database.  But it doesn't update it. I'm not sure what I'm doing wrong. 

I'll also like to know the proper way to populate the checkboxes in the radcombobox automatically, when editmode is enabled on the grid.

<telerik:GridTemplateColumn HeaderText="Select Countries" ItemStyle-Width="240px" UniqueName="List_of_Countries" >
            <ItemTemplate>
                <%#  DataBinder.Eval(Container.DataItem, "List_of_Countries")%>
            </ItemTemplate>
            <EditItemTemplate>
                 <telerik:RadComboBox runat="server" ID="rdComboCountries" DataTextField="country_name"
CheckBoxes="true" Width="250px"   DataValueField="country_id" DataSourceID="SqlDataSourceCountries"
SelectedValue='<%#Bind("List_of_Countries") %>'>
                </telerik:RadComboBox>
            </EditItemTemplate>
 </telerik:GridTemplateColumn>


  <asp:SqlDataSource runat="server" ID="SqlDataSourceCountries" ConnectionString="<%$ ConnectionStrings:mydbConnectionString %>"
ProviderName="<%$ ConnectionStrings:mydbConnectionString.ProviderName %>"
    SelectCommand="SELECT country_id, Country_names FROM lu_countries">
    </asp:SqlDataSource>

Private Sub rgCountries_UpdateCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles rgCountries.UpdateCommand
        Dim editItem As GridDataItem = e.Item
 
        'Pass the parameter values to the SqldataSource
         oDSMySqlCountries.UpdateParameters.Add(New Parameter("list_of_countries"))
  
         oDSMySqlCountries.UpdateParameters("list_of_countries").DefaultValue = GetCheckedItems(DirectCast(editItem.FindControl("rdComboCountries"), RadComboBox))
 
        'Update the values
        oDSMySqlCountries.Update()
 
 
        'Bind the RadGrid again
        rgCountries.Rebind()
 End Sub
  
 Private Function GetCheckedItems(ByVal comboBox As RadComboBox) As String
        Dim sb As New StringBuilder()
        Dim collection As IList(Of RadComboBoxItem) = comboBox.CheckedItems
  
        For Each item As RadComboBoxItem In collection
            sb.Append(item.Value + ", ")
        Next
 
         Return sb.ToString.TrimEnd(" ").TrimEnd(",")
     End Function

Kalina
Telerik team
 answered on 21 Jul 2011
1 answer
38 views
Hi there,

I am trying to use the Gantt Chart to bind to a custom DataSource.  I then want the click event to navigate to a new URL (passing in the ID of the element that has been clicked).  Using ActiveRegionUrl='<%# Eval("RecordId", "campaignviewer.aspx?CampaignID={0}") %>' I get a message about the ChartSeries not having a DataBind method.

I have also tried this by interrogating the ClickEventArgs on click, but cannot seem to get any sensical information from it (or set anything for that matter).

Finally, I tried it without using automatic databinding as follows:

foreach (CampaignHeader campaignItem in oCH)
{
    ChartSeriesItem chartItem = new ChartSeriesItem();
    chartItem.ActiveRegion.Url = string.Format("campaignviewer.aspx?CampaignId={0}", campaignItem.RecordId);
    chartItem.Name = campaignItem.CampaignName;
    chartItem.YValue = campaignItem.OAStart;
    chartItem.YValue2 = campaignItem.OAEnd;
    rcCampaign.Series[0].Items.Add(chartItem);
}

However in this way, I cannot set the label for each row and I also see a load of empty rows (labelled from 1 - 10).

Any help would be gratefully appreciated!

Alec.
Tsvetie
Telerik team
 answered on 21 Jul 2011
1 answer
136 views
Hi All,

We have a FileExplorer in our application which is built dynamicallly. On click of a tree node, we are trying to rebind the grid with the value of the node clicked. The datasource of the grid has the updated data but after the code passes rebind statement, the grid still holds the old value. Below is our PopulateGrid() method and it is invoked in OnPreRender.

public void PopulateGrid()
        {
            try
            {
                DataTable dtDocList = new DataTable();
                dtDocList = createDataTable(dtDocList);
                DataRow docListRow = null;              

                if (FileExplorerDataSource.Count > 0)
                {
                    foreach (DMSDocument currentDoc in FileExplorerDataSource)
                    {
                        docListRow = dtDocList.NewRow();
                        foreach (AspenDocumentListWebControlShowColumnsConfigurationElement column in AspenDocumentListUIConfig.ColumnsToShow)
                        {
                            foreach (DMSMetadata currProperty in currentDoc.Properties)
                            {
                                if (currProperty.Name == column.DataField)
                                {
                                    docListRow[column.Name] = currProperty.Value;
                                    break;
                                }
                            }
                        }

                        if (String.IsNullOrEmpty(filterExpression))
                        {
                            dtDocList.Rows.Add(docListRow);
                        }
                        else if (docListRow["DocumentType"].ToString() == filterExpression.ToString())
                        {
                            dtDocList.Rows.Add(docListRow);
                        }

                    }
                    if (String.IsNullOrEmpty(filterExpression))
                    {
                        Documents = dtDocList;
                        DataView sortedDocListView = new DataView(dtDocList);
                        if (dtDocList != null)
                        {
                            sortedDocListView.Sort = dtDocList.Columns["CreationDate"] + " DESC";
                        }
                        docListGrid.DataSource = sortedDocListView;
                        docListGrid.DataBind();
                    }
                    else
                    {
                        DataView sortedDocListView2 = new DataView(dtDocList);
                        if (dtDocList != null)
                        {
                            sortedDocListView2.Sort = dtDocList.Columns["CreationDate"] + " DESC";
                        }
                        //docListGrid.SortExpressions.Clear();
                        docListGrid.DataSource = sortedDocListView2;
                        docListGrid.Rebind();
                    }
                }
                else
                {
                    //docListGrid.MasterTableView.NoRecordsTemplate = new NoRecordsTemplate();
                }
            }
            catch (Exception)
            {
                // LogError(ex.Message + " /n Stack Trace :" + ex.StackTrace);
            }
        }


The filter expression will have the value of the tree node clicked.
This is quite urgent. Any help is very much appriciated.

Thanks in advance.

Regards
Rajeev

Dobromir
Telerik team
 answered on 21 Jul 2011
1 answer
59 views
Hi,

      I need to customize .RadInput css on my content page.
    

 

    <style type="text/css">

 

 

        .RadInput

 

        {

 

            display: none;

 

        }

 

    </style>

 



 I'm able to achieve what I want. But I also have a Radtextbox on my master page. when this page loads, master page's textbox also disappears. Is there some way I could restrict this modified css's efect to content page?

Thanks
Rajesh
Slav
Telerik team
 answered on 21 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?