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

I have a Scheduler control that implements a custom appointment BackColor for each specific user.  The color works fine when in Day view or Week view, but when I switch to Agenda view the color doesn't show up.  I'm using the Metro skin.  I can't seem to find anything in the .rsAgendaView style that seems to be preventing the BackColor from working.  When I test with ForeColor it works fine. 

Protected Sub rsMeetings_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles rsMeetings.AppointmentDataBound
 
    Dim dc As String
 
    If e.Appointment.Attributes.Item("StaffEmployeeID").ToString <> Nothing Then
        dc = GetAppointmentColor(e.Appointment.Attributes.Item("StaffEmployeeID").ToString)
        e.Appointment.BackColor = System.Drawing.Color.FromName(dc)
        'e.Appointment.ForeColor = System.Drawing.Color.FromName(dc)
    End If
 
End Sub

Hristo Valyavicharski
Telerik team
 answered on 30 Sep 2015
1 answer
190 views

Hi,

 I have a simple form as

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<asp:PlaceHolder runat="server" ID="tbl_holder" />
</div>
</form>

and code behind as

tbl_holder.Controls.Clear();
Table tbl = new Table();
tbl.Width = Unit.Percentage(98);
tbl.ID = "tbl_ID";
TableHeaderRow tr = new TableHeaderRow();
tr.VerticalAlign = VerticalAlign.Top;
TableHeaderCell tc = new TableHeaderCell();
Label lbl_test = new Label();
lbl_test.ID = "lbl_1" ;
lbl_test.Width = Unit.Pixel(50);
lbl_test.Text = "task 1";
RadToolTip test_tooltip = new RadToolTip();
test_tooltip.ID = "test_tip_1" ;
test_tooltip.TargetControlID = "lbl_1";
test_tooltip.IsClientID = true;
test_tooltip.Text = "test 1 tooltip";
test_tooltip.Position = ToolTipPosition.TopRight;
test_tooltip.Width = Unit.Pixel(300);
test_tooltip.Height = Unit.Pixel(40);
test_tooltip.RenderInPageRoot = true;
test_tooltip.Skin = "WebBlue";
tc.Controls.Add(test_tooltip);
tc.Controls.Add(lbl_test);
tr.Cells.Add(tc);
tbl.Rows.Add(tr);
tbl_holder.Controls.Add(tbl);

The tooltip appears in 100% zoom mode, but If I increase zoom to 125%, tooltip does not appear. I tested in IE11.

Thanks for your help.

 

 

 

 

Marin Bratanov
Telerik team
 answered on 30 Sep 2015
1 answer
185 views

Hi,

 I have a grid with editmode set to Batch.  I save grid changes in the UpdateCommand event.  This event doesn't fire if no changes have been made, but there is still a postback.  How do I force this event to always fire when the "Save Changes" button is selected?  I need to update some related values outside the grid.

 

Thanks In Advance!

Jerry

Eyup
Telerik team
 answered on 30 Sep 2015
1 answer
179 views

I have a radgrid which is programmatically binding inside needDataSource event. Additionaly I set two parameters for columns inside columnCreated event:

   boundColumnFilter.AutoPostBackOnFilter = true;
   boundColumnFilter.CurrentFilterFunction = GridKnownFunction.Contains;

 Filters are enabled of course. I would like filtering data after press enter key but it doesn't work (nothing happen after press enter).

If I configure radgrid manually in aspx with parameters like above everything works well. Do you have any sugestion? 

Maria Ilieva
Telerik team
 answered on 30 Sep 2015
1 answer
293 views

I'm having a hard time to use the delete function of listview with a custom javascript delete confirmation. 

What I'd like to do is use the bootstrap modals, such that onClientClick will trigger a modal, prompting the user to confirm or cancel. I can't quite figure out how to wire up the modal to the linkbutton to return true\false to the link button while breaking the postback. Has anyone done something similar? 

 

Current code:

<asp:LinkButton ID="lnkDeleteQuote" runat="server" Text="Delete" CommandName="Delete" OnClientClick="if(!confirm('Are you sure you want to delete this?')) return false;"></asp:LinkButton>

Marin Bratanov
Telerik team
 answered on 30 Sep 2015
5 answers
162 views

How to place  the drop-down list to expand on the page immediately below the input area in chrome Browser.

It is working Fine in Firefox and IE but in chrome  its not working properly.

The Issue occurs  â€‹when the Page is Scrolled down and when we are opening the drop-down list

it is detaching from the immediately below the input area.

Ivan Danchev
Telerik team
 answered on 30 Sep 2015
2 answers
141 views

I have two RadButtons on a page, 'save' and 'save and exit' (see attachment..). When I click on the 'save and exit' button,  I get the expected behavior however when I click on the 'save' button, the functionality dose not work. It is strange because although the buttons do the exact same thing except that 'save and exit' redirects the user to a different page. 

Why is the confirmation window not showing when I hit the save button?

Please advice

Thank you

Marin Bratanov
Telerik team
 answered on 30 Sep 2015
12 answers
2.1K+ views
Hi,
can we call page methods in the master page. how can we implement this calling page methods in master page.




Thanks
Marin Bratanov
Telerik team
 answered on 30 Sep 2015
1 answer
152 views

Hello

Attached picture with my problem, the filter goes behind the Popup Modal
how to solve? in vb.net language

 my .aspx
<telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" GroupPanelPosition="Top" AllowPaging="True">
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>

  </telerik:RadGrid>

Pavlina
Telerik team
 answered on 29 Sep 2015
1 answer
1.3K+ views

I am trying to use a datatable as a radgrid source and display an image in the cell.  I have followed this example (Displaying Images in a GridView Column), but it just displays the URL string instead of the image.  In searching for a solution many people have this same problem.  I have tried other things, but they too do not work.   

If I use RadGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) and the first code section below it works.  Unfortunately that brings up another problem.  I also use ToggleRowSelection(object sender, EventArgs e) and this removes the image when it is called.  I could possibly call RadGrid_ItemDataBound from ToggleRowSelection, but one has EventArgs and the other has Telerik.Web.UI.GridItemEventArgs and casting does not work. There may be a better way to get  RadGrid_ItemDataBound to fire after ToggleRowSelection, but I would like to be able to put the image in initially if possible.    

RadGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

...

Image imgTrue = new Image();
imgTrue.ImageUrl = "images/true.png";
item["Picture"].Controls.Add(imgTrue);

 

Here is my code from the linked example.  images/false.png appears instead on the image.    

DataTable oDT = new DataTable();
//oDT.Columns.Add("Picture");
oDT.Columns.Add(New DataColumn("Picture", GetType(String));
DataRow myRow = oDT.NewRow();
myRow["Picture"].ResolveUrl("images/false.png");
 
oDT.Rows.Add(myRow);
 
DataSet MyDataSet1 = new DataSet("pic");
MyDataSet1.Tables.Add(oDT); 
 
RadGrid1.DataSource = MyDataSet1;
RadGrid1.DataBind();

 

Pavlina
Telerik team
 answered on 29 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?