I have a rich text editor with rubber bar (playing with Telerik's demo project), and I would like to disable the user from changing printer settings (and to change the printer in particular). So, for plain print I have this code (please correct me if there's a better way):
private void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e){ if (e.Command is PrintCommand) { e.Cancel = true; radRichTextEditor1.Print(false); }}
But how to prevent the print dialog from print preview dialog? Also, how to prevent print settings dialog as well? Ideally I would like the print button to just print immediately, and print settings button to disappear.

At startup, I am adding the last x number of messages, but the control doesn't scroll to the bottom. How can I ensure the last message is visible?
Also, the last x messages span across more than 1 day, but my time separator always says Today.
The date in the ChatTextMessage constructor looks correct, and it is adding separators between the dates, but they all say Today
Thanks!
Hello everyone,
Title basically explains the problem. I have some code that I tried searching for online, but it doesn't do what I want it to.
See screenshot to see the duplicate data I'm trying to hide (i.e. hide the second row -- id: 34 -- where the business names are both "Tractor Supply Warehouse"
Here's the code I have now, though I've tried a few different approaches with no success. What happens in this one is that the value of the duplicateIndexList never changes...so everything after the duplicate Tractor Supply Warehouse row (id: 34) gets hidden, which I don't want!
Thanks!
private void MPLListRowCreation() { MPLList_GridView.Rows.Clear(); this.MPLList_GridView.BeginUpdate(); List<int> duplicateIndexList = new List<int>(); foreach (BPPriceMstr myMpl in masterPriceLists) { int[] dupl; GridViewDataRowInfo rowInfo = new GridViewDataRowInfo(this.MPLList_GridView.MasterView); int count = 0; rowInfo.Cells[0].Value = Convert.ToInt32(myMpl.Id); rowInfo.Cells[1].Value = myMpl.Business.CardName; rowInfo.Cells[2].Value = myMpl.StartDate.ToString("MM/dd/yyyy"); rowInfo.Cells[3].Value = myMpl.EndDate.ToString("MM/dd/yyyy"); rowInfo.Cells[4].Value = myMpl.CreatedBy; rowInfo.Cells[5].Value = myMpl.CreatedOn.ToString("MM/dd/yyyy"); rowInfo.Cells[6].Value = myMpl.ModifiedBy; if (myMpl.ModifiedOn.ToString("MM/dd/yyyy") != "01/01/0001") { rowInfo.Cells[7].Value = myMpl.ModifiedOn.ToString("MM/dd/yyyy"); } rowInfo.Cells[8].Value = myMpl.TermsPackage.PackageName; //set our search paramater (the row/cardname we're currently on) //iterate over all of the MPL objects and see if there is more than one match... string searchedStr = myMpl.Business.CardName; for (int i=0; i<masterPriceLists.Count; i++) { if (masterPriceLists[i].Business.CardName.ToUpper().Equals(searchedStr.ToUpper())) { count++; if (count > 1) { //if it finds more than one MPL, add the duplicate indices to an array duplicateIndexList.Add(myMpl.Id); } } } //if we have duplicates... if (duplicateIndexList.Count != 0) { dupl = duplicateIndexList.ToArray(); int firstEntry = dupl[0]; //hide all indices greater than the first entry... i.e. hide all indexes greater than the first one in the array foreach (var item in dupl) { if (firstEntry.ToString().Equals(item.ToString())) { rowInfo.IsVisible = true; //here we also probably want to show that there are multiple start/end dates for that MPL //rowInfo.Cells[2].Value = "Multiple"; //rowInfo.Cells[3].Value = "Multiple"; } else { rowInfo.IsVisible = false; } } } MPLList_GridView.Rows.Add(rowInfo); } this.MPLList_GridView.EndUpdate(); }
Is there away to use the tracking component to track between 2 values. What I'm trying to mimic is a video time status bar. I want the user to be able to set the IN and OUT between the start time and the end time. Then when they play the video it will have a current status bar between the IN and OUT that shows the current time of the clip that is playing.
I attached an image of what Adobe premiere looks like. I know it can't look like this but would love to be able to do something like it that would have a tracker that has a min of 0 and max of lets say 60 (secs) then a user set the IN at 4 (sec) and OUT at 20 (sec) then when they play the thumb will move between those 2 numbers. Even if it's just a visual background range color that is set between those 2 numbers it would work. I just need to make it so that it's visual that the user selected those 2 ranges.
Hope this makes sense.
Hi Folks!
I'm trying to override the template color of my DropDownLists so they don't stand out so poorly.
I tried doing this:
cmbNameSource.RootElement.SetThemeValueOverride(Telerik.WinControls.Primitives.FillPrimitive.BackColorProperty, Color.FromArgb(226, 226, 226), "Disabled", GetType(Primitives.FillPrimitive))
But that didn't seem to have any effect...not to mention even if it did work, I still have to figure out how to change the forecolor of the Text that's displayed.
Any help would be VERY appreciated!
I'm attaching some png's so show you what I mean. Every control in both images has .Enabled = False but as you can see the DropDownList's Look-n-Feel doesn't match the text boxes surrounding it. That's what I'm trying to change!
Thank you all very much :)
-Curtis

I set the culture info of radDateTimePicker and radScheduler to (fa-IR)....it works fine on win 8 and 10. but it changes to Arabic when i run the winform on win 7!!!
i' d appreciate if you help me?

Hello-
I'm using a RadGridview (Telerik Winforms version 2018.1.220.40) and am having trouble setting the font size for a cell while it is being edited... I've managed to get everything else on my grid to Segoe 14pt, but when the user adds a new row, the cell they're typing in has a huge font that makes it unreadable. When they tab to the next cell, it goes back to the standard font and the previous cell is readable, but the current cell again has a large font.
Dess has helped me a couple times(thanks!), and I've looked for formatting event when cell edit starts, and googled, but can't find anything. In short, would like for the font in a cell being edited to be the same as everything else on the grid...
Thanks

I implement a shortcut key for my winforms and I have struggling with the key combination. I have a combination with ctrl+alt+a+b+c . But it seems it does not hit anymore.
I created a new textbox and implement interface IShortcutProvider in my textbox.
Btw, I also cannot use some keys like Fn, Home, End .... in combination. The shortcut key does work in this case I am using Mnemonic Ex: I have a textbox named Description and we have D with underscore, and another textbox named Instruction ( which is my textbox with implementation of IShortcutProvider) and assigned key Alt + D + C
In this case, the Instruction cannot be focusd if I press Alt+D+C.
Anyone have experience on this can help me to explain ? and the best pratise to use Shortcut in telerik control ?
Thank you
Hung Lu
So here is my issue (I have searched in the forums and can't find an answer)...
I have a RadDropDownList containing tuples of strings. When I click on the Drop Down List, I am expecting this method to be called right away, but once I select the option I want, I have to press the down arrow on the drop down again before it will call the JumpManager code at the bottom.
Basically I want the jumpmanager to be called when I select an option from the drop down, and not have to click the arrow again.
I have tried debugging but am failing to see how to fix it.
Any and all help would be great. Thanks!
*****************************************
P.S. I am new to C# and winforms so that is part of the issue also. Please see attached screenshots to get a better idea of what I'm describing above. I want the new tab for the selection from the drop down list to open without having to click the drop down arrow again.
Thanks!
void mplSpecificDDL_Click(object sender, EventArgs e) { //cast sender object to type RadDropDownList RadDropDownList snd = sender as RadDropDownList; int i = snd.SelectedIndex; Console.Write(snd.SelectedItem); //if it's a valid click... if (i >= 0) { //get the mpl id for the MPL date range selected int mplid = tmpDDL_MPLLists[i].Id; FactoryOrder myOrder = new FactoryOrder(); //create an order tuple to open the specific MPL page we want to view myOrder.AddOrderLine("SpecificList", mplid.ToString()); //jump manager to pull up a specific MPL window tab JumpOrder myJumpOrder = new JumpOrder(); myJumpOrder.factoryOrder = myOrder; myJumpOrder.module = "MPL"; myJumpOrder.targetWin = "MPLS"; //issue: new MPLS window only opens when MainDockWin.mainJumpManager.PassJumpOrder(myJumpOrder); MainDockWin.mainJumpManager.GoToWindow(); } }Morning,
Anyone know how to do this?
I tried: rbTBMgr.CommandTabs["Tools"].Select()
Commandtabs dont seem to have a .IsSelect().
All I want to do is make a tab selected!
Frustrated infragistics user!
