Tensions between the Republican Party and its own front-runner erupted into a full-blown public battle as top party officials rebuked Donald Trump on Friday for alleging that the GOP primary system was “rigged” against him.

The dispute, which has been simmering for days, centers on Trump’s failure to win any delegates last weekend in Colorado, which selected its 34 delegates at a party convention rather than a primary attended by voters. All went to Trump’s chief rival, Sen. Ted Cruz of Texas.

The outcome prompted a daily stream of complaints and allegations this week from Trump, who wrote in an op-ed published in Friday’s Wall Street Journal that the “system is being rigged by party operatives with ‘double-agent’ delegates who reject the decisions of voters.”

A senior Republican National Committee official fired back with a thinly veiled response, writing in a Friday memo to reporters that “each process is easy to understand for those willing to learn it.”

“It ultimately falls on the campaigns to be up to speed on these delegate rules,” wrote RNC communications director Sean Spicer. “Campaigns have to know when absentee ballots are due, how long early voting lasts in certain states, or the deadlines for voter registration; the delegate rules are no different.”

Republican presidential candidate Donald Trump complained about the delegate voting process at his Rochester, N.Y., rally on April 10, saying, "We're supposed to be a democracy." (Reuters)

The fight again pits Trump against a Republican establishment that is still broadly opposed to his candidacy and struggling to reconcile with the possibility that he could be the GOP presidential nominee in November. Veterans of past presidential campaigns warned that the feuding could have an adverse effect on down-ballot races and on the ability to defeat Hillary Clinton, seen as the likely Democratic nominee, in the fall.

“Traditionally, this is the time that the party and front-runner come together and make the plans necessary to defeat the Democratic candidate in the fall,” said Michael Steel, who was an aide for Jeb Bush’s campaign and previously worked on the Mitt Romney campaign in 2012 and as spokesman for John A. Boehner (R-Ohio) when he was House speaker. “That’s clearly not happening, and it’s going to make it tougher to beat Secretary Clinton.”

Ron Bonjean, a former top adviser to Republican congressional leaders, called the Trump-RNC showdown “unprecedented” and warned that “taking a flamethrower to the Republican Party machine” could backfire on Trump.

“This is like a general severely criticizing his own special forces before ordering them to go into battle,” he said in an email. “Trump runs the risk of demoralizing grass-roots party organizers when he is going to need every asset to help him beat the Democratic nominee.”

One of the keys to Trump’s success until now has been his willingness to harshly criticize the party establishment, but he will need the support of the RNC in fundraising and get-out-the-vote efforts if he wins the nomination. This has left Trump boomeranging between fighting the party and trying to embrace it.

Early this week, for example, Trump used Twitter and his rally speeches to call the nomination process “corrupt,” “rigged” and one that rewards candidates who “play dirty tricks in order to pick up delegates.” In an interview with The Hill on Tuesday, Trump said RNC Chairman Reince Priebus “should be ashamed of himself because he knows what’s going on.”

Priebus responded on Twitter: “Nomination process known for a year + beyond. It’s the responsibility of the campaigns to understand it. Complaints now? Give us all a break.”

At a news conference on April 15 in New York City, six former contestants of the reality TV show "The Apprentice" denounced Republican presidential candidate Donald Trump, who hosted the show. The group said Trump isn’t worthy of being president. (Reuters)

At the same time, behind the scenes, Trump’s campaign staff was finalizing plans to send representatives to the RNC’s upcoming spring meeting in Florida and to open an office in Washington. On Wednesday, the real estate mogul had lunch at Trump Tower in Manhattan with Megyn Kelly of Fox News, a longtime target of Trump’s who has come to symbolize his ongoing fight with the party establishment. Later that day, Trump announced he had hired GOP strategist Rick Wiley, who has a long history at the RNC.

By Wednesday night in Pittsburgh, where he held an evening rally, Trump seemed to have softened his tone. But then around midnight he complained about Colorado again in a series of tweets. “The rules DID CHANGE in Colorado shortly after I entered the race in June because the pols and their bosses knew I would win with the voters,” Trump wrote at 11:53 p.m.

Steve House, chairman of the Colorado Republican Party, said he has been angered by Trump’s assertion that Colorado Republicans changed their rules in an attempt to block his rise. State law bars them from holding a primary, so the party held caucuses at the local level and completed its delegate slate at a convention, he said.

“I can’t believe people would think that Donald got in the race and we changed them because of him,” he said an interview. “No, we voted not to change our rules at all.”

On Thursday, it was back to peacemaking as one of Trump’s top aides met with lawmakers on Capitol Hill and the candidate attended two fundraisers for Republicans in New York. At a $1,000-per-plate dinner in Manhattan, Trump skipped his usual criticisms of his rivals and the Republican Party.

But then, Thursday night, the Journal op-ed under Trump’s name went online, reigniting the fires.

The fresh tension comes just as the party heads into another busy period of delegate allocation and selection. This weekend, seven states will hold meetings to select at least some of their delegates.

Republicans will gather in Georgia, Kansas, Oklahoma, South Carolina and Virginia for meetings in congressional districts to award their delegates. And in Wyoming, Republicans are hosting a convention similar to the one held in Colorado, and Trump’s team concedes that they are again poised to lose to Cruz.

O’Keefe reported from Washington.

Correction: An earlier version of this story incorrectly characterized how Colorado selects its Republican convention delegates.