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

I am using rad bar chart with the scrolling option. It works fine. But the scroll appear inside the plot area, so I cannot able to view least value in the chart. For example in the YAxis I have value like 0, 1000, 2000, 3000, 4000 etc... In XAxis I have one value with 100, the scroll overlap on the plot area and it shows only the half of the bar height. How do I set the scroll out side the plot area, or any other way to do that. (And I need scroll mode only in 'XOnly')Thanks in advance.
Evgenia
Telerik team
 answered on 13 Jul 2012
1 answer
143 views
Hi,

Is it possible to set a background image for an HtmlChart? Or has that functionality not been built in yet?

Thanks
Princy
Top achievements
Rank 2
 answered on 13 Jul 2012
3 answers
149 views
Hello everyone,

My head is going to blow up :D
I am generating a RadGrid in code-behind. First, i was using a default skin to be focused on functions, and not appearance.
I reached what i wanted to have on my grid, and now, i am trying to apply custom css class.

So, i removed the default skin from the grid by setting this :
EnableEmbeddedSkins="false" Skin=""

I have created a random class, for example this :
.myClass
{
     background-color:blue;
}

In my code-behind, i set the CssClass property :
GCG_headerGroup = new GridColumnGroup();
GCG_headerGroup.HeaderStyle.CssClass = "myClass";

Then, i add my columngroup to my grid, etc. But this is not working.
When i have a look on the HTML generated code, i see that there is still "rgMultiHeaderRow" class, and "rgHeader". My CssCLass aren't there. I don't want to set a unique css class for headers but severaln, and have it inside my css files in order to modify easily what i want.

Please see in attachement my grid with default skin : defaultskin.jpg
And what i want to achieve : grid.jpg. I made this one with attribute in ASPX page, but i want to build css inside css files.

Is it possible to do that ? Why is it so hard to set css classes ? Am i doing this wrong ?
Maxime
Top achievements
Rank 1
 answered on 13 Jul 2012
5 answers
224 views

Inside radpageview
asp:FileUpload error come on button click in
fileup.postedfile is come null

Thanks Advance
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 13 Jul 2012
2 answers
144 views


See the Attachment ,

string RMS = FileUpL.UploadedFiles[0].GetName();      this's the way i'm getting the file name in server side ,
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Error Come Like That

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 13 Jul 2012
1 answer
99 views
Hi,
I have a grid that is bound to a data source:

<telerik:RadGrid ID="gvVerwendungen" runat="server" PageSize="15" 
                         AllowPaging="True" Width="100%"  AutoGenerateColumns="false"
                         OnNeedDataSource="gvVerwendungen_NeedDataSource" ShowStatusBar="true">
  
            <MasterTableView Width="100%" Summary="RadGrid table"  ShowFooter="true">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                        <ItemTemplate>
                            <asp:CheckBox ID="Auswahl" runat="server" AutoPostBack="True" OnCheckedChanged="Auswahl_ToggleRowSelection" />
                        </ItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="headerChkbox" runat="server" AutoPostBack="True" />
                        </HeaderTemplate>
                    </telerik:GridTemplateColumn>
  
                    <telerik:GridBoundColumn FooterText="Dienststelle" UniqueName="Dienststelle" 
                                             HeaderText="Dienststelle" DataField="Dienststelle">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FooterText="Beginn" UniqueName="Beginn" 
                                             HeaderText="Beginn" DataField="Beginn"
                                             DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FooterText="Sachbezug" HeaderText="Sachbezug"
                                             DataField="Bezug">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FooterText="Status" UniqueName="VerwendungsStatus"
                                             DataField="VerwendungsStatus">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
  
            <PagerStyle Mode="NextPrevAndNumeric" />
  
        </telerik:RadGrid>

In the code behind there is the event code:

protected void gvVerwendungen_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
               if (mitarbeiter != null && mitarbeiter.VerwendungseintraegeAktuelleUndGeplante != null)
                {
                    this.gvVerwendungen.DataSource = mitarbeiter.VerwendungseintraegeAktuelleUndGeplante;
                }
                             
        }

This works fine.
For the selection of the row I want to use a checkbox:
protected void Auswahl_ToggleRowSelection(object sender, EventArgs e)
       {
           ((sender as CheckBox).NamingContainer as GridItem).Selected = (sender as CheckBox).Checked;
           bool checkHeader = true;
             
             
           foreach (GridDataItem dataItem in gvVerwendungen.MasterTableView.Items)
           {
               // Auswahl is the name of the ckeckbox-column
               if (!(dataItem.FindControl("Auswahl") as CheckBox).Checked)
               {
                   checkHeader = false;
                     
                   break;
               }
           }
           GridHeaderItem headerItem = gvVerwendungen.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;
           (headerItem.FindControl("headerChkbox") as CheckBox).Checked = checkHeader;
           if (gvVerwendungen.SelectedItems.Count > 0)
           {
               // gvVerwendungen is the name of the grid
               GridDataItem dataItem = gvVerwendungen.SelectedItems[0] as GridDataItem;
               // Question: How can I get the bound custom object?
               // Problem: The custom object has no ID
           }
           else
           {
               tbStellenzeichen.Text = "Nothing";
           }
       }

My Question: How can I get the custom object instance of the current row?

For a hint, I would be grateful
Kind regards.
Christian
Andrey
Telerik team
 answered on 13 Jul 2012
1 answer
197 views

Trying to access an <asp:dropdownlist> from <telerik:GridTemplateColumn> in the ItemCommand event of a RadGrid. 

 

 

BarID is the unique column name on the template column
ddlBarID is the id of the dropdownload

GridEditFormItem editedItem = (GridEditFormItem)((GridDataItem)e.Item).EditFormItem;
DropDownList ddlBar = 
(DropDownList)editedItem["BarID"].FindControl("ddlBarID");
Label1.Text = "BarID null: " + (ddlBar == null).ToString();
ddlBar.Items.Add("TEST");

 

 

I get Object reference not set to an instance of an object.


any help is appreciated.  been banging my head on this one for two days now.

 

Shinu
Top achievements
Rank 2
 answered on 13 Jul 2012
3 answers
113 views
Hi,
I have a situation in which in case of monthview display only no. of appointment on that day and in dayview i have to show appointments. I have written code on OnTimeSlotCreated event for counting no. of appointments and it works fine, but appointments is also display in monthview. How can i only display no. of appointments on that day not actual appointments.
Andy
Top achievements
Rank 1
Iron
 answered on 12 Jul 2012
2 answers
250 views
Hi.

I have a page with several RadTabStrip/RadMultiPage combinations.  One of them dynamically loads copies of the same user control (with a parameter from the value of its RadTab) into correlating RadPageViews.  I have a 'Delete' button on the contained usercontrol that deletes its specific data.  So, then the whole RadTabStrip and PageViews needs to be rebound to reflect the change (which will have one less tab/pageview after the delete).  I can do this easily by simply reloading the whole page, but I would like to be more elegant, and do that with ajax.  How can a button event on a single PageView's usercontrol locate the containing RadTabStrip, and initiate a rebind via ajax?

Thanks for any help!!

Tom Stanley
T. Stanley
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
98 views
Is it possible to disable Appointment Inline Insert and Edit
Tudor Dragos
Top achievements
Rank 1
 answered on 12 Jul 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?