Syracuse, N.Y. — C.J. Fair, the former Syracuse University player who went undrafted in Thursday's NBA draft, has agreed to play for the Dallas Mavericks' summer league team, his agent said Friday.

Fair, a 6-foot-8 forward, will play for the Mavericks in the Las Vegas Summer League, which begins in July.

"Dallas really wanted to bring him in,'' Fair's agent, Torrel Harris, said. "I think this is a good spot for him.''

In the days leading up to the draft, Fair worked out for 16 different teams. But the Mavericks, owned second-round picks at No. 34 and No. 51, had shown the most interest in Fair, according to Harris.

"We spoke to Dallas,'' Harris said. "They told us. They wanted C.J. I knew Dallas was going to take him.''

Then Wednesday, the day before the draft, Dallas traded both of its second round picks to the New York Knicks in a trade that sent Tyson Chandler and Raymond Felton to the Mavs.

The team that Fair felt was most likely to draft him suddenly had no draft picks.

Harris still thought Fair would be drafted. Harris attended the draft at the Barclays Center in Brooklyn along with Fair and Fair's parents. They watched as the draft unfolded. They eventually left with four picks remaining in the second round.

"I was pretty shocked,'' Harris said. "Actually, I was completely shocked. He played well at all the workouts. He out-played a lot of guys that were drafted.''

After the draft, Harris said he heard from several NBA teams that wanted to bring in Fair to play on their summer league teams. Harris went with the team that he felt had always had the most interest in Fair.

"The Mavericks have a genuine interest in C.J.,'' Harris said. "They were going to pick him. They want him.''

Dallas has just four players currently under contract for the 2014-15 season. The Mavericks' small forwards are Shawn Marion and Jae Crowder.

Harris said Fair would report to the Mavericks on July 5. The Las Vegas Summer League runs from July 11-21.