Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views
hi

i have enabled the csv option in the grid and i have a column which consists of data in this format 28:30 but when i export it to csv the data gets changed to 28:30:00 i need to display it as 28:30
abinav
Top achievements
Rank 1
 answered on 29 Jun 2011
3 answers
107 views
I'm trying to use the Radgrid as a search form. 

When the grid is first loaded, I want it to bring back zero records, but show the columns and their various filter boxes and the command item section.  When a filter is selected, it then brings back the relevant records.

Currently, I am bringing back the full set of records, and then the user filters from there.  I only want to bring back the records after a filter has been entered.

Thanks!
Genti
Telerik team
 answered on 29 Jun 2011
1 answer
46 views
Hi All,

I have updated Rad controller to AJAX ASP.NET after that i am getting java script error I have attached image . Please any help in this.

Thanks in advance.


Georgi Tunev
Telerik team
 answered on 29 Jun 2011
2 answers
71 views
I have a control that has a Radgrid with three GridDropDownColumn as RadComboBox. I have been trying to enable paging for it and it works for all the other fields but this 3 fields. I'am assigning the  Datatable that i use as datasource to the Viewstate and use the following code in the PageIndexChanged and NeedDataSource events:

if (ViewState["GridData"] != null)
 {
      grdCitasMasivas.DataSource = ViewState["GridData"];
      grdCitasMasivas.Rebind();
  }

What could i do to make the paging work for the GridDropDownColumn columns?
Veli
Telerik team
 answered on 29 Jun 2011
1 answer
40 views
Hi,

I am using style builder to create my own set of skin for each rad controls. These custom skins for  all controls including rad scheduler and rad splitter  are set at application level in web config file.

Above Rad controls render properly in Firefox and Chrome but  my application is a mess in Internet Explorer. How can I make application level custom skins  compatible with all browsers?

Before using Custom Skins built using style builder, everything was working fine except  for few minor issues. Now, radscheduler and splitter does not implement css rules in Internet Explorer.

Thanks,
Prava
Simon
Telerik team
 answered on 29 Jun 2011
1 answer
110 views
Hello, I code in below, but It not show images in SQL, it not show error. I was config in web.config. Help me

<telerik:GridBinaryImageColumn DataField="Hinh" DataType="System.String"></telerik:GridBinaryImageColumn>
<telerik:GridTemplateColumn>
Shinu
Top achievements
Rank 2
 answered on 29 Jun 2011
4 answers
90 views
Hi,

On the radTreeList set of demo pages there is a skin that appears to be based on the "Default" skin, it has red buttons.  It works very well, are there plans to promote this to a full blown skin for all controls?

Also will it be possible in the future for a skin such as default to have some way of tweaking one colour value and have it change it's appearence on all controls.

As an example of what I mean, take for example the Default theme, mainly grey.  If we had a session var set to red then all buttons on the theme would be based on a the red, change the session var to green and the buttons change to green.

This would be a tremendous aid for customising our systems for clients,  say one client had their main corporate colour as green then simply change the session var to green for them.  All relevant highlights on the theme would be green.

Yes we can create our own skins now but there is a major headache with each new release in that we need to test everything....  Having a setting like the one described would enable us to be always upto date.  

Best Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 29 Jun 2011
1 answer
206 views
Hi there,

I've been fighting with the radgrid styles for a while now, but I can't seem to find a way to do this: I'd like to have no outer border on a radgrid at all, but have vertical lines separating the columns. It seems I can either have a right border or a left border on each column, each of which results in a border on the outermost column. Any thoughts?

Thanks,
Eric
Princy
Top achievements
Rank 2
 answered on 29 Jun 2011
3 answers
83 views
I'm trying to find out how to keep a page from posting back in an OnResponseEnd event handler.  The following is my code for the event hanlder:

 

 

 

 

//event called after server code executes
        function ResponseEnd(sender, args) {
            var hid = document.getElementById("<%=hidReturn.ClientID %>"); //get value from hidden control which is set by server code
            if (hid.value == "True") {
                alert("You don't have all the required documents");
                return false;
            }
            else
                return true;
        }
I see the alert box when the condition is met, but the return false statement does not prevent the page from continuing to process server-side code.  I want it to stop right there-- any suggestions?

Radoslav
Telerik team
 answered on 29 Jun 2011
6 answers
784 views
Hello,

I have a dynamically generated page and a RadGrid on it.

The Grid is defined as follows:
           protected virtual void SetGrid(CustomFormPageHandler form, ASPXListFrameDefinition definition)
        {
            selectedID = ((FrameObjects.GetFrameControlId(FrameName) != Definition.ID) ? -9 : FrameObjects.GetFrameObjectID(FrameName));
  
            //Grid.DataSource = OWData;
            //if (!IsLOV)
            Grid.SelectedIndexChanged += new EventHandler(SelectedIndexChanged);
  
            Grid.DataBinding += new EventHandler(GridDataBinding);
  
            Grid.DataBound += new EventHandler(Grid_DataBound);
  
            Grid.ItemDataBound += new GridItemEventHandler(GridItemDataBoundEvent);
            Grid.ColumnCreated += new GridColumnCreatedEventHandler(Grid_ColumnCreated);
  
            Grid.DataSourceID = OWData.ClientID;
            Grid.ID = definition.ID;
            Grid.AllowPaging = true;
            Grid.AllowSorting = true;
  
            Grid.AllowFilteringByColumn = !definition.HideFilterRow;
  
            if (!IsLOV)
            {
                Grid.Height = (Unit.Parse(definition.Height));
                Grid.Width = (Unit.Parse(definition.Width));
            }
            else
            {
                //   Grid.Height = new Unit("100%");// (Unit.Parse(definition.Height));
                Grid.Width = new Unit("100%"); //(Unit.Parse(definition.Width));
            }
  
            Grid.ClientSettings.EnableAlternatingItems = true;
            Grid.ClientSettings.Scrolling.AllowScroll = true;
  
            Grid.ClientSettings.EnablePostBackOnRowClick = true;
  
            Grid.ClientSettings.Resizing.AllowResizeToFit = true;
            Grid.ClientSettings.Selecting.AllowRowSelect = true;
  
            Grid.AutoGenerateColumns = false;
  
            Grid.MasterTableView.AllowMultiColumnSorting = true;
            Grid.MasterTableView.ShowHeadersWhenNoRecords = true;            
            Grid.MasterTableView.AlternatingItemStyle.BackColor = Color.LightGray;
            Grid.MasterTableView.DataKeyNames = new string[] { "ID" };
  
            if (definition.Attribute.Count() > 1)
            {
                Grid.GroupingEnabled = true;
                Grid.ShowGroupPanel = true;
                Grid.ClientSettings.AllowDragToGroup = true;
                Grid.ClientSettings.Resizing.AllowColumnResize = true;
                Grid.ClientSettings.Resizing.EnableRealTimeResize = true;
                Grid.ClientSettings.EnableRowHoverStyle = true;
            }
        }

When I select an element, a detail is redrawn, everything works fine.
When I click on the selected item again, the postback is called, but no events are fired.
The site draws RadGrid with blank rows, the number of rows corresponds to the original number, but they do not contain any text.
Detail, which is drawn from the events Grid_DataBound, is not rendered because the event is not called.

If I click on the another item, which is not selected, everythings work fine again.

Can someone help?

Best regards
Martin
Martin
Top achievements
Rank 1
 answered on 29 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?